mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-13 02:14:17 +01:00
Use "relax" instead of "toggle"
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/371
This commit is contained in:
parent
388e5df5fd
commit
6c34b3c3c9
6 changed files with 11 additions and 11 deletions
|
@ -21,8 +21,8 @@
|
||||||
"launch-logger": {
|
"launch-logger": {
|
||||||
"description": "__MSG_popupTipLog__"
|
"description": "__MSG_popupTipLog__"
|
||||||
},
|
},
|
||||||
"toggle-blocking-profile": {
|
"relax-blocking-mode": {
|
||||||
"description": "__MSG_toggleBlockingProfile__"
|
"description": "__MSG_relaxBlockingMode__"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
|
|
|
@ -28,8 +28,8 @@
|
||||||
"launch-logger": {
|
"launch-logger": {
|
||||||
"description": "__MSG_popupTipLog__"
|
"description": "__MSG_popupTipLog__"
|
||||||
},
|
},
|
||||||
"toggle-blocking-profile": {
|
"relax-blocking-mode": {
|
||||||
"description": "__MSG_toggleBlockingProfile__"
|
"description": "__MSG_relaxBlockingMode__"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
"description": "__MSG_popupTipLog__"
|
"description": "__MSG_popupTipLog__"
|
||||||
},
|
},
|
||||||
"toggle-blocking-profile": {
|
"toggle-blocking-profile": {
|
||||||
"description": "__MSG_toggleBlockingProfile__"
|
"description": "__MSG_relaxBlockingMode__"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
|
|
|
@ -28,8 +28,8 @@
|
||||||
"launch-logger": {
|
"launch-logger": {
|
||||||
"description": "__MSG_popupTipLog__"
|
"description": "__MSG_popupTipLog__"
|
||||||
},
|
},
|
||||||
"toggle-blocking-profile": {
|
"relax-blocking-mode": {
|
||||||
"description": "__MSG_toggleBlockingProfile__"
|
"description": "__MSG_relaxBlockingMode__"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
|
|
|
@ -42,7 +42,7 @@ const µBlock = (function() { // jshint ignore:line
|
||||||
autoUpdateAssetFetchPeriod: 120,
|
autoUpdateAssetFetchPeriod: 120,
|
||||||
autoUpdateDelayAfterLaunch: 180,
|
autoUpdateDelayAfterLaunch: 180,
|
||||||
autoUpdatePeriod: 7,
|
autoUpdatePeriod: 7,
|
||||||
blockingProfiles: '11111 11101 00001',
|
blockingProfiles: '11101 00001',
|
||||||
cacheStorageAPI: 'unset',
|
cacheStorageAPI: 'unset',
|
||||||
cacheStorageCompression: true,
|
cacheStorageCompression: true,
|
||||||
cacheControlForFirefox1376932: 'no-cache, no-store, must-revalidate',
|
cacheControlForFirefox1376932: 'no-cache, no-store, must-revalidate',
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
if ( µBlock.canUseShortcuts === false ) { return; }
|
if ( µBlock.canUseShortcuts === false ) { return; }
|
||||||
|
|
||||||
const toggleBlockingProfile = function(tab) {
|
const relaxBlockingMode = function(tab) {
|
||||||
if (
|
if (
|
||||||
tab instanceof Object === false ||
|
tab instanceof Object === false ||
|
||||||
tab.id <= 0
|
tab.id <= 0
|
||||||
|
@ -169,8 +169,8 @@ vAPI.commands.onCommand.addListener(command => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'toggle-blocking-profile':
|
case 'relax-blocking-mode':
|
||||||
vAPI.tabs.get(null, toggleBlockingProfile);
|
vAPI.tabs.get(null, relaxBlockingMode);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue