Created
November 4, 2013 17:45
-
-
Save chepe263/7306435 to your computer and use it in GitHub Desktop.
"Pretty playlist"
This little script changes the playlist in the page http://www.kyauandalbert.com/en/radio.html to the following format ##. Artist "Trackname" (Remixed) Just open the developer tools of your browser (Chrome=F12 key) and find the "console" tab. Copy the script and press enter.
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
/* | |
"Pretty playlist" | |
This little script changes the playlist in the page http://www.kyauandalbert.com/en/radio.html to the following format | |
##. Artist "Trackname" (Remixed) | |
01. SHato & Paul Rockseek "The Hunt" (No-Name-Exist Remix) | |
Original format | |
##Artist Tracname (Remixed) | |
01Armin van Buuren Wont Let You Go (Tritonal Club Mix) | |
*/ | |
jQuery('.c12p .hgrey:not(.left)').each(function(){ | |
valOri=jQuery(this).html(); | |
newVal =''; | |
if (valOri.indexOf('(') != -1){ | |
parentesisPos = valOri.indexOf('('); | |
newVal = '"' + valOri.substr(0,parentesisPos - 1) + '"' + valOri.substr(parentesisPos - 1) | |
} else { | |
newVal = '"' + valOri + '"'; | |
} | |
jQuery(this).html(newVal); | |
}); | |
jQuery('.lister').each(function(){ | |
jQuery(this).html(jQuery(this).html() + ". "); | |
}); | |
jQuery('strong .dviolett').parent().parent().parent().prepend("<br /><strong class='violett'>Track of the month</strong><br/>"); | |
jQuery('strong .dviolett').hide(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment