Skip to content

Instantly share code, notes, and snippets.

@mildfuzz
Created June 7, 2016 08:39
Show Gist options
  • Select an option

  • Save mildfuzz/58e4264c07874de0760a1d1f4ca1c724 to your computer and use it in GitHub Desktop.

Select an option

Save mildfuzz/58e4264c07874de0760a1d1f4ca1c724 to your computer and use it in GitHub Desktop.
likes all folders I like, skips and dislikes all folders I dislike
function parseGenie() {
var owner = $('#nowPlayingFolder').html();
if (/Farrow|dave|simon_mp3|tom|Jason|Sunya/.test(owner)) {
$('span[onclick="rate(1);"]').click();
}
if (/hannah|moosix|ben|Andy|Ryan|scattershot/.test(owner)) {
$('span[onclick="rate(-1);"]').click();
setTimeout(()=> {
$('#btNext').click();
}, 100);
}
}
setInterval(parseGenie, 60000);
parseGenie();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment