From 2d7a45bace4a8a57adb6422275548b6eaa721f40 Mon Sep 17 00:00:00 2001 From: boocmp Date: Mon, 13 Jan 2025 20:21:37 +0700 Subject: [PATCH] Hide custom filters textbox if dev mode is off and there're no custom filters. --- .../brave_adblock_subpage.html | 31 ++++++----- .../brave_adblock_subpage.ts | 51 ++++++++++++++++--- .../components/brave_adblock_editor.ts | 2 +- .../brave_adblock_scriptlet_list.html | 10 +++- .../brave_adblock_scriptlet_list.ts | 18 ++----- .../webui/settings/brave_adblock_handler.cc | 21 ++++++-- .../ui/webui/settings/brave_adblock_handler.h | 7 +-- 7 files changed, 96 insertions(+), 44 deletions(-) diff --git a/browser/resources/settings/default_brave_shields_page/brave_adblock_subpage.html b/browser/resources/settings/default_brave_shields_page/brave_adblock_subpage.html index d7fcf69f3374..3eefaf16e883 100644 --- a/browser/resources/settings/default_brave_shields_page/brave_adblock_subpage.html +++ b/browser/resources/settings/default_brave_shields_page/brave_adblock_subpage.html @@ -324,27 +324,32 @@ sub-label="$i18n{adblockDeveloperModeDesc}"> -
-
-
- $i18n{adblockCustomFiltersLabel} + -