diff --git a/src/components/Player.vue b/src/components/Player.vue index 69034c9c..6f3c4a68 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -1,14 +1,9 @@ diff --git a/src/components/Preferences.vue b/src/components/Preferences.vue index cf04fbf9..220daf2c 100644 --- a/src/components/Preferences.vue +++ b/src/components/Preferences.vue @@ -30,6 +30,10 @@ Skip Music: Non-Music Section
+
+ Autoplay Video +
+

Instances List

@@ -75,6 +79,7 @@ export default { skipInteraction: true, skipSelfPromo: true, skipMusicOffTopic: true, + autoPlayVideo: true, }; }, mounted() { @@ -133,6 +138,9 @@ export default { } }); } + + this.autoPlayVideo = + localStorage.getItem("playerAutoPlay") === null || localStorage.getItem("playerAutoPlay") === "true"; } }, methods: { @@ -149,6 +157,8 @@ export default { if (this.skipSelfPromo) sponsorSelected.push("selfpromo"); if (this.skipMusicOffTopic) sponsorSelected.push("music_offtopic"); localStorage.setItem("selectedSkip", sponsorSelected); + + localStorage.setItem("playerAutoPlay", this.autoPlayVideo); } }, sslScore(url) {