Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

136
Views
How do i make my tampermonkey script work with soundcloud?

I have a tampermonkey script that i make a while ago.

And i want to improve it so it uses soundcloud's SPA and doesn't reload the page everytime you click on one of the shortcuts.

I have looked at some other questions in stackoverflow and tried many things can't figure out a way for it to work.

For example, if i use history.pushState it does change the URL ! But it doesn't update the page.

function insertButton(playlistname,playlistlink) {
        let playlist = document.createElement('Button');
        let header = document.querySelector('.header__middle');
        playlist.innerHTML = playlistname;
        playlist.onclick = function(){ history.pushState({}, '', playlistlink);};
        playlist.className = 'playlist-button';
        header.insertBefore(playlist, header.children[2]);
}
about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!