From eeae4b2cabdca00ae100b08331ea7e3730a4b645 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 30 Apr 2020 10:31:23 -0400 Subject: [PATCH] Add ability to open the dashboard with a keyboard shortcut Related feedback: - https://github.com/gorhill/uBlock/commit/9a6feb34d546#commitcomment-38852663 --- platform/chromium/manifest.json | 3 +++ platform/firefox/manifest.json | 3 +++ platform/opera/manifest.json | 3 +++ src/js/commands.js | 10 +++++++++- 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/platform/chromium/manifest.json b/platform/chromium/manifest.json index 0b624c1d3..0f620cf9e 100644 --- a/platform/chromium/manifest.json +++ b/platform/chromium/manifest.json @@ -21,6 +21,9 @@ "launch-logger": { "description": "__MSG_popupTipLog__" }, + "open-dashboard": { + "description": "__MSG_popupTipDashboard__" + }, "relax-blocking-mode": { "description": "__MSG_relaxBlockingMode__" } diff --git a/platform/firefox/manifest.json b/platform/firefox/manifest.json index 0ebc4a5ef..517c67c3a 100644 --- a/platform/firefox/manifest.json +++ b/platform/firefox/manifest.json @@ -30,6 +30,9 @@ "launch-logger": { "description": "__MSG_popupTipLog__" }, + "open-dashboard": { + "description": "__MSG_popupTipDashboard__" + }, "relax-blocking-mode": { "description": "__MSG_relaxBlockingMode__" } diff --git a/platform/opera/manifest.json b/platform/opera/manifest.json index 649acd810..e512bbe11 100644 --- a/platform/opera/manifest.json +++ b/platform/opera/manifest.json @@ -21,6 +21,9 @@ "launch-logger": { "description": "__MSG_popupTipLog__" }, + "open-dashboard": { + "description": "__MSG_popupTipDashboard__" + }, "relax-blocking-mode": { "description": "__MSG_relaxBlockingMode__" } diff --git a/src/js/commands.js b/src/js/commands.js index 8994e84c8..f99c0bf8c 100644 --- a/src/js/commands.js +++ b/src/js/commands.js @@ -179,7 +179,15 @@ vAPI.commands.onCommand.addListener(async command => { µb.openNewTab({ url: `logger-ui.html${hash}`, select: true, - index: -1 + index: -1, + }); + break; + } + case 'open-dashboard': { + µb.openNewTab({ + url: 'dashboard.html', + select: true, + index: -1, }); break; }