Created
June 7, 2016 08:39
-
-
Save mildfuzz/58e4264c07874de0760a1d1f4ca1c724 to your computer and use it in GitHub Desktop.
likes all folders I like, skips and dislikes all folders I dislike
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
| 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