mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-01 16:33:06 +01:00
code review for 588a8acc
This commit is contained in:
parent
7c478ebabb
commit
2632cf63b2
@ -126,9 +126,7 @@ var onVersionReady = function(lastVersion) {
|
|||||||
(match[4] ? parseInt(match[4], 10) : 0);
|
(match[4] ? parseInt(match[4], 10) : 0);
|
||||||
if ( /rc\d+$/.test(s) ) { v += 100; }
|
if ( /rc\d+$/.test(s) ) { v += 100; }
|
||||||
if ( v > 1015019008 ) { return; }
|
if ( v > 1015019008 ) { return; }
|
||||||
if ( µb.getNetFilteringSwitch('http://behind-the-scene/') !== true ) {
|
if ( µb.getNetFilteringSwitch('http://behind-the-scene/') ) { return; }
|
||||||
return;
|
|
||||||
}
|
|
||||||
var fwRules = [
|
var fwRules = [
|
||||||
'behind-the-scene * * noop',
|
'behind-the-scene * * noop',
|
||||||
'behind-the-scene * image noop',
|
'behind-the-scene * image noop',
|
||||||
@ -142,7 +140,7 @@ var onVersionReady = function(lastVersion) {
|
|||||||
µb.permanentFirewall.fromString(fwRules, true);
|
µb.permanentFirewall.fromString(fwRules, true);
|
||||||
µb.savePermanentFirewallRules();
|
µb.savePermanentFirewallRules();
|
||||||
µb.hnSwitches.fromString([
|
µb.hnSwitches.fromString([
|
||||||
'behind-the-scene: no-large-media false'
|
'no-large-media: behind-the-scene false'
|
||||||
].join('\n'), true);
|
].join('\n'), true);
|
||||||
µb.saveHostnameSwitches();
|
µb.saveHostnameSwitches();
|
||||||
µb.toggleNetFilteringSwitch('http://behind-the-scene/', '', true);
|
µb.toggleNetFilteringSwitch('http://behind-the-scene/', '', true);
|
||||||
@ -301,7 +299,7 @@ var onSelectedFilterListsLoaded = function() {
|
|||||||
].join('\n'),
|
].join('\n'),
|
||||||
'urlFilteringString': '',
|
'urlFilteringString': '',
|
||||||
'hostnameSwitchesString': [
|
'hostnameSwitchesString': [
|
||||||
'behind-the-scene: no-large-media false'
|
'no-large-media: behind-the-scene false'
|
||||||
].join('\n'),
|
].join('\n'),
|
||||||
'lastRestoreFile': '',
|
'lastRestoreFile': '',
|
||||||
'lastRestoreTime': 0,
|
'lastRestoreTime': 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user