From 9d8d04f0490c3aa94ae646541f6990ccf2507df4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:00:10 +0200 Subject: Disabling visually cluttering messages on popup menu. Signed-off-by: Daniel Baumann --- .../0003-disable-messages-on-popup.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 debian/patches/progress-linux/0003-disable-messages-on-popup.patch (limited to 'debian/patches/progress-linux') 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 +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); + } + } -- cgit v1.2.3