about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2022-03-13 22:45:53 +0300
committerManeraKai <manerakai@protonmail.com>2022-03-13 22:46:27 +0300
commit6e2c2ae607029ca4155286e35065b75e1c71847c (patch)
treeba5cc1a22026356e35177c23ee55b6a80fa77ce2 /src
parentAdded edge addons link (diff)
downloadlibredirect-6e2c2ae607029ca4155286e35065b75e1c71847c.zip
changed from .onion to .invalid as they're fake domains #108
Diffstat (limited to 'src')
-rw-r--r--src/assets/javascripts/helpers/search.js2
-rw-r--r--src/assets/javascripts/helpers/sendTargets.js2
-rw-r--r--src/manifest.json2
-rw-r--r--src/pages/popup/popup.html2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/assets/javascripts/helpers/search.js b/src/assets/javascripts/helpers/search.js
index 34615d81..f2610925 100644
--- a/src/assets/javascripts/helpers/search.js
+++ b/src/assets/javascripts/helpers/search.js
@@ -4,7 +4,7 @@ import commonHelper from './common.js'
 
 const targets = [
   /^https?:\/{2}(www\.|search\.|)google(\.[a-z]{2,3}){1,2}(\/search(\?.*|$)|\/$)/,
-  /^https?:\/\/libredirect\.onion/
+  /^https?:\/\/libredirect\.invalid/
   // /^https?:\/\/yandex\.com(\...|)(\/search\/..*|\/$)/,
 ];
 let redirects = {
diff --git a/src/assets/javascripts/helpers/sendTargets.js b/src/assets/javascripts/helpers/sendTargets.js
index 66b39b78..86e579be 100644
--- a/src/assets/javascripts/helpers/sendTargets.js
+++ b/src/assets/javascripts/helpers/sendTargets.js
@@ -3,7 +3,7 @@ window.browser = window.browser || window.chrome;
 import commonHelper from './common.js'
 
 const targets = [
-    /^https?:\/\/send.onion\/$/,
+    /^https?:\/\/send.invalid\/$/,
     /^ https ?: \/\/send\.firefox\.com\/$/,
     /^https?:\/\/sendfiles\.online\/$/
 ];
diff --git a/src/manifest.json b/src/manifest.json
index 31ad2ba9..d496a51f 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -45,7 +45,7 @@
       "name": "LibRedirect",
       "keyword": "libredirect",
       "favicon_url": "https://raw.githubusercontent.com/libredirect/libredirect/master/src/assets/images/libredirect-16.png",
-      "search_url": "https://libredirect.onion/?q={searchTerms}",
+      "search_url": "https://libredirect.invalid/?q={searchTerms}",
       "encoding": "UTF-8",
       "is_default": false
     }
diff --git a/src/pages/popup/popup.html b/src/pages/popup/popup.html
index a024d519..f52b52c9 100644
--- a/src/pages/popup/popup.html
+++ b/src/pages/popup/popup.html
@@ -134,7 +134,7 @@
   </div>
 
   <div id="sendTargets" class="some-block">
-    <a class="title" href="http://send.onion">
+    <a class="title" href="http://send.invalid">
       <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
         <path
           d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />