From be653ac4175cc3a67507d313fbd600e69709a5ca Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sun, 8 May 2022 13:34:13 +0300 Subject: Removed Soju #240. Updated README #252 --- src/pages/options/general/general.html | 5 - src/pages/options/imgur/imgur.html | 1 - src/pages/options/instagram/instagram.html | 1 - src/pages/options/lbry/lbry.html | 1 - src/pages/options/maps/maps.html | 1 - src/pages/options/medium/medium.html | 1 - src/pages/options/peertube/peertube.html | 1 - src/pages/options/reddit/reddit.html | 1 - src/pages/options/search/search.html | 351 ++++++++++++++++++++++- src/pages/options/sendTargets/sendTargets.html | 1 - src/pages/options/spotify/spotify.html | 97 ------- src/pages/options/spotify/spotify.js | 34 --- src/pages/options/tiktok/tiktok.html | 1 - src/pages/options/translate/translate.html | 1 - src/pages/options/twitter/twitter.html | 1 - src/pages/options/wikipedia/wikipedia.html | 1 - src/pages/options/youtube/youtube.html | 16 +- src/pages/options/youtubeMusic/youtubeMusic.html | 1 - 18 files changed, 362 insertions(+), 154 deletions(-) delete mode 100644 src/pages/options/spotify/spotify.html delete mode 100644 src/pages/options/spotify/spotify.js (limited to 'src/pages/options') diff --git a/src/pages/options/general/general.html b/src/pages/options/general/general.html index 7f21046e..c8a8b3fc 100644 --- a/src/pages/options/general/general.html +++ b/src/pages/options/general/general.html @@ -22,7 +22,6 @@
TikTok
Reddit
Imgur
-
Spotify
Wikipedia
@@ -150,10 +149,6 @@
Reddit
-
-
Spotify
- -
diff --git a/src/pages/options/imgur/imgur.html b/src/pages/options/imgur/imgur.html index 2546b041..4b529e07 100644 --- a/src/pages/options/imgur/imgur.html +++ b/src/pages/options/imgur/imgur.html @@ -23,7 +23,6 @@ -
diff --git a/src/pages/options/instagram/instagram.html b/src/pages/options/instagram/instagram.html index a0340fce..866e5ed7 100644 --- a/src/pages/options/instagram/instagram.html +++ b/src/pages/options/instagram/instagram.html @@ -23,7 +23,6 @@ -
diff --git a/src/pages/options/lbry/lbry.html b/src/pages/options/lbry/lbry.html index edbc22be..a5167f21 100644 --- a/src/pages/options/lbry/lbry.html +++ b/src/pages/options/lbry/lbry.html @@ -23,7 +23,6 @@ -
diff --git a/src/pages/options/maps/maps.html b/src/pages/options/maps/maps.html index 3649a34a..b1a38063 100644 --- a/src/pages/options/maps/maps.html +++ b/src/pages/options/maps/maps.html @@ -23,7 +23,6 @@ -
diff --git a/src/pages/options/medium/medium.html b/src/pages/options/medium/medium.html index 5d14fcb1..6f863f01 100644 --- a/src/pages/options/medium/medium.html +++ b/src/pages/options/medium/medium.html @@ -23,7 +23,6 @@ -
diff --git a/src/pages/options/peertube/peertube.html b/src/pages/options/peertube/peertube.html index 8f43e9be..e7ebe99b 100644 --- a/src/pages/options/peertube/peertube.html +++ b/src/pages/options/peertube/peertube.html @@ -23,7 +23,6 @@ -
diff --git a/src/pages/options/reddit/reddit.html b/src/pages/options/reddit/reddit.html index 9e967cac..6fa9090d 100644 --- a/src/pages/options/reddit/reddit.html +++ b/src/pages/options/reddit/reddit.html @@ -23,7 +23,6 @@ -
diff --git a/src/pages/options/search/search.html b/src/pages/options/search/search.html index 7f113875..641823f1 100644 --- a/src/pages/options/search/search.html +++ b/src/pages/options/search/search.html @@ -23,7 +23,6 @@ -
@@ -156,6 +155,356 @@

+
+
+

General

+
+
+

Default categories

+
+
+
+
+ General +
+ +
+
+
+ Images +
+ +
+
+
+ Videos +
+ +
+
+
+ News +
+ +
+
+
+ Maps +
+ +
+
+
+ Music +
+ +
+
+
+ It +
+ +
+
+
+ Science +
+ +
+
+
+ Files +
+ +
+
+
+ Social Media +
+ +
+
+
+

Search language

+ +
+
+

Autocomplete

+ +
+
+

SafeSearch

