about summary refs log tree commit diff stats
path: root/src/assets/javascripts/helpers
diff options
context:
space:
mode:
authorSimonBrazell <simon@brazell.com.au>2021-04-16 10:45:15 +1000
committerSimonBrazell <simon@brazell.com.au>2021-04-16 10:45:15 +1000
commit7640e5c6bc4a79fdcad230c08806c1e9cf8096ca (patch)
treec6232409bffdbb9bbdf1d833649b4c54ca12a9ea /src/assets/javascripts/helpers
parentMerge pull request #219 from jaki/handle-reddit-img (diff)
downloadlibredirect-7640e5c6bc4a79fdcad230c08806c1e9cf8096ca.zip
Prepare for release 1.1.47
Diffstat (limited to 'src/assets/javascripts/helpers')
-rw-r--r--src/assets/javascripts/helpers/google-search.js1
-rw-r--r--src/assets/javascripts/helpers/google-translate.js10
-rw-r--r--src/assets/javascripts/helpers/instagram.js2
-rw-r--r--src/assets/javascripts/helpers/twitter.js7
4 files changed, 11 insertions, 9 deletions
diff --git a/src/assets/javascripts/helpers/google-search.js b/src/assets/javascripts/helpers/google-search.js
index 53f960dd..8bd6a101 100644
--- a/src/assets/javascripts/helpers/google-search.js
+++ b/src/assets/javascripts/helpers/google-search.js
@@ -15,6 +15,7 @@ const redirects = [
   { link: "https://engine.presearch.org", q: "/search" },
   { link: "https://searx.silkky.cloud", q: "/" },
   { link: "https://search.trom.tf", q: "/" },
+  { link: "https://whooglesearch.net", q: "/search" },
   { link: "https://whoogle.sdf.org", q: "/search" },
   { link: "https://whoogle.himiko.cloud", q: "/search" },
   { link: "https://whoogle-search.zeet.app", q: "/search" },
diff --git a/src/assets/javascripts/helpers/google-translate.js b/src/assets/javascripts/helpers/google-translate.js
index e6f450da..7871fdd2 100644
--- a/src/assets/javascripts/helpers/google-translate.js
+++ b/src/assets/javascripts/helpers/google-translate.js
@@ -1,12 +1,8 @@
-const targets = [
-  "translate.google.com"
-];
+const targets = ["translate.google.com"];
 
-const redirects = [
-  "https://translate.metalune.xyz"
-];
+const redirects = ["https://translate.metalune.xyz"];
 
 export default {
   targets,
   redirects,
-}
+};
diff --git a/src/assets/javascripts/helpers/instagram.js b/src/assets/javascripts/helpers/instagram.js
index 1d86773b..5020b4ba 100644
--- a/src/assets/javascripts/helpers/instagram.js
+++ b/src/assets/javascripts/helpers/instagram.js
@@ -13,7 +13,7 @@ const redirects = [
   "https://bibliogram.hamster.dance",
   "https://bibliogram.kavin.rocks",
   "https://insta.trom.tf",
-  "https://bibliogram.hamster.dance"
+  "https://bibliogram.hamster.dance",
 ];
 const reservedPaths = [
   "about",
diff --git a/src/assets/javascripts/helpers/twitter.js b/src/assets/javascripts/helpers/twitter.js
index c6f511d4..8ab8a814 100644
--- a/src/assets/javascripts/helpers/twitter.js
+++ b/src/assets/javascripts/helpers/twitter.js
@@ -1,5 +1,5 @@
 /*
-    Please remember to also update the manifest.json file 
+    Please remember to also update the src/manifest.json file 
     (content_scripts > matches, 'remove-twitter-sw.js') 
     when updating this list:
   */
@@ -10,6 +10,11 @@ const targets = [
   "pbs.twimg.com",
   "video.twimg.com",
 ];
+/*
+    Please remember to also update the 
+    src/assets/javascripts/remove-twitter-sw.js file 
+    (const nitterInstances) when updating this list:
+  */
 const redirects = [
   "https://nitter.net",
   "https://nitter.snopyta.org",