Skip to content

Instantly share code, notes, and snippets.

@bholzer
Last active December 14, 2015 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bholzer/5051418 to your computer and use it in GitHub Desktop.
Save bholzer/5051418 to your computer and use it in GitHub Desktop.
Unlimited iHeartRadio skips
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));
@bholzer
Copy link
Author

bholzer commented Feb 27, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment