Converts kana and kanji to romaji in Spotify webapp
< 腳本Spotify Romaji的回應
[Fixed] Lyrics aren't converted if the lyrics window was already opened when a song change occurs, closing and reopening the lyrics window converts it again mutation.addedNodes.forEach((addedNode) => { convertNodesToRomaji(addedNode); });
mutation.addedNodes.forEach((addedNode) => { convertNodesToRomaji(addedNode); });
Change to
if(mutation.target.textContent != null){ convertNodesToRomaji(mutation.target) }
Added your fix
Thank you
登入以回復
[Fixed] Lyrics aren't converted if the lyrics window was already opened when a song change occurs, closing and reopening the lyrics window converts it again
mutation.addedNodes.forEach((addedNode) => { convertNodesToRomaji(addedNode); });
Change to
if(mutation.target.textContent != null){ convertNodesToRomaji(mutation.target) }