diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 19:48:32 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 19:48:32 +0000 |
commit | 8ead540d6ec079f064e6621415baac858abe90d7 (patch) | |
tree | 443b957682a981f2e395616a5b84c67d03741f7f /debian | |
parent | Showing extension in navbar. (diff) | |
download | privacybadger-8ead540d6ec079f064e6621415baac858abe90d7.tar.xz privacybadger-8ead540d6ec079f064e6621415baac858abe90d7.zip |
Disabling visually cluttering messages on popup menu.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian')
-rw-r--r-- | debian/patches/progress-linux/0003-disable-messages-on-popup.patch | 26 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0003-disable-messages-on-popup.patch b/debian/patches/progress-linux/0003-disable-messages-on-popup.patch new file mode 100644 index 0000000..5f17ace --- /dev/null +++ b/debian/patches/progress-linux/0003-disable-messages-on-popup.patch @@ -0,0 +1,26 @@ +Author: Daniel Baumann <daniel.baumann@progress-linux.org> +Description: Disabling visually cluttering messages on popup menu. + +diff -Naurp privacybadger.orig/src/js/popup.js privacybadger/src/js/popup.js +--- privacybadger.orig/src/js/popup.js ++++ privacybadger/src/js/popup.js +@@ -123,18 +123,7 @@ function showNagMaybe() { + $outer.show(); + } + +- if (POPUP_DATA.showLearningPrompt) { +- _showLearningPrompt(); +- +- } else if (!POPUP_DATA.seenComic) { +- chrome.tabs.query({active: true, currentWindow: true}, function (focusedTab) { +- // Show the popup instruction if the active tab is not firstRun.html page +- if (!focusedTab[0].url.startsWith(intro_page_url)) { +- _showNag(); +- } +- }); +- +- } else if (POPUP_DATA.criticalError) { ++ if (POPUP_DATA.criticalError) { + _showError(POPUP_DATA.criticalError); + } + } diff --git a/debian/patches/series b/debian/patches/series index e16e551..3e759c8 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ progress-linux/0001-disable-first-run-page.patch progress-linux/0002-pin-to-toolbar.patch +progress-linux/0003-disable-messages-on-popup.patch |