From 46ea5519c1a3613d26fc1a02687570e4b84ad3df Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 11 Mar 2024 11:39:31 -0400 Subject: [PATCH] Add checkboxes to "My filters" pane Related issues: - https://github.com/uBlockOrigin/uBlock-issues/issues/3161 - https://github.com/uBlockOrigin/uBlock-issues/discussions/2895#discussioncomment-8504374 Two checkboxes have been added to the "My filters "pane: 1. A checkbox to wholly disable/enable "My filters". This is equivalent to the checkbox for "My filters" in "Filter lists" pane. 2. A checkbox to enable/disable the trustworthiness of the content of "My filters". Default to untrusted. Since toggling these checkboxes requires reloading all filter lists, their new state must be committed through the "Apply changes" button. Additionally: a "book" icon has been added to the top-right of the dashboard, which is a link to the wiki according to whichever pane is currently active. --- src/1p-filters.html | 7 +- src/3p-filters.html | 4 +- src/_locales/ar/messages.json | 12 +- src/_locales/az/messages.json | 12 +- src/_locales/be/messages.json | 12 +- src/_locales/bg/messages.json | 12 +- src/_locales/bn/messages.json | 12 +- src/_locales/br_FR/messages.json | 12 +- src/_locales/bs/messages.json | 12 +- src/_locales/ca/messages.json | 12 +- src/_locales/cs/messages.json | 12 +- src/_locales/cv/messages.json | 12 +- src/_locales/cy/messages.json | 12 +- src/_locales/da/messages.json | 12 +- src/_locales/de/messages.json | 12 +- src/_locales/el/messages.json | 12 +- src/_locales/en/messages.json | 12 +- src/_locales/en_GB/messages.json | 12 +- src/_locales/eo/messages.json | 12 +- src/_locales/es/messages.json | 12 +- src/_locales/et/messages.json | 12 +- src/_locales/eu/messages.json | 12 +- src/_locales/fa/messages.json | 12 +- src/_locales/fi/messages.json | 12 +- src/_locales/fil/messages.json | 12 +- src/_locales/fr/messages.json | 12 +- src/_locales/fy/messages.json | 12 +- src/_locales/gl/messages.json | 12 +- src/_locales/gu/messages.json | 12 +- src/_locales/he/messages.json | 12 +- src/_locales/hi/messages.json | 12 +- src/_locales/hr/messages.json | 12 +- src/_locales/hu/messages.json | 12 +- src/_locales/hy/messages.json | 12 +- src/_locales/id/messages.json | 12 +- src/_locales/it/messages.json | 12 +- src/_locales/ja/messages.json | 12 +- src/_locales/ka/messages.json | 12 +- src/_locales/kk/messages.json | 12 +- src/_locales/kn/messages.json | 12 +- src/_locales/ko/messages.json | 12 +- src/_locales/lt/messages.json | 12 +- src/_locales/lv/messages.json | 12 +- src/_locales/mk/messages.json | 12 +- src/_locales/ml/messages.json | 12 +- src/_locales/mr/messages.json | 12 +- src/_locales/ms/messages.json | 12 +- src/_locales/nb/messages.json | 12 +- src/_locales/nl/messages.json | 12 +- src/_locales/oc/messages.json | 12 +- src/_locales/pa/messages.json | 12 +- src/_locales/pl/messages.json | 12 +- src/_locales/pt_BR/messages.json | 12 +- src/_locales/pt_PT/messages.json | 12 +- src/_locales/ro/messages.json | 12 +- src/_locales/ru/messages.json | 12 +- src/_locales/si/messages.json | 12 +- src/_locales/sk/messages.json | 12 +- src/_locales/sl/messages.json | 12 +- src/_locales/so/messages.json | 12 +- src/_locales/sq/messages.json | 12 +- src/_locales/sr/messages.json | 12 +- src/_locales/sv/messages.json | 12 +- src/_locales/sw/messages.json | 12 +- src/_locales/ta/messages.json | 12 +- src/_locales/te/messages.json | 12 +- src/_locales/th/messages.json | 12 +- src/_locales/tr/messages.json | 12 +- src/_locales/uk/messages.json | 12 +- src/_locales/ur/messages.json | 12 +- src/_locales/vi/messages.json | 12 +- src/_locales/zh_CN/messages.json | 12 +- src/_locales/zh_TW/messages.json | 12 +- src/css/3p-filters.css | 1 - src/css/common.css | 16 +++ src/css/dashboard.css | 9 +- src/css/fa-icons.css | 1 + src/dashboard.html | 33 +++-- src/dyna-rules.html | 2 +- src/img/fontawesome/fontawesome-defs.svg | 1 + src/js/1p-filters.js | 82 ++++++++--- src/js/3p-filters.js | 2 + src/js/background.js | 2 +- src/js/codemirror/ubo-static-filtering.js | 158 +++++++++++++--------- src/js/dashboard.js | 18 ++- src/js/dyna-rules.js | 33 ++--- src/js/fa-icons.js | 1 + src/js/messaging.js | 14 +- src/js/settings.js | 53 +++++--- src/js/storage.js | 3 + src/js/whitelist.js | 52 +++---- src/whitelist.html | 7 +- 92 files changed, 886 insertions(+), 465 deletions(-) diff --git a/src/1p-filters.html b/src/1p-filters.html index 965972598..bc08479c5 100644 --- a/src/1p-filters.html +++ b/src/1p-filters.html @@ -22,15 +22,16 @@
- -

question-circle

-   +  

+

+
+