Skip to content

Instantly share code, notes, and snippets.

@cayuu
Last active April 12, 2017 02:01
Show Gist options
  • Save cayuu/7134360 to your computer and use it in GitHub Desktop.
Save cayuu/7134360 to your computer and use it in GitHub Desktop.
Mute Rdio Ads (copy + paste into browser console) [24 Oct 2013]
var r = R.player, oVol = r.volume(), tf = r._onTrackFinished, ar = r._onAudioReady, n = r._next;
r._onTrackFinished = function() {
return .001 !== r.volume() && (oVol = r.volume()), r.volume(.001), tf.apply(this, arguments);
};
r._onAudioReady = function() {
return r.playingAd() || r.volume(oVol), ar.apply(this, arguments);
};
r._next = function() {
arguments[0] = false;
return n.apply(this, arguments);
};
@paulus76
Copy link

paulus76 commented Jul 6, 2015

Thanks for the scripts! Muting works great during "regular" playback for me, but it does not mute after (inbetween) manual track skip. Is this working for others?

@cayuu
Copy link
Author

cayuu commented Jul 30, 2015

@allanforever thanks! Added to the gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment