Skip to content

Instantly share code, notes, and snippets.

@ireeymonse
Forked from cayuu/MuteRdioAds.js
Last active November 7, 2015 02:32
Show Gist options
  • Save ireeymonse/1c270adf8673544503f9 to your computer and use it in GitHub Desktop.
Save ireeymonse/1c270adf8673544503f9 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() {
R.logger.log("iree:trackFinished:"+arguments);
return .001 !== r.volume() && (oVol = r.volume()), r.volume(.001), tf.apply(this, arguments);
};
r._onAudioReady = function() {
R.logger.log("iree:audioReady:"+r.playingAd());
return r.playingAd() || r.volume(oVol), ar.apply(this, arguments);
};
r._next = function() {
arguments[0] = false;
return n.apply(this, arguments);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment