[mv3] Add ability to assign a shortcut to "Create a custom filter"

This commit is contained in:
Raymond Hill 2025-07-06 19:06:19 -04:00
parent 7dd6688ed3
commit f1551c56ea
No known key found for this signature in database
GPG key ID: 25E1490B761470C2
4 changed files with 17 additions and 0 deletions

View file

@ -15,6 +15,9 @@
"commands": {
"enter-zapper-mode": {
"description": "__MSG_zapperTipEnter__"
},
"enter-picker-mode": {
"description": "__MSG_pickerTipEnter__"
}
},
"declarative_net_request": {

View file

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

View file

@ -25,6 +25,9 @@
"commands": {
"enter-zapper-mode": {
"description": "__MSG_zapperTipEnter__"
},
"enter-picker-mode": {
"description": "__MSG_pickerTipEnter__"
}
},
"declarative_net_request": {

View file

@ -17,6 +17,9 @@
"commands": {
"enter-zapper-mode": {
"description": "__MSG_zapperTipEnter__"
},
"enter-picker-mode": {
"description": "__MSG_pickerTipEnter__"
}
},
"declarative_net_request": {