mirror of https://github.com/gorhill/uBlock.git
this fixes hyperlink auditing setting being r/o after launch of uBlock
This commit is contained in:
parent
c170167f96
commit
1784ffd411
|
@ -144,8 +144,10 @@ var onUserSettingsReady = function(fetched) {
|
||||||
userSettings.experimentalEnabled = false;
|
userSettings.experimentalEnabled = false;
|
||||||
|
|
||||||
µb.contextMenu.toggle(userSettings.contextMenuEnabled);
|
µb.contextMenu.toggle(userSettings.contextMenuEnabled);
|
||||||
vAPI.browserSettings.set({ 'prefetching': !userSettings.prefetchingDisabled });
|
vAPI.browserSettings.set({
|
||||||
vAPI.browserSettings.set({ 'hyperlinkAuditing': !userSettings.hyperlinkAuditingDisabled });
|
'hyperlinkAuditing': !userSettings.hyperlinkAuditingDisabled,
|
||||||
|
'prefetching': !userSettings.prefetchingDisabled
|
||||||
|
});
|
||||||
|
|
||||||
µb.permanentFirewall.fromString(fetched.dynamicFilteringString);
|
µb.permanentFirewall.fromString(fetched.dynamicFilteringString);
|
||||||
µb.sessionFirewall.assign(µb.permanentFirewall);
|
µb.sessionFirewall.assign(µb.permanentFirewall);
|
||||||
|
|
|
@ -273,10 +273,11 @@ var matchWhitelistDirective = function(url, hostname, directive) {
|
||||||
break;
|
break;
|
||||||
case 'experimentalEnabled':
|
case 'experimentalEnabled':
|
||||||
break;
|
break;
|
||||||
|
case 'hyperlinkAuditingDisabled':
|
||||||
|
vAPI.browserSettings.set({ 'hyperlinkAuditing': !value });
|
||||||
|
break;
|
||||||
case 'prefetchingDisabled':
|
case 'prefetchingDisabled':
|
||||||
vAPI.browserSettings.set({
|
vAPI.browserSettings.set({ 'prefetching': !value });
|
||||||
'prefetching': !value
|
|
||||||
});
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue