From 5c765449c440f080e0699eac9995c7556e990e24 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 3 Dec 2024 12:29:56 -0500 Subject: [PATCH] draft --- .../mv3/extension/_locales/en/messages.json | 8 ++ platform/mv3/extension/css/settings.css | 7 +- platform/mv3/extension/dashboard.html | 1 + platform/mv3/extension/js/background.js | 9 ++ platform/mv3/extension/js/config.js | 3 + platform/mv3/extension/js/ruleset-manager.js | 126 ++++++++++-------- platform/mv3/extension/js/settings.js | 16 +++ 7 files changed, 109 insertions(+), 61 deletions(-) diff --git a/platform/mv3/extension/_locales/en/messages.json b/platform/mv3/extension/_locales/en/messages.json index 9ad38953a..17a5b24cd 100644 --- a/platform/mv3/extension/_locales/en/messages.json +++ b/platform/mv3/extension/_locales/en/messages.json @@ -231,6 +231,14 @@ "message": "Show the number of blocked requests on the toolbar icon", "description": "Label for a checkbox in the options page" }, + "enableStrictBlockLabel": { + "message": "Enable strict blocking", + "description": "Label for a checkbox in the options page" + }, + "enableStrictBlockLegend": { + "message": "Navigation to potentially undesirable sites will be blocked, and you will be offered the option to proceed.", + "description": "Label for a checkbox in the options page" + }, "findListsPlaceholder": { "message": "Find lists", "description": "Placeholder for the input field used to find lists" diff --git a/platform/mv3/extension/css/settings.css b/platform/mv3/extension/css/settings.css index feefcadd8..a8b07d2a1 100644 --- a/platform/mv3/extension/css/settings.css +++ b/platform/mv3/extension/css/settings.css @@ -12,8 +12,11 @@ body.firstRun .firstRun { h3 { margin: 1em 0; } -p { - white-space: pre-line; + +label + legend { + color: color-mix(in srgb, currentColor 69%, transparent); + font-size: small; + margin-inline-start: var(--default-gap-large); } body[data-forbid~="dashboard"] #dashboard-nav [data-pane="settings"], diff --git a/platform/mv3/extension/dashboard.html b/platform/mv3/extension/dashboard.html index bcd1726bd..5ac63f3d0 100644 --- a/platform/mv3/extension/dashboard.html +++ b/platform/mv3/extension/dashboard.html @@ -31,6 +31,7 @@

+