mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Add ability to assign a shortcut to "Create a custom filter"
This commit is contained in:
parent
7dd6688ed3
commit
f1551c56ea
4 changed files with 17 additions and 0 deletions
|
|
@ -15,6 +15,9 @@
|
|||
"commands": {
|
||||
"enter-zapper-mode": {
|
||||
"description": "__MSG_zapperTipEnter__"
|
||||
},
|
||||
"enter-picker-mode": {
|
||||
"description": "__MSG_pickerTipEnter__"
|
||||
}
|
||||
},
|
||||
"declarative_net_request": {
|
||||
|
|
|
|||
|
|
@ -489,6 +489,14 @@ function onCommand(command, tab) {
|
|||
});
|
||||
break;
|
||||
}
|
||||
case 'enter-picker-mode': {
|
||||
if ( browser.scripting === undefined ) { return; }
|
||||
browser.scripting.executeScript({
|
||||
files: [ '/js/scripting/tool-overlay.js', '/js/scripting/picker.js' ],
|
||||
target: { tabId: tab.id },
|
||||
});
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,6 +25,9 @@
|
|||
"commands": {
|
||||
"enter-zapper-mode": {
|
||||
"description": "__MSG_zapperTipEnter__"
|
||||
},
|
||||
"enter-picker-mode": {
|
||||
"description": "__MSG_pickerTipEnter__"
|
||||
}
|
||||
},
|
||||
"declarative_net_request": {
|
||||
|
|
|
|||
|
|
@ -17,6 +17,9 @@
|
|||
"commands": {
|
||||
"enter-zapper-mode": {
|
||||
"description": "__MSG_zapperTipEnter__"
|
||||
},
|
||||
"enter-picker-mode": {
|
||||
"description": "__MSG_pickerTipEnter__"
|
||||
}
|
||||
},
|
||||
"declarative_net_request": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue