Disabled soju in code as you can access songs through embeds #109

This commit is contained in:
ManeraKai 2022-03-17 10:58:05 +03:00
parent e6e1c64122
commit 439c9e49c4
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
24 changed files with 49 additions and 49 deletions

View File

@ -112,7 +112,7 @@ let allPopupFrontends = [
"imgur",
"reddit",
"pixiv",
"spotify",
// "spotify",
"search",
"translate",
"maps",

View File

@ -15,7 +15,7 @@ import pixivHelper from "../../assets/javascripts/helpers/pixiv.js";
import sendTargetsHelper from "../../assets/javascripts/helpers/sendTargets.js";
import peertubeHelper from "../../assets/javascripts/helpers/peertube.js";
import lbryHelper from "../../assets/javascripts/helpers/lbry.js";
import spotifyHelper from "../../assets/javascripts/helpers/spotify.js";
// import spotifyHelper from "../../assets/javascripts/helpers/spotify.js";
import generalHelper from "../../assets/javascripts/helpers/general.js";
import youtubeMusicHelper from "../../assets/javascripts/helpers/youtubeMusic.js";
@ -38,7 +38,7 @@ async function wholeInit() {
await sendTargetsHelper.init();
await peertubeHelper.init();
await lbryHelper.init();
await spotifyHelper.init();
// await spotifyHelper.init();
await generalHelper.init();
}
await wholeInit();
@ -83,7 +83,7 @@ browser.webRequest.onBeforeRequest.addListener(
if (!newUrl) newUrl = lbryHelper.redirect(url, details.type, initiator);
if (!newUrl) newUrl = spotifyHelper.redirect(url, details.type, initiator);
// if (!newUrl) newUrl = spotifyHelper.redirect(url, details.type, initiator);
if (!newUrl) newUrl = translateHelper.redirect(url);
@ -157,7 +157,7 @@ browser.webRequest.onResponseStarted.addListener(
if (!newUrl) newUrl = lbryHelper.changeInstance(url);
if (!newUrl) newUrl = spotifyHelper.changeInstance(url);
// if (!newUrl) newUrl = spotifyHelper.changeInstance(url);
if (newUrl) {
browser.tabs.update({ url: '/pages/errors/instance_offline.html' });

View File

@ -51,10 +51,10 @@
<img src="../../../assets/images/pixiv-icon.svg" />
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
<a href="../wikipedia/wikipedia.html">Wikipedia</a>
@ -262,13 +262,13 @@
</div>
<input type="checkbox" id="pixiv" />
</div>
<div>
<!-- <div>
<div>
<img src="../../../assets/images/spotify-icon.png">
Spotify
</div>
<input type="checkbox" id="spotify" />
</div>
</div> -->
<div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">

View File

@ -62,10 +62,10 @@
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />

View File

@ -53,10 +53,10 @@
<img src="../../../assets/images/pixiv-icon.svg" />
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
<a href="../wikipedia/wikipedia.html">Wikipedia</a>

View File

@ -52,10 +52,10 @@
<img src="../../../assets/images/pixiv-icon.svg" />
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
<a href="../wikipedia/wikipedia.html">Wikipedia</a>

View File

@ -63,10 +63,10 @@
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />

View File

@ -62,10 +62,10 @@
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />

View File

@ -62,10 +62,10 @@
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />

View File

@ -62,10 +62,10 @@
<a href="../pixiv/pixiv.html" class="selected">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />

View File

@ -62,10 +62,10 @@
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />

View File

@ -62,10 +62,10 @@
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />

View File

@ -52,10 +52,10 @@
<img src="../../../assets/images/pixiv-icon.svg" />
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
<a href="../wikipedia/wikipedia.html">Wikipedia</a>

View File

@ -61,10 +61,10 @@
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />

View File

@ -62,10 +62,10 @@
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />

View File

@ -63,10 +63,10 @@
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />

View File

@ -52,10 +52,10 @@
<img src="../../../assets/images/pixiv-icon.svg" />
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
<a href="../wikipedia/wikipedia.html" class="selected">Wikipedia</a>

View File

@ -53,10 +53,10 @@
<img src="../../../assets/images/pixiv-icon.svg" />
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
<a href="../wikipedia/wikipedia.html">Wikipedia</a>

View File

@ -53,10 +53,10 @@
<img src="../../../assets/images/pixiv-icon.svg" />
<a href="../pixiv/pixiv.html">Pixiv</a>
</div>
<div class="title">
<!-- <div class="title">
<img src="../../../assets/images/spotify-icon.png" />
<a href="../spotify/spotify.html">Spotify</a>
</div>
</div> -->
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
<a href="../wikipedia/wikipedia.html">Wikipedia</a>

View File

@ -77,13 +77,13 @@
<input id="disable-pixiv" type="checkbox" checked />
</div>
<div id="spotify" class="some-block">
<!-- <div id="spotify" class="some-block">
<a class="title" href="https://spotify.com">
<img src="../../../assets/images/spotify-icon.png" />
<h4>Spotify</h4>
</a>
<input id="disable-spotify" type="checkbox" checked />
</div>
</div> -->
<div id="wikipedia" class="some-block">
<a class="title" href="https://wikipedia.org">

View File

@ -15,7 +15,7 @@ import mediumHelper from "../../assets/javascripts/helpers/medium.js";
import imgurHelper from "../../assets/javascripts/helpers/imgur.js";
import tiktokHelper from "../../assets/javascripts/helpers/tiktok.js";
import pixivHelper from "../../assets/javascripts/helpers/pixiv.js";
import spotifyHelper from "../../assets/javascripts/helpers/spotify.js";
// import spotifyHelper from "../../assets/javascripts/helpers/spotify.js";
import sendTargetsHelper from "../../assets/javascripts/helpers/sendTargets.js";
import peertubeHelper from "../../assets/javascripts/helpers/peertube.js";
import lbryHelper from "../../assets/javascripts/helpers/lbry.js";
@ -52,7 +52,7 @@ async function wholeInit() {
await imgurHelper.init();
await tiktokHelper.init();
await pixivHelper.init();
await spotifyHelper.init();
// await spotifyHelper.init();
await sendTargetsHelper.init();
await peertubeHelper.init();
await lbryHelper.init();
@ -72,7 +72,7 @@ wholeInit().then(() => {
disableImgurElement.checked = !imgurHelper.getDisable();
disableTiktokElement.checked = !tiktokHelper.getDisable();
disablePixivElement.checked = !pixivHelper.getDisable();
disableSpotifyElement.checked = !spotifyHelper.getDisable();
// disableSpotifyElement.checked = !spotifyHelper.getDisable();
disableMediumElement.checked = !mediumHelper.getDisable();
disablePeertubeElement.checked = !peertubeHelper.getDisable();
disableLbryElement.checked = !lbryHelper.getDisable();
@ -130,9 +130,9 @@ disablePixivElement.addEventListener("change",
event => pixivHelper.setDisable(!event.target.checked)
);
disableSpotifyElement.addEventListener("change",
event => spotifyHelper.setDisable(!event.target.checked)
);
// disableSpotifyElement.addEventListener("change",
// event => spotifyHelper.setDisable(!event.target.checked)
// );
disableMediumElement.addEventListener("change",
event => mediumHelper.setDisable(!event.target.checked)