+ +
+
+

Hostname replace

+ +
+
+

Open Access DOI rewrite

+ +
+
+

Open Access DOI resolver

+ +
+
+

Engine tokens

+ +
+
+
+

User Interface

+
+
+

Interface language

+ +
+
+

Theme

+ +
+
+

Theme style

+ +
+
+

Results on new tabs

+ +
+
+

Infinite scroll

+ +
+
+

Search on category select

+ +
+
+

Vim-like hotkeys

+ +
+
+
+

Privacy

+
+
+

HTTP Method

+ +
+
+

Image proxy

+ +
+
+

Query in the page's title

+ +
+
+

Tracker URL remover

+ +
+
+

Default Instances

diff --git a/src/pages/options/sendTargets/sendTargets.html b/src/pages/options/sendTargets/sendTargets.html index afe3b98f..873a35ef 100644 --- a/src/pages/options/sendTargets/sendTargets.html +++ b/src/pages/options/sendTargets/sendTargets.html @@ -23,7 +23,6 @@ -
diff --git a/src/pages/options/spotify/spotify.html b/src/pages/options/spotify/spotify.html deleted file mode 100644 index 643715df..00000000 --- a/src/pages/options/spotify/spotify.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - - General - - - - - -
-
-

Enable

- -
-
-
-
-
-

Default Instances

-
-
-
-
-

Custom Instances

-
-
-
- - -
-
-
- - -
- - -
-
- \ No newline at end of file diff --git a/src/pages/options/spotify/spotify.js b/src/pages/options/spotify/spotify.js deleted file mode 100644 index 16fa1f56..00000000 --- a/src/pages/options/spotify/spotify.js +++ /dev/null @@ -1,34 +0,0 @@ -import spotifyHelper from "../../../assets/javascripts/helpers/spotify.js"; -import commonHelper from "../../../assets/javascripts/helpers/common.js"; - -let disableSpotifyElement = document.getElementById("disable-spotify"); - -browser.storage.local.get( - [ - "disableSpotifyTargets", - ], - r => { - disableSpotifyElement.checked = !r.disableSpotifyTargets; - } -) - -commonHelper.processDefaultCustomInstances('spotify', 'soju', 'normal', document); - -let latencyElement = document.getElementById("latency"); -let latencyLabel = document.getElementById("latency-label"); -latencyElement.addEventListener("click", - async () => { - let reloadWindow = () => location.reload(); - latencyElement.addEventListener("click", reloadWindow); - await spotifyHelper.init(); - let redirects = spotifyHelper.getRedirects(); - const oldHtml = latencyLabel.innerHTML; - latencyLabel.innerHTML = '...'; - commonHelper.testLatency(latencyLabel, redirects.soju.normal).then(r => { - browser.storage.local.set({ sojuLatency: r }); - latencyLabel.innerHTML = oldHtml; - commonHelper.processDefaultCustomInstances('spotify', 'soju', 'normal', document); - latencyElement.removeEventListener("click", reloadWindow) - }); - } -); \ No newline at end of file diff --git a/src/pages/options/tiktok/tiktok.html b/src/pages/options/tiktok/tiktok.html index b12ee060..5f969d82 100644 --- a/src/pages/options/tiktok/tiktok.html +++ b/src/pages/options/tiktok/tiktok.html @@ -23,7 +23,6 @@ -
diff --git a/src/pages/options/translate/translate.html b/src/pages/options/translate/translate.html index fd0e857d..1d4db028 100644 --- a/src/pages/options/translate/translate.html +++ b/src/pages/options/translate/translate.html @@ -23,7 +23,6 @@ -
diff --git a/src/pages/options/twitter/twitter.html b/src/pages/options/twitter/twitter.html index e84028e7..204e729d 100644 --- a/src/pages/options/twitter/twitter.html +++ b/src/pages/options/twitter/twitter.html @@ -23,7 +23,6 @@ -
diff --git a/src/pages/options/wikipedia/wikipedia.html b/src/pages/options/wikipedia/wikipedia.html index 42eb0bb4..e09aef9d 100644 --- a/src/pages/options/wikipedia/wikipedia.html +++ b/src/pages/options/wikipedia/wikipedia.html @@ -23,7 +23,6 @@ -
diff --git a/src/pages/options/youtube/youtube.html b/src/pages/options/youtube/youtube.html index d5414c08..04d6df46 100644 --- a/src/pages/options/youtube/youtube.html +++ b/src/pages/options/youtube/youtube.html @@ -23,7 +23,6 @@ -
@@ -185,7 +184,10 @@ -   + +
+
+

  + +
+
+

  + +
+
+