Skip to content

Commit

Permalink
0.2
Browse files Browse the repository at this point in the history
0.2 Changes:
1. Fixes bug preventing song from playing on page load after new website update.
  • Loading branch information
SoaringGecko authored Nov 6, 2023
1 parent e7f2b33 commit 1c7d7f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Fix ZZZ Opera Music/userScript/fixZZZOperaMusic.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Fix ZZZ Opera Music
// @namespace http://tampermonkey.net/
// @version 0.1
// @version 0.2
// @description Fixes the music not playing in the Opera Browser on the Zenless Zone Zero website.
// @author WhiteTapeti
// @match *://zenless.hoyoverse.com/*
Expand All @@ -16,7 +16,7 @@ audio.loop = true;

setInterval(function testLoading() {
if (loaded == 0) {
if (document.getElementsByClassName("loading").length == 0) {
if (document.getElementsByClassName("loading").length == 0 || document.getElementsByClassName("loading")[0].attributes.style.nodeValue == "display: none;" || document.body.contains(document.getElementById("MiruLinks")) == false) {
audio.volume = 0;
audio.play();
getSoundAndFadeAudio(1);
Expand Down

0 comments on commit 1c7d7f0

Please sign in to comment.