Last active
December 14, 2015 07:29
-
-
Save bholzer/5051418 to your computer and use it in GitHub Desktop.
Unlimited iHeartRadio skips
This file contains 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 stationId=$.parseJSON(localStorage.getItem('p-nowPlaying')).data.id; | |
var oldVal=$.parseJSON(localStorage.getItem('p-station-'+stationId)); | |
var skips=$.parseJSON(localStorage.getItem('p-station-skips')); | |
oldVal.count=0; | |
skips.count=0; | |
localStorage.setItem('p-station-'+stationId, JSON.stringify(oldVal)); | |
localStorage.setItem('p-station-skips', JSON.stringify(skips)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also, localStorage.p-tracks contains an array of track ID's. Once a song plays and stores it's ID, that song can be played on demand