diff options
Diffstat (limited to 'debian/patches/progress-linux/0003-disable-messages-on-popup.patch')
-rw-r--r-- | debian/patches/progress-linux/0003-disable-messages-on-popup.patch | 26 |
1 files changed, 26 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); + } + } |