-
-
Save rachelbaker/ccaaedcef1cd3a3ba676 to your computer and use it in GitHub Desktop.
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; | |
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); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there! I've been using this from some days ago and I just loved it!
The only thing I'd add is the manual skip, it still plays the ad.
So if you want to add to your code here is what I did (thanks a lot for your code!!!)