Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var player=(document.player)?document.player:document.getElementById('player');
- setInterval('live_get()',4500);
- function live_get() {
- if (document.getElementById("var4").innerHTML === "one") {
- var sc = document.getElementById("var3").innerHTML;
- }else{ sc = document.getElementById("var1").innerHTML; }
- var z = sc.indexOf("[[")+2;
- var x = sc.indexOf("-");
- var y = x-z;
- var live_song_artist = sc.substr(z, y);
- var live_song_artist = live_song_artist.replace("'","'","&","&");
- var z = sc.indexOf("-")+2;
- var x = sc.indexOf("]]");
- var y = x-z;
- var live_song = sc.substr(z, y);
- var live_song = live_song.replace("'","'","&","&");
- var d = sc.indexOf("{{")+2;
- var e = sc.indexOf("}}");
- var f = e-d;
- var live_dj = sc.substr(d, f);
- var live_dj = live_dj.replace("'", "'", "&", "&");
- var g = sc.indexOf("((")+2;
- var h = sc.indexOf("))");
- var i = h-g;
- var live_bitrate = sc.substr(g, i);
- var currentTime = new Date()
- var second = currentTime.getSeconds()
- if ((second/2) > 25 ) {
- if(fallback === 'true') {
- var livetitle = orig_title;
- }else {
- var livetitle = orig_title+"@"+live_bitrate+"kbps";
- }
- }else if ((second/2) > 20 ) {
- var livetitle = "DJ:"+live_dj;
- }else if ((second/2) > 15 ) {
- var livetitle = "Song:"+live_song;
- }else if ((second/2) > 10 ) {
- var livetitle = "Artist:"+live_song_artist;
- }
- javascript:player.setTitle(livetitle);
- };
Add Comment
Please, Sign In to add comment