A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/gorhill/uBlock/commit/87feb47b51202cb8464eab91597b706965a224f3 below:

Support disabling `suspendTabsUntilReady` in Firefox · gorhill/uBlock@87feb47 · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+16

-3

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+16

-3

lines changed Original file line number Diff line number Diff line change

@@ -53,7 +53,7 @@ const µBlock = (function() { // jshint ignore:line

53 53

requestJournalProcessPeriod: 1000,

54 54

selfieAfter: 11,

55 55

strictBlockingBypassDuration: 120,

56 -

suspendTabsUntilReady: false,

56 +

suspendTabsUntilReady: 'unset',

57 57

userResourcesLocation: 'unset'

58 58

};

59 59

@@ -104,6 +104,11 @@ const µBlock = (function() { // jshint ignore:line

104 104

if ( out.hasOwnProperty(k) ) { out[k] = o[k]; }

105 105

}

106 106

self.log.verbosity = out.consoleLogLevel;

107 +

if ( typeof out.suspendTabsUntilReady === 'boolean' ) {

108 +

out.suspendTabsUntilReady = out.suspendTabsUntilReady

109 +

? 'yes'

110 +

: 'unset';

111 +

}

107 112

}

108 113

}

109 114

catch(ex) {

Original file line number Diff line number Diff line change

@@ -110,6 +110,12 @@

110 110

this.hiddenSettings[key] = hs[key];

111 111

}

112 112

}

113 +

if ( typeof this.hiddenSettings.suspendTabsUntilReady === 'boolean' ) {

114 +

this.hiddenSettings.suspendTabsUntilReady =

115 +

this.hiddenSettings.suspendTabsUntilReady

116 +

? 'yes'

117 +

: 'unset';

118 +

}

113 119

}

114 120

if ( vAPI.localStorage.getItem('immediateHiddenSettings') === null ) {

115 121

this.saveImmediateHiddenSettings();

Original file line number Diff line number Diff line change

@@ -1002,8 +1002,10 @@ return {

1002 1002

if (

1003 1003

vAPI.net.onBeforeReady instanceof Object &&

1004 1004

(

1005 -

vAPI.net.onBeforeReady.experimental !== true ||

1006 -

µBlock.hiddenSettings.suspendTabsUntilReady

1005 +

vAPI.net.onBeforeReady.experimental !== true &&

1006 +

µBlock.hiddenSettings.suspendTabsUntilReady !== 'no' ||

1007 +

vAPI.net.onBeforeReady.experimental &&

1008 +

µBlock.hiddenSettings.suspendTabsUntilReady === 'yes'

1007 1009

)

1008 1010

) {

1009 1011

vAPI.net.onBeforeReady.start();

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4