mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
added ability to disable hyperlink auditing
This commit is contained in:
parent
c64e35edbc
commit
ee8dd54481
7 changed files with 44 additions and 6 deletions
|
@ -83,6 +83,13 @@ vAPI.browserSettings = {
|
|||
});
|
||||
break;
|
||||
|
||||
case 'hyperlinkAuditing':
|
||||
chrome.privacy.websites.hyperlinkAuditingEnabled.set({
|
||||
value: !!details[setting],
|
||||
scope: 'regular'
|
||||
});
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -108,6 +108,10 @@ vAPI.browserSettings = {
|
|||
// noop until I find what to use in Firefox
|
||||
break;
|
||||
|
||||
case 'hyperlinkAuditing':
|
||||
// noop until I find what to use in Firefox
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -175,6 +175,10 @@
|
|||
"message":"Disable pre-fetching (to prevent any connection for blocked network requests)",
|
||||
"description":"English: "
|
||||
},
|
||||
"settingsHyperlinkAuditingDisabledPrompt":{
|
||||
"message":"Disable hyperlink auditing",
|
||||
"description":"English: "
|
||||
},
|
||||
"settingsExperimentalPrompt":{
|
||||
"message":"Enable experimental features (<a href='https:\/\/github.com\/gorhill\/uBlock\/wiki\/Experimental-features'>About<\/a>)",
|
||||
"description":"English: Enable experimental features"
|
||||
|
|
|
@ -7,9 +7,23 @@ ul#userSettings {
|
|||
li {
|
||||
margin-top: 0.25em;
|
||||
}
|
||||
ul#userSettings {
|
||||
ul#userSettings,
|
||||
ul#userSettings ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
ul#userSettings a.info {
|
||||
color: #ccc;
|
||||
}
|
||||
ul#userSettings a.info:hover {
|
||||
color: #444;
|
||||
}
|
||||
ul#userSettings .subgroup {
|
||||
margin-top: 1em;
|
||||
}
|
||||
ul#userSettings .subgroup > span {
|
||||
font-size: larger;
|
||||
font-weight: bold;
|
||||
}
|
||||
#localData > ul > li {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
|
|
@ -62,6 +62,7 @@ return {
|
|||
experimentalEnabled: false,
|
||||
externalLists: defaultExternalLists,
|
||||
firewallPaneMinimized: true,
|
||||
hyperlinkAuditingDisabled: true,
|
||||
parseAllABPHideFilters: true,
|
||||
prefetchingDisabled: true,
|
||||
requestLogMaxEntries: 1000,
|
||||
|
|
|
@ -192,10 +192,16 @@ var onUserSettingsReceived = function(details) {
|
|||
changeUserSettings('prefetchingDisabled', this.checked);
|
||||
});
|
||||
|
||||
uDom('#advanced-user-enabled')
|
||||
.prop('checked', details.advancedUserEnabled === true)
|
||||
uDom('#prefetching-disabled')
|
||||
.prop('checked', details.prefetchingDisabled === true)
|
||||
.on('change', function(){
|
||||
changeUserSettings('advancedUserEnabled', this.checked);
|
||||
changeUserSettings('prefetchingDisabled', this.checked);
|
||||
});
|
||||
|
||||
uDom('#hyperlink-auditing-disabled')
|
||||
.prop('checked', details.hyperlinkAuditingDisabled === true)
|
||||
.on('change', function(){
|
||||
changeUserSettings('hyperlinkAuditingDisabled', this.checked);
|
||||
});
|
||||
|
||||
uDom('#experimental-enabled')
|
||||
|
|
|
@ -16,8 +16,10 @@
|
|||
<li><input id="context-menu-enabled" type="checkbox"><label data-i18n="settingsContextMenuPrompt" for="context-menu-enabled"></label>
|
||||
<li><input id="color-blind-friendly" type="checkbox"><label data-i18n="settingsColorBlindPrompt" for="color-blind-friendly"></label>
|
||||
<li><input id="advanced-user-enabled" type="checkbox"><label data-i18n="settingsAdvancedUserPrompt" for="advanced-user-enabled"></label>
|
||||
<!-- <li><input id="experimental-enabled" type="checkbox" disabled><label data-i18n="settingsExperimentalPrompt" for="experimental-enabled"></label> -->
|
||||
<li><input id="prefetching-disabled" type="checkbox"><label data-i18n="settingsPrefetchingDisabledPrompt" for="prefetching-disabled"></label>
|
||||
<li class="subgroup"><span data-i18n="3pGroupPrivacy"></span><ul>
|
||||
<li><input id="prefetching-disabled" type="checkbox"><label data-i18n="settingsPrefetchingDisabledPrompt" for="prefetching-disabled"></label> <a class="fa info" href="https://wikipedia.org/wiki/Link_prefetching#Issues_and_criticisms" target="_blank"></a>
|
||||
<li><input id="hyperlink-auditing-disabled" type="checkbox"><label data-i18n="settingsHyperlinkAuditingDisabledPrompt" for="hyperlink-auditing-disabled"></label> <a class="fa info" href="http://www.wilderssecurity.com/threads/hyperlink-auditing-aka-a-ping-and-beacon-aka-navigator-sendbeacon.364904/" target="_blank"></a>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<div id="localData" style="margin: 0 1em;">
|
||||
|
|
Loading…
Reference in a new issue