mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +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": {
|
||||
"description": "__MSG_popupTipLog__"
|
||||
},
|
||||
"toggle-blocking-profile": {
|
||||
"description": "__MSG_toggleBlockingProfile__"
|
||||
"relax-blocking-mode": {
|
||||
"description": "__MSG_relaxBlockingMode__"
|
||||
}
|
||||
},
|
||||
"content_scripts": [
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
"launch-logger": {
|
||||
"description": "__MSG_popupTipLog__"
|
||||
},
|
||||
"toggle-blocking-profile": {
|
||||
"description": "__MSG_toggleBlockingProfile__"
|
||||
"relax-blocking-mode": {
|
||||
"description": "__MSG_relaxBlockingMode__"
|
||||
}
|
||||
},
|
||||
"content_scripts": [
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
"description": "__MSG_popupTipLog__"
|
||||
},
|
||||
"toggle-blocking-profile": {
|
||||
"description": "__MSG_toggleBlockingProfile__"
|
||||
"description": "__MSG_relaxBlockingMode__"
|
||||
}
|
||||
},
|
||||
"content_scripts": [
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
"launch-logger": {
|
||||
"description": "__MSG_popupTipLog__"
|
||||
},
|
||||
"toggle-blocking-profile": {
|
||||
"description": "__MSG_toggleBlockingProfile__"
|
||||
"relax-blocking-mode": {
|
||||
"description": "__MSG_relaxBlockingMode__"
|
||||
}
|
||||
},
|
||||
"content_scripts": [
|
||||
|
|
|
@ -42,7 +42,7 @@ const µBlock = (function() { // jshint ignore:line
|
|||
autoUpdateAssetFetchPeriod: 120,
|
||||
autoUpdateDelayAfterLaunch: 180,
|
||||
autoUpdatePeriod: 7,
|
||||
blockingProfiles: '11111 11101 00001',
|
||||
blockingProfiles: '11101 00001',
|
||||
cacheStorageAPI: 'unset',
|
||||
cacheStorageCompression: true,
|
||||
cacheControlForFirefox1376932: 'no-cache, no-store, must-revalidate',
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
|
||||
if ( µBlock.canUseShortcuts === false ) { return; }
|
||||
|
||||
const toggleBlockingProfile = function(tab) {
|
||||
const relaxBlockingMode = function(tab) {
|
||||
if (
|
||||
tab instanceof Object === false ||
|
||||
tab.id <= 0
|
||||
|
@ -169,8 +169,8 @@ vAPI.commands.onCommand.addListener(command => {
|
|||
});
|
||||
});
|
||||
break;
|
||||
case 'toggle-blocking-profile':
|
||||
vAPI.tabs.get(null, toggleBlockingProfile);
|
||||
case 'relax-blocking-mode':
|
||||
vAPI.tabs.get(null, relaxBlockingMode);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue