-
-
Save ireeymonse/1c270adf8673544503f9 to your computer and use it in GitHub Desktop.
Mute Rdio Ads (copy + paste into browser console) [24 Oct 2013]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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