Zalati

Disable the auto pause of Spotify after 30 seconds on Discord

Jan 24th, 2021 (edited)
91
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Copy and paste this in Discord Console, using Ctrl+Shift+I to disable the auto pause of Spotify after 30 seconds
  2. XMLHttpRequest.prototype.realOpen = XMLHttpRequest.prototype.open;
  3. var myOpen = function(method, url, async, user, password) {
  4.   if (url == "https://api.spotify.com/v1/me/player/pause") {
  5.     url = "https://api.spotify.com/v1/me/player/play";
  6.   }
  7.   this.realOpen (method, url, async, user, password);
  8. }
  9. XMLHttpRequest.prototype.open = myOpen;
RAW Paste Data