1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

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": {
"description": "__MSG_popupTipLog__"
},
"toggle-blocking-profile": {
"description": "__MSG_toggleBlockingProfile__"
"relax-blocking-mode": {
"description": "__MSG_relaxBlockingMode__"
}
},
"content_scripts": [

View File

@ -28,8 +28,8 @@
"launch-logger": {
"description": "__MSG_popupTipLog__"
},
"toggle-blocking-profile": {
"description": "__MSG_toggleBlockingProfile__"
"relax-blocking-mode": {
"description": "__MSG_relaxBlockingMode__"
}
},
"content_scripts": [

View File

@ -22,7 +22,7 @@
"description": "__MSG_popupTipLog__"
},
"toggle-blocking-profile": {
"description": "__MSG_toggleBlockingProfile__"
"description": "__MSG_relaxBlockingMode__"
}
},
"content_scripts": [

View File

@ -28,8 +28,8 @@
"launch-logger": {
"description": "__MSG_popupTipLog__"
},
"toggle-blocking-profile": {
"description": "__MSG_toggleBlockingProfile__"
"relax-blocking-mode": {
"description": "__MSG_relaxBlockingMode__"
}
},
"content_scripts": [

View File

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

View File

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