mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Make the toolbar warning timeout configurable
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2589
This commit is contained in:
parent
7347a2148a
commit
19db4e57f2
2 changed files with 2 additions and 1 deletions
|
|
@ -82,6 +82,7 @@ const hiddenSettingsDefault = {
|
||||||
requestJournalProcessPeriod: 1000,
|
requestJournalProcessPeriod: 1000,
|
||||||
selfieAfter: 2,
|
selfieAfter: 2,
|
||||||
strictBlockingBypassDuration: 120,
|
strictBlockingBypassDuration: 120,
|
||||||
|
toolbarWarningTimeout: 60,
|
||||||
uiPopupConfig: 'unset',
|
uiPopupConfig: 'unset',
|
||||||
uiStyles: 'unset',
|
uiStyles: 'unset',
|
||||||
updateAssetBypassBrowserCache: false,
|
updateAssetBypassBrowserCache: false,
|
||||||
|
|
|
||||||
|
|
@ -1133,7 +1133,7 @@ const webRequest = {
|
||||||
urls: [ 'http://*/*', 'https://*/*' ]
|
urls: [ 'http://*/*', 'https://*/*' ]
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
vAPI.defer.once({ min: 1 }).then(( ) => {
|
vAPI.defer.once({ sec: µb.hiddenSettings.toolbarWarningTimeout }).then(( ) => {
|
||||||
if ( vAPI.net.hasUnprocessedRequest() === false ) { return; }
|
if ( vAPI.net.hasUnprocessedRequest() === false ) { return; }
|
||||||
vAPI.net.removeUnprocessedRequest();
|
vAPI.net.removeUnprocessedRequest();
|
||||||
return vAPI.tabs.getCurrent();
|
return vAPI.tabs.getCurrent();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue