mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-09-20 13:03:45 +02:00
parent
861ba4869e
commit
7451963ad6
3 changed files with 17 additions and 14 deletions
|
@ -350,20 +350,23 @@
|
||||||
"keybindCurrentlySet": {
|
"keybindCurrentlySet": {
|
||||||
"message": ". It is currently set to:"
|
"message": ". It is currently set to:"
|
||||||
},
|
},
|
||||||
"supportInvidious": {
|
"supportOtherSites": {
|
||||||
"message": "Support Invidious"
|
"message": "Support 3rd Party YouTube-Sites"
|
||||||
},
|
},
|
||||||
"supportInvidiousDescription": {
|
"supportOtherSitesDescription": {
|
||||||
"message": "Invidious (invidio.us) is a third party YouTube client. To enable support, you must accept the extra permissions. This does NOT work in incognito on Chrome and other Chromium variants."
|
"message": "Support third party party YouTube clients. To enable support, you must accept the extra permissions. This does NOT work in incognito on Chrome and other Chromium variants."
|
||||||
|
},
|
||||||
|
"supportedSites": {
|
||||||
|
"message": "Supported Sites: "
|
||||||
},
|
},
|
||||||
"optionsInfo": {
|
"optionsInfo": {
|
||||||
"message": "Enable Invidious support, disable autoskip, hide buttons and more."
|
"message": "Enable Invidious support, disable autoskip, hide buttons and more."
|
||||||
},
|
},
|
||||||
"addInvidiousInstance": {
|
"addInvidiousInstance": {
|
||||||
"message": "Add Invidious Instance"
|
"message": "Add 3rd-Party Client Instance"
|
||||||
},
|
},
|
||||||
"addInvidiousInstanceDescription": {
|
"addInvidiousInstanceDescription": {
|
||||||
"message": "Add a custom instance of Invidious. This must be formatted with JUST the domain. Example: invidious.ajay.app"
|
"message": "Add a custom instance. This must be formatted with JUST the domain. Example: invidious.ajay.app"
|
||||||
},
|
},
|
||||||
"add": {
|
"add": {
|
||||||
"message": "Add"
|
"message": "Add"
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<div id="support-invidious" option-type="toggle" sync-option="supportInvidious">
|
<div id="support-invidious" option-type="toggle" sync-option="supportInvidious">
|
||||||
<label class="switch-container" label-name="__MSG_supportInvidious__">
|
<label class="switch-container" label-name="__MSG_supportOtherSites__">
|
||||||
<label class="switch">
|
<label class="switch">
|
||||||
<input type="checkbox">
|
<input type="checkbox">
|
||||||
<span class="slider round"></span>
|
<span class="slider round"></span>
|
||||||
|
@ -43,7 +43,8 @@
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<div class="small-description">__MSG_supportInvidiousDescription__</div>
|
<div class="small-description">(__MSG_supportedSites__ Invidious, CloudTube)</div>
|
||||||
|
<div class="small-description">__MSG_supportOtherSitesDescription__ </div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
|
@ -22,12 +22,11 @@ class SkipNotice {
|
||||||
this.contentContainer = contentContainer;
|
this.contentContainer = contentContainer;
|
||||||
|
|
||||||
//get reference node
|
//get reference node
|
||||||
let referenceNode = document.getElementById("player-container-id")
|
let referenceNode = document.getElementById("player-container-id")
|
||||||
|| document.getElementById("movie_player") || document.querySelector("#player-container .video-js");
|
?? document.getElementById("movie_player")
|
||||||
// YouTube Music
|
?? document.querySelector("#main-panel.ytmusic-player-page") // YouTube music
|
||||||
if (new URL(document.URL).host === "music.youtube.com") {
|
?? document.querySelector("#player-container .video-js") // Invidious
|
||||||
referenceNode = document.querySelector("#main-panel.ytmusic-player-page");
|
?? document.querySelector(".main-video-section > .video-container"); // Cloudtube
|
||||||
}
|
|
||||||
if (referenceNode == null) {
|
if (referenceNode == null) {
|
||||||
//for embeds
|
//for embeds
|
||||||
const player = document.getElementById("player");
|
const player = document.getElementById("player");
|
||||||
|
|
Loading…
Reference in a new issue