Use "relax" instead of "toggle"

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/371
This commit is contained in:
Raymond Hill 2019-06-27 08:16:18 -04:00
parent 388e5df5fd
commit 6c34b3c3c9
No known key found for this signature in database
GPG key ID: 25E1490B761470C2
6 changed files with 11 additions and 11 deletions

View file

@ -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": [

View file

@ -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": [

View file

@ -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": [

View file

@ -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": [

View file

@ -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',

View file

@ -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;