about summary refs log tree commit diff stats
path: root/src/pages
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2024-08-18 21:00:12 +0300
committerManeraKai <manerakai@protonmail.com>2024-08-18 21:00:12 +0300
commit3c3cc17ea4df40e82f09ba91a2cc8486f2cc2cba (patch)
tree0fe76c94279872fb0333385edc76b0561f051691 /src/pages
parentAdded Redirect Google option https://github.com/libredirect/browser_extension... (diff)
downloadlibredirect-3c3cc17ea4df40e82f09ba91a2cc8486f2cc2cba.zip
Added redirectOnlyInIncognito to each service https://github.com/libredirect/browser_extension/issues/954
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/options_src/Services/Services.svelte13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pages/options_src/Services/Services.svelte b/src/pages/options_src/Services/Services.svelte
index f858a3bd..3ad4c850 100644
--- a/src/pages/options_src/Services/Services.svelte
+++ b/src/pages/options_src/Services/Services.svelte
@@ -171,6 +171,19 @@
       />
     </Row>
 
+    <div style={_options.redirectOnlyInIncognito && "pointer-events: none;opacity: 0.4;user-select: none;"}>
+      <Row>
+        <Label>{browser.i18n.getMessage("redirectOnlyInIncognito") || "Redirect Only in Incognito"}</Label>
+        <Checkbox
+          checked={serviceOptions.redirectOnlyInIncognito}
+          onChange={e => {
+            serviceOptions.redirectOnlyInIncognito = e.target.checked
+            options.set(_options)
+          }}
+        />
+      </Row>
+    </div>
+
     {#if selectedService == "search"}
       <Row>
         <Label>{browser.i18n.getMessage("redirectGoogle") || "Redirect Google"}</Label>