Skip to content

Instantly share code, notes, and snippets.

View craigds's full-sized avatar
👾
mildly amused

Craig de Stigter craigds

👾
mildly amused
View GitHub Profile
@craigds
craigds / MuteRadioAds.bookmarklet.js
Last active November 9, 2015 02:53 — forked from ireeymonse/MuteRdioAds.js
Mute Rdio Ads (bookmarklet)
javascript:(function()%7Bvar%20r%20%3D%20R.player%2C%20oVol%20%3D%20r.volume()%2C%20tf%20%3D%20r._onTrackFinished%2C%20ar%20%3D%20r._onAudioReady%2C%20n%20%3D%20r._next%3Br._onTrackFinished%20%3D%20function()%20%7Bconsole.log(%22iree%3AtrackFinished%3A%22%2Barguments)%3Bif%20(.001%20!%3D%3D%20r.volume())%7BoVol%20%3D%20r.volume()%3Br.volume(.001)%3B%7Dreturn%20tf.apply(this%2C%20arguments)%3B%7D%3Br._onAudioReady%20%3D%20function()%20%7Bconsole.log(%22iree%3AaudioReady%3A%22%2Br.playingAd())%3Bif%20(!r.playingAd())%7Br.volume(oVol)%3B%7Dreturn%20ar.apply(this%2C%20arguments)%3B%7D%3Bdocument.getElementById('header').style.backgroundColor%20%3D%20'blue'%7D)()