mirror of https://github.com/gorhill/uBlock.git
implement opening logger with kbd shortcut
This commit is contained in:
parent
dcb02fe6d4
commit
78d9c4d1c5
|
@ -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 New Issue