Skip to content

Commit

Permalink
Spotify page HTML changed #37
Browse files Browse the repository at this point in the history
  • Loading branch information
cvzi committed Jun 27, 2024
1 parent f828db3 commit 571218a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SpotifyGeniusLyrics.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// @copyright 2020, cuzi (https://github.com/cvzi)
// @supportURL https://github.com/cvzi/Spotify-Genius-Lyrics-userscript/issues
// @icon https://avatars.githubusercontent.com/u/251374?s=200&v=4
// @version 23.6.3
// @version 23.6.4
// @require https://greasyfork.org/scripts/406698-geniuslyrics/code/GeniusLyrics.js
// @require https://cdnjs.cloudflare.com/ajax/libs/lz-string/1.5.0/lz-string.min.js
// @grant GM.xmlHttpRequest
Expand Down Expand Up @@ -409,7 +409,7 @@ let lastPos = null
function updateAutoScroll () {
let pos = null
try {
const els = document.querySelectorAll('.player-controls [data-testid="playback-position"],.player-controls [data-testid="playback-duration"]')
const els = document.querySelectorAll('[data-testid="player-controls"] [data-testid="playback-position"],[data-testid="player-controls"] [data-testid="playback-duration"]')
if (els.length !== 2) {
throw new Error(`Expected 2 playback elements, found ${els.length}`)
}
Expand Down

0 comments on commit 571218a

Please sign in to comment.