mirror of https://github.com/gorhill/uBlock.git
Add ability to open the dashboard with a keyboard shortcut
Related feedback: - https://github.com/gorhill/uBlock/commit/9a6feb34d546#commitcomment-38852663
This commit is contained in:
parent
1a0cded43f
commit
eeae4b2cab
|
@ -21,6 +21,9 @@
|
||||||
"launch-logger": {
|
"launch-logger": {
|
||||||
"description": "__MSG_popupTipLog__"
|
"description": "__MSG_popupTipLog__"
|
||||||
},
|
},
|
||||||
|
"open-dashboard": {
|
||||||
|
"description": "__MSG_popupTipDashboard__"
|
||||||
|
},
|
||||||
"relax-blocking-mode": {
|
"relax-blocking-mode": {
|
||||||
"description": "__MSG_relaxBlockingMode__"
|
"description": "__MSG_relaxBlockingMode__"
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,9 @@
|
||||||
"launch-logger": {
|
"launch-logger": {
|
||||||
"description": "__MSG_popupTipLog__"
|
"description": "__MSG_popupTipLog__"
|
||||||
},
|
},
|
||||||
|
"open-dashboard": {
|
||||||
|
"description": "__MSG_popupTipDashboard__"
|
||||||
|
},
|
||||||
"relax-blocking-mode": {
|
"relax-blocking-mode": {
|
||||||
"description": "__MSG_relaxBlockingMode__"
|
"description": "__MSG_relaxBlockingMode__"
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
"launch-logger": {
|
"launch-logger": {
|
||||||
"description": "__MSG_popupTipLog__"
|
"description": "__MSG_popupTipLog__"
|
||||||
},
|
},
|
||||||
|
"open-dashboard": {
|
||||||
|
"description": "__MSG_popupTipDashboard__"
|
||||||
|
},
|
||||||
"relax-blocking-mode": {
|
"relax-blocking-mode": {
|
||||||
"description": "__MSG_relaxBlockingMode__"
|
"description": "__MSG_relaxBlockingMode__"
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,7 +179,15 @@ vAPI.commands.onCommand.addListener(async command => {
|
||||||
µb.openNewTab({
|
µb.openNewTab({
|
||||||
url: `logger-ui.html${hash}`,
|
url: `logger-ui.html${hash}`,
|
||||||
select: true,
|
select: true,
|
||||||
index: -1
|
index: -1,
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 'open-dashboard': {
|
||||||
|
µb.openNewTab({
|
||||||
|
url: 'dashboard.html',
|
||||||
|
select: true,
|
||||||
|
index: -1,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue