").parent().html()),$(".page-footer").removeClass("padding-bottom-extra"),$(".page-footer").removeClass("padding-bottom-novideo"),$("#favicon").attr("href","public/images/favicon.png"),D.log(M),1==$("#alreadyfp").length?t():(tt=!0,V=!0,t()),0===$("#alreadychannel").length&&$("head").append("
150||(e.value.startsWith("/name ")?P.namechange(e.value.substring(6)):e.value.startsWith("/removename")?P.removename():"#all_chat"==$(".chat-tab-li a.active").attr("href")?M.emit("all,chat",e.value):M.emit("chat",e.value),e.value="")},allchat:function(e){J||":"!=e.msg.substring(0,1)||me||($("#favicon").attr("href","public/images/highlogo.png"),J=!0,W=!0,fe=!0,ye||P.chat_blink()),document.hidden&&$("#favicon").attr("href","public/images/highlogo.png");var t=D.intToARGB(D.hashCode(e.from));if(t.length<6)for(x=t.length;x<6;x++)t="0"+t;t=D.hexToRgb(t.substring(0,6));var a=D.rgbToHsl([t.r,t.g,t.b],!1);$("#chatall").append("
"+e.from+"");var n=document.createTextNode(e.msg);$("#chatall li:last")[0].appendChild(n),document.getElementById("chatall").scrollTop=document.getElementById("chatall").scrollHeight},channelchat:function(e){J||":"!=e.msg.substring(0,1)||me||($("#favicon").attr("href","public/images/highlogo.png"),W=!0,fe=!0,ye||P.chat_blink());var t=D.intToARGB(D.hashCode(e.from));if(t.length<6)for(x=t.length;x<6;x++)t="0"+t;t=D.hexToRgb(t.substring(0,6));var a=D.rgbToHsl([t.r,t.g,t.b],!1);$("#chatchannel").append("
"+e.from+"");var n=document.createTextNode(e.msg);$("#chatchannel li:last")[0].appendChild(n),document.getElementById("chatchannel").scrollTop=document.getElementById("chatchannel").scrollHeight},chat_blink:function(){ye=!0,$(".chat-link").attr("style","color: grey !important;"),setTimeout(function(){$(".chat-link").attr("style","color: white !important;"),setTimeout(function(){ye&&P.chat_blink()},1e3)},1e3)}},z={conf_pass:void 0,init:function(){"/"!=window.location.pathname&&("https:"!=location.protocol?document.cookie=H.toLowerCase()+"=;path=/"+H.toLowerCase()+";expires="+new Date(0).toUTCString():document.cookie=H.toLowerCase()+"=;path=/"+H.toLowerCase()+";secure;expires="+new Date(0).toUTCString());try{conf_arr=z.decrypt(z.getCookie("_opt"),"_opt")}catch(e){conf_arr=z.decrypt(z.create_cookie("_opt"),"_opt")}if("/"!=window.location.pathname){try{z.conf_pass=z.decrypt(z.getCookie(H.toLowerCase()),H.toLowerCase())}catch(e){z.conf_pass=z.decrypt(z.create_cookie(H.toLowerCase()),H.toLowerCase())}R.change_enabled(conf_arr.remote),100!=conf_arr.width&&nt.set_width(conf_arr.width),void 0!==conf_arr.name&&""!==conf_arr.name&&P.namechange(conf_arr.name)}},decrypt:function(e,t){void 0===z.getCookie(t)&&(e=z.create_cookie(t));var a=CryptoJS.AES.decrypt(e,"0103060703080703080701",{mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return $.parseJSON(a.toString(CryptoJS.enc.Utf8))},decrypt_pass:function(e){var t=CryptoJS.AES.decrypt(e,M.id,{mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return t.toString(CryptoJS.enc.Utf8)},encrypt:function(e,t){var a=JSON.stringify(e),n=CryptoJS.AES.encrypt(a,"0103060703080703080701",{mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}),o=new Date;o.setFullYear(o.getFullYear()+1),"https:"!=location.protocol?document.cookie=t+"="+n.toString()+";expires="+o.toGMTString()+";path=/;":document.cookie=t+"="+n.toString()+";secure;expires="+o.toGMTString()+";path=/;"},encrypt_string:function(e){var t=CryptoJS.AES.encrypt(e,M.id,{mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return t.toString()},get_volume:function(){return z.decrypt(z.getCookie("_opt"),"_opt").volume},get_offline:function(){var e=z.decrypt(z.getCookie("_opt"),"_opt").offline;return void 0!=e?z.decrypt(z.getCookie("_opt"),"_opt").offline:(z.set_offline(!1),!1)},set_volume:function(e){conf_arr.volume=e,z.encrypt(conf_arr,"_opt")},create_cookie:function(e){"_opt"==e?cookie_object={volume:100,width:100,remote:!0,name:"",offline:!1}:cookie_object={passwords:{}};var t=JSON.stringify(cookie_object),a=CryptoJS.AES.encrypt(t,"0103060703080703080701",{mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}),n=new Date;return n.setFullYear(n.getFullYear()+1),"https:"!=location.protocol?document.cookie=e+"="+a.toString()+";expires="+n.toGMTString()+";path=/;":document.cookie=e+"="+a.toString()+";secure;expires="+n.toGMTString()+";path=/;",z.getCookie(e)},set_pass:function(e,t){z.conf_pass.passwords[e]=t,z.encrypt(z.conf_pass,e)},remove_pass:function(e){delete z.conf_pass.passwords[e],z.encrypt(z.conf_pass,e.toLowerCase())},set_name:function(e){conf_arr.name=encodeURIComponent(e).replace(/\W/g,""),z.encrypt(conf_arr,"_opt")},set_offline:function(e){conf_arr.offline=e,z.encrypt(conf_arr,"_opt")},remove_name:function(){conf_arr.name="",z.encrypt(conf_arr,"_opt")},get_pass:function(e){if(void 0!==z.conf_pass)return z.conf_pass.passwords[e]},set_remote:function(e){conf_arr.remote=e,z.encrypt(conf_arr,"_opt")},get_remote:function(e){return conf_arr.remote},crypt_pass:function(e){var t=CryptoJS.AES.encrypt(e,M.id,{mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return t.toString()},get_width:function(){return conf_arr.width},set_width:function(e){conf_arr.width=e,z.encrypt(conf_arr,"_opt")},getCookie:function(e){var t="; "+document.cookie,a=t.split("; "+e+"=");if(2==a.length)return a.pop().split(";").shift()}},V=!0,j={blob_list:[],winter:(new Date).getMonth()>=10,times_rotated:0,frontpage_function:function(e){$("#channels").empty(),V=!0,D.log("-----------"),D.log("Frontpage fetch"),D.log(e),D.log("------------"),j.populate_channels(e.channels),j.set_viewers(e.viewers)},populate_channels:function(e){var t,a="",n=0;1==e[0].pinned&&(t=e.shift()),e.sort(j.sortFunction),void 0!==t&&e.unshift(t),pre_card=$(B),D.log("------------"),D.log(pre_card),D.log("-------------"),D.mobilecheck()||j.add_backdrop(e,0);for(var o in e){var i=e[o].channel;if(n<12){var s=e[o].id,l=e[o].viewers,r="background-image:url('https://img.youtube.com/vi/"+s+"/hqdefault.jpg');",c=e[o].count,d=pre_card;1==e[o].pinned?(d.find(".pin").attr("style","display:block;"),d.find(".card").attr("title","Pinned!")):(d.find(".pin").attr("style","display:none;"),d.find(".card").attr("title","")),d.find(".chan-name").text(i),d.find(".chan-name").attr("title",i),d.find(".chan-views").text(l),d.find(".chan-songs").text(c),d.find(".chan-bg").attr("style",r),d.find(".chan-link").attr("href",i),$("#channels").append(d.html())}a+="