Skip to content

Commit

Permalink
Update youtube-music-audio-only.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfung1031 committed Aug 7, 2024
1 parent 957a72a commit f52e0a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions youtube-music-audio-only.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @name YouTube Music: Audio Only
// @description No Video Streaming
// @namespace UserScript
// @version 0.1.12
// @version 0.1.13
// @author CY Fung
// @match https://music.youtube.com/*
// @exclude /^https?://\S+\.(txt|png|jpg|jpeg|gif|xml|svg|manifest|log|ini)[^\/]*$/
Expand Down Expand Up @@ -124,7 +124,7 @@
`;

// Append the dialog to the document body
document.body.insertAdjacentHTML('beforeend', dialogHTML);
document.body.insertAdjacentHTML('beforeend', createHTML(dialogHTML));
dialog = document.getElementById('confirmDialog794');

}
Expand Down Expand Up @@ -971,7 +971,7 @@
if (typeof isEnable !== 'boolean') throw new DOMException("Please Update your browser", "NotSupportedError");
if (isEnable) {
const element = document.createElement('button');
element.setAttribute('onclick', `(${pageInjectionCode})()`);
element.setAttribute('onclick', createHTML(`(${pageInjectionCode})()`));
element.click();
}

Expand Down

0 comments on commit f52e0a6

Please sign in to comment.