mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
implement opening logger with kbd shortcut
This commit is contained in:
parent
dcb02fe6d4
commit
78d9c4d1c5
3 changed files with 21 additions and 0 deletions
|
@ -16,6 +16,12 @@
|
|||
"default": "Alt+X"
|
||||
},
|
||||
"description": "__MSG_popupTipPicker__"
|
||||
},
|
||||
"launch-logger": {
|
||||
"suggested_key": {
|
||||
"default": "Alt+L"
|
||||
},
|
||||
"description": "__MSG_popupTipLog__"
|
||||
}
|
||||
},
|
||||
"default_locale": "en",
|
||||
|
|
|
@ -23,6 +23,12 @@
|
|||
"default": "Alt+X"
|
||||
},
|
||||
"description": "__MSG_popupTipPicker__"
|
||||
},
|
||||
"launch-logger": {
|
||||
"suggested_key": {
|
||||
"default": "Alt+L"
|
||||
},
|
||||
"description": "__MSG_popupTipLog__"
|
||||
}
|
||||
},
|
||||
"default_locale": "en",
|
||||
|
|
|
@ -42,6 +42,15 @@
|
|||
µb.elementPickerExec(tab.id, undefined, command === 'launch-element-zapper');
|
||||
});
|
||||
break;
|
||||
case 'launch-logger':
|
||||
vAPI.tabs.get(null, function(tab) {
|
||||
µb.openNewTab({
|
||||
url: 'logger-ui.html#tab_' + tab.id,
|
||||
select: true,
|
||||
index: -1
|
||||
});
|
||||
});
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue