summaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:00:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:00:10 +0000
commit9d8d04f0490c3aa94ae646541f6990ccf2507df4 (patch)
tree397509898dc80183eca0d01d047167c256a026cf /debian/patches
parentShowing extension in navbar. (diff)
downloadprivacybadger-9d8d04f0490c3aa94ae646541f6990ccf2507df4.tar.xz
privacybadger-9d8d04f0490c3aa94ae646541f6990ccf2507df4.zip
Disabling visually cluttering messages on popup menu.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/patches/progress-linux/0003-disable-messages-on-popup.patch26
-rw-r--r--debian/patches/series1
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