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

Commit 65142db

Browse files
committed
this fixes #342
1 parent e4ba6e8 commit 65142db

File tree

11 files changed

+255
-67
lines changed

11 files changed

+255
-67
lines changed

_locales/de/messages.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@
165165
"message": "<a href='https://de.wikipedia.org/wiki/Referrer'>HTTP Referrer</a> Header blockiert: {{count}}",
166166
"description": "English: HTTP referer headers foiled: {{count}}"
167167
},
168+
"statsPageHyperlinkAuditingFoiled" : {
169+
"message": "<a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>Hyperlink auditing</a> attempts foiled: {{count}}",
170+
"description": "English: Hyperlink auditing attempts foiled: {{count}}"
171+
},
168172
"statsPageCookiesRemoved" : {
169173
"message": "Lokale Cookies entfernt: {{count}}",
170174
"description": "Local cookies removed: {{count}}"
@@ -395,6 +399,14 @@
395399
"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>",
396400
"description": "..."
397401
},
402+
"settingsProcessHyperlinkAuditingPrompt" : {
403+
"message": "Block all <a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>hyperlink auditing</a> attempts.",
404+
"description": "..."
405+
},
406+
"settingsProcessHyperlinkAuditingHelp" : {
407+
"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>",
408+
"description": "..."
409+
},
398410
"settingsSpoofUserAgentPrompt1" : {
399411
"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",
400412
"description": "Spoof <a href='https://en.wikipedia.org/wiki/User_agent'>User-Agent</a> string by picking one randomly below every"

_locales/en/messages.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@
165165
"message": "<a href='https://en.wikipedia.org/wiki/HTTP_referer'>HTTP referer</a> headers foiled: {{count}}",
166166
"description": "English: HTTP referer headers foiled: {{count}}"
167167
},
168+
"statsPageHyperlinkAuditingFoiled" : {
169+
"message": "<a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>Hyperlink auditing</a> attempts foiled: {{count}}",
170+
"description": "English: Hyperlink auditing attempts foiled: {{count}}"
171+
},
168172
"statsPageCookiesRemoved" : {
169173
"message": "Local cookies removed: {{count}}",
170174
"description": "Local cookies removed: {{count}}"
@@ -395,6 +399,14 @@
395399
"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>",
396400
"description": "..."
397401
},
402+
"settingsProcessHyperlinkAuditingPrompt" : {
403+
"message": "Block all <a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>hyperlink auditing</a> attempts.",
404+
"description": "..."
405+
},
406+
"settingsProcessHyperlinkAuditingHelp" : {
407+
"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>",
408+
"description": "..."
409+
},
398410
"settingsSpoofUserAgentPrompt1" : {
399411
"message": "Spoof <a href='https://en.wikipedia.org/wiki/User_agent'>User-Agent</a> string by randomly picking a new one below every",
400412
"description": "Spoof <a href='https://en.wikipedia.org/wiki/User_agent'>User-Agent</a> string by randomly picking a new one below every"

_locales/fr/messages.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@
165165
"message": "Nombre de <a href='https://fr.wikipedia.org/wiki/R%C3%A9f%C3%A9rant'>Référants HTTP</a> bloqués : {{count}}",
166166
"description": "English: HTTP referer headers foiled: {{count}}"
167167
},
168+
"statsPageHyperlinkAuditingFoiled" : {
169+
"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}}",
170+
"description": "English: Hyperlink auditing attempts foiled: {{count}}"
171+
},
168172
"statsPageCookiesRemoved" : {
169173
"message": "Nombre de Cookies supprimés : {{count}}",
170174
"description": "Local cookies removed: {{count}}"
@@ -395,6 +399,14 @@
395399
"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>",
396400
"description": "..."
397401
},
402+
"settingsProcessHyperlinkAuditingPrompt" : {
403+
"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>.",
404+
"description": "..."
405+
},
406+
"settingsProcessHyperlinkAuditingHelp" : {
407+
"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>",
408+
"description": "..."
409+
},
398410
"settingsSpoofUserAgentPrompt1" : {
399411
"message": "Modifier <a href='https://fr.wikipedia.org/wiki/User-Agent'>l'Identification du navigateur</a> toutes les ",
400412
"description": "Spoof <a href='https://en.wikipedia.org/wiki/User_agent'>User-Agent</a> string by picking one randomly below every"

_locales/ru/messages.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@
165165
"message": "<a href='https://en.wikipedia.org/wiki/HTTP_referer'>HTTP ссылок</a> блокировано: {{count}}",
166166
"description": "English: HTTP referer headers foiled: {{count}}"
167167
},
168+
"statsPageHyperlinkAuditingFoiled" : {
169+
"message": "<a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>Hyperlink auditing</a> attempts foiled: {{count}}",
170+
"description": "English: Hyperlink auditing attempts foiled: {{count}}"
171+
},
168172
"statsPageCookiesRemoved" : {
169173
"message": "Удалено локальных кукисов: {{count}}",
170174
"description": "Local cookies removed: {{count}}"
@@ -395,6 +399,14 @@
395399
"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>",
396400
"описание": "..."
397401
},
402+
"settingsProcessHyperlinkAuditingPrompt" : {
403+
"message": "Block all <a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>hyperlink auditing</a> attempts.",
404+
"description": "..."
405+
},
406+
"settingsProcessHyperlinkAuditingHelp" : {
407+
"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>",
408+
"description": "..."
409+
},
398410
"settingsSpoofUserAgentPrompt1" : {
399411
"message": "Подмена <a href='https://en.wikipedia.org/wiki/User_agent'>User-Agent</a> строки, выбирая случайную строку ниже каждые",
400412
"description": "Spoof <a href='https://en.wikipedia.org/wiki/User_agent'>User-Agent</a> string by picking one randomly below every"

_locales/zh_CN/messages.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@
165165
"message": "从HTTP请求头中移除的<a href='https://zh.wikipedia.org/wiki/HTTP%E5%8F%82%E7%85%A7%E4%BD%8D%E5%9D%80'>引用地址</a>数:{{count}}",
166166
"description": "English: HTTP referer headers foiled: {{count}}"
167167
},
168+
"statsPageHyperlinkAuditingFoiled" : {
169+
"message": "<a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>Hyperlink auditing</a> attempts foiled: {{count}}",
170+
"description": "English: Hyperlink auditing attempts foiled: {{count}}"
171+
},
168172
"statsPageCookiesRemoved" : {
169173
"message": "本地cookie移除数:{{count}}",
170174
"description": "Local cookies removed: {{count}}"
@@ -395,6 +399,14 @@
395399
"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>",
396400
"description": "..."
397401
},
402+
"settingsProcessHyperlinkAuditingPrompt" : {
403+
"message": "Block all <a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing'>hyperlink auditing</a> attempts.",
404+
"description": "..."
405+
},
406+
"settingsProcessHyperlinkAuditingHelp" : {
407+
"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>",
408+
"description": "..."
409+
},
398410
"settingsSpoofUserAgentPrompt1" : {
399411
"message": "从下面列表中随机选取新的一条,来伪装<a href='https://zh.wikipedia.org/wiki/%E7%94%A8%E6%88%B7%E4%BB%A3%E7%90%86'>用户代理</a>字符串,每隔",
400412
"description": "Spoof <a href='https://en.wikipedia.org/wiki/User_agent'>User-Agent</a> string by randomly picking a new one below every"

info.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ <h2 data-i18n="statsPageGenericStats" id="generic-stats"></h2>
7474
<ul>
7575
<li id="statsPageCookieHeadersFoiled">
7676
<li id="statsPageRefererHeadersFoiled">
77+
<li id="statsPageHyperlinkAuditingFoiled">
7778
<li id="statsPageCookiesRemoved">
7879
<li id="statsPageLocalStoragesCleared">
7980
<li id="statsPageBrowserCacheCleared">

js/background.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ var HTTPSB = {
4646
popupCollapseDomains: false,
4747
popupCollapseSpecificDomains: {},
4848
processBehindTheSceneRequests: false,
49+
processHyperlinkAuditing: true,
4950
processReferer: false,
5051
smartAutoReload: 'all',
5152
spoofUserAgent: false,
@@ -113,6 +114,7 @@ var HTTPSB = {
113114
localStorageRemovedCounter: 0,
114115
cookieHeaderFoiledCounter: 0,
115116
refererHeaderFoiledCounter: 0,
117+
hyperlinkAuditingFoiledCounter: 0,
116118
browserCacheClearedCounter: 0,
117119
storageQuota: chrome.storage.local.QUOTA_BYTES,
118120
storageUsed: 0,

js/info.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ function renderStats() {
177177

178178
renderLocalized('statsPageCookieHeadersFoiled', { count: renderNumber(httpsb.cookieHeaderFoiledCounter) });
179179
renderLocalized('statsPageRefererHeadersFoiled', { count: renderNumber(httpsb.refererHeaderFoiledCounter) });
180+
renderLocalized('statsPageHyperlinkAuditingFoiled', { count: renderNumber(httpsb.hyperlinkAuditingFoiledCounter) });
180181
renderLocalized('statsPageCookiesRemoved', { count: renderNumber(httpsb.cookieRemovedCounter) });
181182
renderLocalized('statsPageLocalStoragesCleared', { count: renderNumber(httpsb.localStorageRemovedCounter) });
182183
renderLocalized('statsPageBrowserCacheCleared', { count: renderNumber(httpsb.browserCacheClearedCounter) });

js/settings.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ $(function() {
139139
$('#clear-browser-cache').attr('checked', userSettings.clearBrowserCache === true);
140140
$('#clear-browser-cache-after').val(userSettings.clearBrowserCacheAfter);
141141
$('#process-referer').attr('checked', userSettings.processReferer);
142+
$('#process-hyperlink-auditing').attr('checked', userSettings.processHyperlinkAuditing);
142143
$('#spoof-user-agent').attr('checked', userSettings.spoofUserAgent);
143144
$('#spoof-user-agent-every').val(userSettings.spoofUserAgentEvery);
144145
$('#spoof-user-agent-with').val(userSettings.spoofUserAgentWith);
@@ -197,6 +198,9 @@ $(function() {
197198
$('#process-referer').on('change', function(){
198199
changeUserSettings('processReferer', $(this).is(':checked'));
199200
});
201+
$('#process-hyperlink-auditing').on('change', function(){
202+
changeUserSettings('processHyperlinkAuditing', $(this).is(':checked'));
203+
});
200204
$('#spoof-user-agent').on('change', function(){
201205
changeUserSettings('spoofUserAgent', $(this).is(':checked'));
202206
});

0 commit comments

Comments
 (0)