From 6e2c2ae607029ca4155286e35065b75e1c71847c Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sun, 13 Mar 2022 22:45:53 +0300 Subject: [PATCH] changed from .onion to .invalid as they're fake domains #108 --- src/assets/javascripts/helpers/search.js | 2 +- src/assets/javascripts/helpers/sendTargets.js | 2 +- src/manifest.json | 2 +- src/pages/popup/popup.html | 2 +- web-ext-config.js | 5 +++++ 5 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 web-ext-config.js diff --git a/src/assets/javascripts/helpers/search.js b/src/assets/javascripts/helpers/search.js index 34615d8..f261092 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 66b39b7..86e579b 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 31ad2ba..d496a51 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 a024d51..f52b52c 100644 --- a/src/pages/popup/popup.html +++ b/src/pages/popup/popup.html @@ -134,7 +134,7 @@
- + diff --git a/web-ext-config.js b/web-ext-config.js new file mode 100644 index 0000000..a2f0dc1 --- /dev/null +++ b/web-ext-config.js @@ -0,0 +1,5 @@ +module.exports = { + ignoreFiles: [ + "instances/get_instances.py" + ], +}; \ No newline at end of file