From 23a8c0b62f2c1f8faa13a4fe0a38245a3b1524c3 Mon Sep 17 00:00:00 2001 From: hensm Date: Mon, 8 Aug 2022 17:29:14 +0100 Subject: [PATCH] Add site-specific custom user agent option and new whitelist option UI --- ext/src/_locales/en/messages.json | 22 ++++- ext/src/background/whitelist.ts | 45 ++++++--- ext/src/ui/options/Options.svelte | 18 +++- ext/src/ui/options/Whitelist.svelte | 94 +++++++++++++++++-- .../options/assets/photon_arrowhead_down.svg | 13 +++ .../ui/options/assets/photon_arrowhead_up.svg | 13 +++ ext/src/ui/options/styles/index.css | 30 ++++-- 7 files changed, 194 insertions(+), 41 deletions(-) create mode 100644 ext/src/ui/options/assets/photon_arrowhead_down.svg create mode 100644 ext/src/ui/options/assets/photon_arrowhead_up.svg diff --git a/ext/src/_locales/en/messages.json b/ext/src/_locales/en/messages.json index d3d9dec..ae885cf 100755 --- a/ext/src/_locales/en/messages.json +++ b/ext/src/_locales/en/messages.json @@ -329,10 +329,6 @@ "message": "Add Item", "description": "Add new whitelist item button title." }, - "optionsSiteWhitelistUserAgent": { - "message": "Disable UA", - "description": "Whitelist item user agent checkbox title." - }, "optionsSiteWhitelistEditItem": { "message": "Edit", "description": "Edit whitelist item button title. Displayed on each item." @@ -350,13 +346,29 @@ "description": "Default