Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
this fixes #342
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jun 17, 2014
1 parent e4ba6e8 commit 65142db
Show file tree
Hide file tree
Showing 11 changed files with 255 additions and 67 deletions.
12 changes: 12 additions & 0 deletions _locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
"message": "<a href='https://de.wikipedia.org/wiki/Referrer'>HTTP Referrer</a> Header blockiert: {{count}}",
"description": "English: HTTP referer headers foiled: {{count}}"
},
"statsPageHyperlinkAuditingFoiled" : {
"message": "<a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>Hyperlink auditing</a> attempts foiled: {{count}}",
"description": "English: Hyperlink auditing attempts foiled: {{count}}"
},
"statsPageCookiesRemoved" : {
"message": "Lokale Cookies entfernt: {{count}}",
"description": "Local cookies removed: {{count}}"
Expand Down Expand Up @@ -395,6 +399,14 @@
"message": "<p>Aus Wikipedia: &ldquo;Ein Referrer ist die Internetadresse der Webseite, von der der Benutzer durch Anklicken eines Links zu der aktuellen Seite gekommen ist. ... <b>(Die Übertragung eines Referrers zu verhindern) ...ist unter anderem aus Datenschutzerwägungen interessant, da andernfalls die Möglichkeit besteht, die Referrer mit den Nutzer-IP-Adressen in Verbindung zu bringen.</b>&rdquo;</p><p>Wenn dieser Schalter aktiviert ist, wird <i>HTTP Switchboard</i> den HTTP Referrer entfernen, wenn <b>beide</b> folgenden Bedingungen erfüllt sind:<ul style='padding-left:1em;list-style-type:disc;'><li>Der Domänenname des HTTP Referrer stimmt nicht mit dem Domänenname der anfragenden URL überein (das heißt, der Referrer stammt von einer Drittseite);<li>Der anfragende Hostname ist nicht auf der Whitelist.</ul></p>",
"description": "..."
},
"settingsProcessHyperlinkAuditingPrompt" : {
"message": "Block all <a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>hyperlink auditing</a> attempts.",
"description": "..."
},
"settingsProcessHyperlinkAuditingHelp" : {
"message": "<p>Hyperlink auditing is a mechanism which allow a party, <b>any party</b>, to be informed about which link a user clicked on a particular web page. It is essentially a tracking feature: it allows a web site, or any third-party to that web site, to be informed about which link you clicked on which one of its web pages. The sole purpose is to track your browsing activity.</p>",
"description": "..."
},
"settingsSpoofUserAgentPrompt1" : {
"message": "Verschleiere den <a href='https://de.wikipedia.org/wiki/User_Agent'>User-Agent</a> durch die zufällige Wahl eines neuen aus der Liste alle",
"description": "Spoof <a href='https://en.wikipedia.org/wiki/User_agent'>User-Agent</a> string by picking one randomly below every"
Expand Down
12 changes: 12 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
"message": "<a href='https://en.wikipedia.org/wiki/HTTP_referer'>HTTP referer</a> headers foiled: {{count}}",
"description": "English: HTTP referer headers foiled: {{count}}"
},
"statsPageHyperlinkAuditingFoiled" : {
"message": "<a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>Hyperlink auditing</a> attempts foiled: {{count}}",
"description": "English: Hyperlink auditing attempts foiled: {{count}}"
},
"statsPageCookiesRemoved" : {
"message": "Local cookies removed: {{count}}",
"description": "Local cookies removed: {{count}}"
Expand Down Expand Up @@ -395,6 +399,14 @@
"message": "<p>From Wikipedia: &ldquo;HTTP referer is an HTTP header field that identifies the address of the webpage that linked to the resource being requested. ... <b>Because referer information can violate privacy, some web browsers allow the user to disable the sending of referer information.</b>&rdquo;</p><p>If this setting is checked, <i>HTTP Switchboard</i> will remove the HTTP referer information if <b>both</b> of the following conditions are true:<ul style='padding-left:1em;list-style-type:disc;'><li>The domain name of the HTTP referer does not match the domain name of the URL of the request (that is, the referer is third-party to the web page);<li>The hostname of the request is not whitelisted.</ul></p>",
"description": "..."
},
"settingsProcessHyperlinkAuditingPrompt" : {
"message": "Block all <a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>hyperlink auditing</a> attempts.",
"description": "..."
},
"settingsProcessHyperlinkAuditingHelp" : {
"message": "<p>Hyperlink auditing is a mechanism which allow a party, <b>any party</b>, to be informed about which link a user clicked on a particular web page. It is essentially a tracking feature: it allows a web site, or any third-party to that web site, to be informed about which link you clicked on which one of its web pages. The sole purpose is to track your browsing activity.</p>",
"description": "..."
},
"settingsSpoofUserAgentPrompt1" : {
"message": "Spoof <a href='https://en.wikipedia.org/wiki/User_agent'>User-Agent</a> string by randomly picking a new one below every",
"description": "Spoof <a href='https://en.wikipedia.org/wiki/User_agent'>User-Agent</a> string by randomly picking a new one below every"
Expand Down
12 changes: 12 additions & 0 deletions _locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
"message": "Nombre de <a href='https://fr.wikipedia.org/wiki/R%C3%A9f%C3%A9rant'>Référants HTTP</a> bloqués : {{count}}",
"description": "English: HTTP referer headers foiled: {{count}}"
},
"statsPageHyperlinkAuditingFoiled" : {
"message": "Nombre de <a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>&ldquo;hyperlink auditing&rdquo;</a> bloqués: {{count}}",
"description": "English: Hyperlink auditing attempts foiled: {{count}}"
},
"statsPageCookiesRemoved" : {
"message": "Nombre de Cookies supprimés : {{count}}",
"description": "Local cookies removed: {{count}}"
Expand Down Expand Up @@ -395,6 +399,14 @@
"message": "<p>D'après Wikipedia : Un référant est une information transmise à un serveur HTTP lorsqu'un visiteur suit un lien pour accéder à l'une de ses ressources, lui indiquant l'URL de la page où se situe ce lien qu'il a suivi [...] <b>Les référants peuvent poser des problèmes d'atteinte à la vie privée, puisque le webmestre peut connaître les pages que ses visiteurs ont consulté avant d'accéder aux siennes.</b></p><p>Si ce paramètre est coché, <i>HTTP Switchboard</i> supprimera le référant HTTP si les <b>DEUX</b> conditions suivantes sont vérifiées :<ul style='padding-left:1em;list-style-type:disc;'><li>Le nom de domaine du référant HTTP ne correspond pas à l'URL de la requête (c'est-à-dire que le référant est un tiers par-rapport à la page);<li>Le nom d'hôte de la requête n'est pas sur liste blanche.</ul></p>",
"description": "..."
},
"settingsProcessHyperlinkAuditingPrompt" : {
"message": "Bloquer toutes les requêtes de type <a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>&ldquo;hyperlink auditing&rdquo;</a>.",
"description": "..."
},
"settingsProcessHyperlinkAuditingHelp" : {
"message": "<p>Hyperlink auditing is a mechanism which allow a party, <b>any party</b>, to be informed about which link a user clicked on a particular web page. It is essentially a tracking feature: it allows a web site, or any third-party to that web site, to be informed about which link you clicked on which one of its web pages. The sole purpose is to track your browsing activity.</p>",
"description": "..."
},
"settingsSpoofUserAgentPrompt1" : {
"message": "Modifier <a href='https://fr.wikipedia.org/wiki/User-Agent'>l'Identification du navigateur</a> toutes les ",
"description": "Spoof <a href='https://en.wikipedia.org/wiki/User_agent'>User-Agent</a> string by picking one randomly below every"
Expand Down
12 changes: 12 additions & 0 deletions _locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
"message": "<a href='https://en.wikipedia.org/wiki/HTTP_referer'>HTTP ссылок</a> блокировано: {{count}}",
"description": "English: HTTP referer headers foiled: {{count}}"
},
"statsPageHyperlinkAuditingFoiled" : {
"message": "<a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>Hyperlink auditing</a> attempts foiled: {{count}}",
"description": "English: Hyperlink auditing attempts foiled: {{count}}"
},
"statsPageCookiesRemoved" : {
"message": "Удалено локальных кукисов: {{count}}",
"description": "Local cookies removed: {{count}}"
Expand Down Expand Up @@ -395,6 +399,14 @@
"message": "<p>Из Википедии: &ldquo;в протоколе HTTP один из заголовков запроса клиента. Содержит URL источника запроса. Если перейти с одной страницы на другую, referer будет содержать адрес первой страницы. ... <b>Поскольку посылаемая информация может нарушить конфиденциальность, некоторые веб браузеры могут позволить пользователям отключить посылку этих данных.</b>&rdquo;</p><p>Если выбрана эта опция, <i>HTTP Switchboard</i> будет удалять HTTP запросы, при условии, что выполняются условия <b>ниже</b>:<ul style='padding-left:1em;list-style-type:disc;'><li>Доменное имя HTTP-referer не соответствует имени домена из URL запроса (referer сторонней веб-страницы);<li>Адрес хоста в запросе не из белого списка.</ul></p>",
"описание": "..."
},
"settingsProcessHyperlinkAuditingPrompt" : {
"message": "Block all <a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>hyperlink auditing</a> attempts.",
"description": "..."
},
"settingsProcessHyperlinkAuditingHelp" : {
"message": "<p>Hyperlink auditing is a mechanism which allow a party, <b>any party</b>, to be informed about which link a user clicked on a particular web page. It is essentially a tracking feature: it allows a web site, or any third-party to that web site, to be informed about which link you clicked on which one of its web pages. The sole purpose is to track your browsing activity.</p>",
"description": "..."
},
"settingsSpoofUserAgentPrompt1" : {
"message": "Подмена <a href='https://en.wikipedia.org/wiki/User_agent'>User-Agent</a> строки, выбирая случайную строку ниже каждые",
"description": "Spoof <a href='https://en.wikipedia.org/wiki/User_agent'>User-Agent</a> string by picking one randomly below every"
Expand Down
12 changes: 12 additions & 0 deletions _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
"message": "从HTTP请求头中移除的<a href='https://zh.wikipedia.org/wiki/HTTP%E5%8F%82%E7%85%A7%E4%BD%8D%E5%9D%80'>引用地址</a>数:{{count}}",
"description": "English: HTTP referer headers foiled: {{count}}"
},
"statsPageHyperlinkAuditingFoiled" : {
"message": "<a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>Hyperlink auditing</a> attempts foiled: {{count}}",
"description": "English: Hyperlink auditing attempts foiled: {{count}}"
},
"statsPageCookiesRemoved" : {
"message": "本地cookie移除数:{{count}}",
"description": "Local cookies removed: {{count}}"
Expand Down Expand Up @@ -395,6 +399,14 @@
"message": "<p>参照维基百科:“HTTP来源地址是一个HTTP表头字段,用于识别链接到正在被请求资源的网页的地址。…… <b>因为引用信息可能泄漏隐私,一些浏览器允许用户禁用发送引用信息的功能。</b>”</p><p>如果这个设置被选中,<i>HTTP Switchboard</i>会移除引用地址信息如果以下条件<b>同时</b>得到满足:<ul style='padding-left:1em;list-style-type:disc;'><li>引用地址的域名和HTTP请求地址的域名不吻合(即这是一个第三方引用);<li>HTTP请求地址的站点名不在白名单中。</ul></p>",
"description": "..."
},
"settingsProcessHyperlinkAuditingPrompt" : {
"message": "Block all <a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>hyperlink auditing</a> attempts.",
"description": "..."
},
"settingsProcessHyperlinkAuditingHelp" : {
"message": "<p>Hyperlink auditing is a mechanism which allow a party, <b>any party</b>, to be informed about which link a user clicked on a particular web page. It is essentially a tracking feature: it allows a web site, or any third-party to that web site, to be informed about which link you clicked on which one of its web pages. The sole purpose is to track your browsing activity.</p>",
"description": "..."
},
"settingsSpoofUserAgentPrompt1" : {
"message": "从下面列表中随机选取新的一条,来伪装<a href='https://zh.wikipedia.org/wiki/%E7%94%A8%E6%88%B7%E4%BB%A3%E7%90%86'>用户代理</a>字符串,每隔",
"description": "Spoof <a href='https://en.wikipedia.org/wiki/User_agent'>User-Agent</a> string by randomly picking a new one below every"
Expand Down
1 change: 1 addition & 0 deletions info.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ <h2 data-i18n="statsPageGenericStats" id="generic-stats"></h2>
<ul>
<li id="statsPageCookieHeadersFoiled">
<li id="statsPageRefererHeadersFoiled">
<li id="statsPageHyperlinkAuditingFoiled">
<li id="statsPageCookiesRemoved">
<li id="statsPageLocalStoragesCleared">
<li id="statsPageBrowserCacheCleared">
Expand Down
2 changes: 2 additions & 0 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ var HTTPSB = {
popupCollapseDomains: false,
popupCollapseSpecificDomains: {},
processBehindTheSceneRequests: false,
processHyperlinkAuditing: true,
processReferer: false,
smartAutoReload: 'all',
spoofUserAgent: false,
Expand Down Expand Up @@ -113,6 +114,7 @@ var HTTPSB = {
localStorageRemovedCounter: 0,
cookieHeaderFoiledCounter: 0,
refererHeaderFoiledCounter: 0,
hyperlinkAuditingFoiledCounter: 0,
browserCacheClearedCounter: 0,
storageQuota: chrome.storage.local.QUOTA_BYTES,
storageUsed: 0,
Expand Down
1 change: 1 addition & 0 deletions js/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ function renderStats() {

renderLocalized('statsPageCookieHeadersFoiled', { count: renderNumber(httpsb.cookieHeaderFoiledCounter) });
renderLocalized('statsPageRefererHeadersFoiled', { count: renderNumber(httpsb.refererHeaderFoiledCounter) });
renderLocalized('statsPageHyperlinkAuditingFoiled', { count: renderNumber(httpsb.hyperlinkAuditingFoiledCounter) });
renderLocalized('statsPageCookiesRemoved', { count: renderNumber(httpsb.cookieRemovedCounter) });
renderLocalized('statsPageLocalStoragesCleared', { count: renderNumber(httpsb.localStorageRemovedCounter) });
renderLocalized('statsPageBrowserCacheCleared', { count: renderNumber(httpsb.browserCacheClearedCounter) });
Expand Down
4 changes: 4 additions & 0 deletions js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ $(function() {
$('#clear-browser-cache').attr('checked', userSettings.clearBrowserCache === true);
$('#clear-browser-cache-after').val(userSettings.clearBrowserCacheAfter);
$('#process-referer').attr('checked', userSettings.processReferer);
$('#process-hyperlink-auditing').attr('checked', userSettings.processHyperlinkAuditing);
$('#spoof-user-agent').attr('checked', userSettings.spoofUserAgent);
$('#spoof-user-agent-every').val(userSettings.spoofUserAgentEvery);
$('#spoof-user-agent-with').val(userSettings.spoofUserAgentWith);
Expand Down Expand Up @@ -197,6 +198,9 @@ $(function() {
$('#process-referer').on('change', function(){
changeUserSettings('processReferer', $(this).is(':checked'));
});
$('#process-hyperlink-auditing').on('change', function(){
changeUserSettings('processHyperlinkAuditing', $(this).is(':checked'));
});
$('#spoof-user-agent').on('change', function(){
changeUserSettings('spoofUserAgent', $(this).is(':checked'));
});
Expand Down
Loading

0 comments on commit 65142db

Please sign in to comment.