Announcements

Help Wizard

Step 1

NEXT STEP

Chrome extension page update listener html5

Chrome extension page update listener html5

Code:

window.addEventListener('yt-page-data-updated' || *spotify page data updated*, function () {
console.log("url changed")
setTimeout(function(){
if(!document.getElementById("play-extension-ytbtn") || !document.getElementById("play-extension-btn")) {
fnAddButtons();
fnDefineEvents();
}
}, 1500);
});

I need the equvivalent of the youtube listener (yt-page-data-updated) just in spotify. I didn't found anything. Thanks in advanced!

Reply
1 Reply

Hey @KalleCro, help's here!

Hmm, I'd love to check this out for you. Could you tell me a bit more about what information you'd like here? Keep me posted!

Have a great day,
Hubo
HuboSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Suggested posts

Let's introduce ourselves!

Hey there you, ย  Yeah, you!ย 😁 ย  Welcome - we're glad you joined the Spotify Community! ย  While you here, let's have a fun game and getโ€ฆ

ModeratorStaff / Moderator/ 4 years ago  in Social & Random