mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-27 11:53:44 +03:00
Add Alt+P hotkey stub
This commit is contained in:
parent
0d7678ff50
commit
3d72acc6dd
|
@ -0,0 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
chrome.commands.onCommand.addListener((command) => {
|
||||
if (command === 'toggle-pac-script') {
|
||||
console.log("Toggling PAC-script!");
|
||||
}
|
||||
});
|
|
@ -27,6 +27,14 @@
|
|||
"strict_min_version": "91.1.0"
|
||||
}
|
||||
},
|
||||
"commands": {
|
||||
"toggle-pac-script": {
|
||||
"suggested_key": {
|
||||
"default": "Alt+P"
|
||||
},
|
||||
"description": "Turn on/off current PAC-script"
|
||||
}
|
||||
},
|
||||
|
||||
"background": {
|
||||
${persistent}
|
||||
|
@ -40,9 +48,10 @@
|
|||
${scripts_2x}
|
||||
, "35-pac-kitchen-api.js"
|
||||
, "37-sync-pac-script-with-pac-provider-api.js"
|
||||
${scripts_8x}
|
||||
, "70-menu-items.js"
|
||||
, "75-context-menus.js"
|
||||
, "76-hotkeys.js",
|
||||
${scripts_8x}
|
||||
]
|
||||
},
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ exports.contexts.full = Object.assign({}, commonContext, {
|
|||
persistent: '',
|
||||
scripts_0x: '',
|
||||
scripts_2x: ', "20-ip-to-host-api.js"',
|
||||
scripts_8x: ', "80-error-menu.js", "83-last-errors.js", "85-block-informer.js"',
|
||||
scripts_8x: '"80-error-menu.js", "83-last-errors.js", "85-block-informer.js"',
|
||||
});
|
||||
|
||||
exports.contexts.mini = Object.assign({}, commonContext, {
|
||||
|
|
Loading…
Reference in New Issue
Block a user