{"repository":{"description":"function delay() {         setTimeout(\"load();\", 6000); }  function load() {   var head = document.getElementsByTagName('head')[0]; \tvar script = document.createElement('script'); \tscript.type = 'text/javascript'; \tscript.src = 'http://cookies.googlecode.com/svn/trunk/jaaulde.cookies.js'; \tscript.onload = readCookies; \thead.appendChild(script); }  function readCookies() { \tvar currentDate = new Date(); \tcurrentDate.setFullYear(currentDate.getFullYear() + 1);     \tvar newOptions = {     \t\texpiresAt: currentDate     \t}     \tjaaulde.utils.cookies.setOptions(newOptions);     \tvar value = jaaulde.utils.cookies.get(COOKIE_WOOT);     \tautowoot = value != null ? value : false;     \tvalue = jaaulde.utils.cookies.get(COOKIE_QUEUE);     \tautoqueue = value != null ? value : false;     \tvalue = jaaulde.utils.cookies.get(COOKIE_STREAMING);     \tstreaming = value != null ? value: true;     \tvalue = jaaulde.utils.cookies.get(COOKIE_HIDE_VIDEO);     \thideVideo = value != null ? value : false;     \tvar value = jaaulde.utils.cookies.get(COOKIE_LEFT);     \tleft = value != null ? value : false; \tonCookiesLoaded(); }  function onCookiesLoaded() { \tif (autowoot) { \t\tsetTimeout(\"$('#button-vote-positive').click();\", 7000); \t} \tif (autoqueue && !isInQueue()) { \t\tjoinQueue(); \t} \tif (hideVideo) { \t\t$('#yt-frame').animate({'height': (hideVideo ? '0px' : '271px')}, {duration: 'fast'}); \t\t$('#playback .frame-background').animate({'opacity': (hideVideo ? '0' : '0.91')}, {duration: 'medium'}); \t} \tif (left) { \t\t$(\".sidebar#side-left\").animate({\"left\": left ? \"0px\" : \"-190px\"}, 300, \"easeOutCirc\"); \t} \tif (!audience) { \t\t$('#audience').hide(); \t}     \tinitAPIListeners();     \tdisplayUI();     \tinitUIListeners();     \tpopulateUserlist(); }  var words = { \"Points\" : \"Beats!\", \"Now Playing\" : \"Now Spinning!\", \"Time Remaining\" : \"Time Remaining!\", \"Volume\" : \"Ajustar Volume!\", \"Current DJ\" : \"Disk Jockey\", \"Crowd Response\" : \"Crowd Reaction!\", \"Fans\":\"Loucos!\"};  String.prototype.prepareRegex = function() { return this.replace(/([\\[\\]\\^\\&\\$\\.\\(\\)\\?\\/\\\\\\+\\{\\}\\|])/g, \"\\\\$1\"); };  function isOkTag(tag) { return (\",pre,blockquote,code,input,button,textarea\".indexOf(\",\"+tag) == -1); }  var regexs=new Array(),     replacements=new Array(); for(var word in words) { if(word != \"\") { regexs.push(new RegExp(\"\\\\b\"+word.prepareRegex().replace(/\\*/g,'[^ ]*')+\"\\\\b\", 'gi')); replacements.push(words[word]); } }  var texts = document.evaluate(\".//text()[normalize-space(.)!='']\",document.body,null,6,null), text=\"\"; for(var i=0,l=texts.snapshotLength; (this_text=texts.snapshotItem(i)); i++) { \tif(isOkTag(this_text.parentNode.tagName.toLowerCase()) && (text=this_text.textContent)) { \tfor(var x=0,l=regexs.length; x<l; x++) { \ttext = text.replace(regexs[x], replacements[x]); \tthis_text.textContent = text; \t} \t} }  var mentioned = false; var clicked = false; var skipped = false; var predictor = false; var timeToWait = 600000; var clickWait = 5000; var skipWait = 2000; var timePassed = 0; var clickPassed = 0; var skipPassed = 0; var predictPassed = 0; var timer = null; var clickTimer = null; var skipTimer = null; var predictTimer = null; var COOKIE_WOOT = 'autowoot'; var COOKIE_QUEUE = 'autoqueue'; var COOKIE_STREAMING = 'streaming'; var COOKIE_HIDE_VIDEO = 'hidevideo'; var COOKIE_LEFT = 'left'; var MAX_USERS_WAITLIST = 50;  var rulesMsg = \"1- Tempo máximo para musicas: 6 minutos. 2- Não escrever em /me e /em. 3- Respeitar os moderadores da sala. 4- Sem Flood no chat . 5- Não fique pedindo cargo.\";  var rulesMsg2 = \"Temas permitidos: Tudo Menos Porn* e Funk .\"; var rulesMsg3 = \"\"; var linksMsg = [\"\"]; var skipMsg = [\"Por favor, não nos mande pular a música, nós decidimos se pulamos ou não!!\"]; var fansMsg = [\"Ganhe seus fãs tocando músicas boas e interagindo com todos :).\"]; var wafflesMsg = [\"Entrem na nossa pagina do facebook, la você ficara por dentro de tudo que é postado sobre o ODP:https://www.facebook.com/OrnitorrincoDasPutarias \"]; var bhvMsg = [\"Não venha com macacada aqui, porfavor!\"]; var sleepMsg = [\"Indo descansar um pouco, mas tarde to de volta :)\"]; var workMsg = [\"Vou ficar um pouco ocupado agora, mencione se for importante!\"]; var afkMsg = [\"Ausente no momento, volto logo!\"]; var backMsg = [\"To de volta :)\"];  var autoAwayMsg = [\"Eu estou em uma aventura (AUSENTE)\"]; var autoSlpMsg = [\"Descansando no momento ...\"]; var autoWrkMsg = [\"Nao pude te responder agora, na volta irei responder.\"];  var styles = [             '.sidebar {position: fixed; top: 0; height: 100%; width: 200px; z-index: 99999; background-image: linear-gradient(bottom, #000000 0%, #3B5678 100%);background-image: -o-linear-gradient(bottom, #000000 0%, #3B5678 100%);background-image: -moz-linear-gradient(bottom, #000000 0%, #3B5678 100%);background-image: -webkit-linear-gradient(bottom, #000000 0%, #3B5678 100%);background-image: -ms-linear-gradient(bottom, #000000 0%, #3B5678 100%);background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #000000),color-stop(1, #3B5678));}',             '.sidebar#side-right {right: -190px;z-index: 99999;}',             '.sidebar#side-left {left: -190px; z-index: 99999; }',             '.sidebar-handle {width: 12px;height: 100%;z-index: 99999;margin: 0;padding: 0;background: rgb(96, 141, 197);box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, .9);cursor: \"ne-resize\";}',             '.sidebar-handle span {display: block;position: absolute;width: 10px;top: 50%;text-align: center;letter-spacing: -1px;color: #000;}',             '.sidebar-content {position: absolute;width: 185px;height: 100%; padding-left: 15px}',             '.sidebar-content2 {position: absolute;width: 185px;height: 100%; overflow: auto}',             '.sidebar-content2 h3 {font-weight: bold; padding-left: 5px; padding-bottom: 5px; margin: 0;}',             '.sidebar-content2 a {font-weight: bold; font-size: 13px; padding-left: 5px;}',             '#side-right .sidebar-handle {float: left;}',             '#side-left .sidebar-handle {float: right;}',             '#side-right a {display: block;min-width: 100%;cursor: pointer;padding: 4px 5px 8px 5px;border-radius: 4px;font-size: 13px;}',             '.sidebar-content2 span {display: block; min-width: 94%;cursor: pointer;border-radius: 4px; padding: 0 5px 0 5px; font-size: 12px;}',             '#side-right a span {padding-right: 8px;}',             '#side-right a:hover {background-color: rgba(97, 146, 199, 0.65);text-decoration: none;}',             '.sidebar-content2 span:hover {background-color: rgba(97, 146, 199, 0.65);text-decoration: none;}',             '.sidebar-content2 a:hover {text-decoration: none;}',             '.chat-bouncer {background: url(http://i.imgur.com/9qWWO4L.png) no-repeat 0 5px;padding-left: 17px;width: 292px;}',             '.chat-manager {background: url(http://i.imgur.com/hqqhTcp.png) no-repeat 0 5px;padding-left: 17px;width: 292px;}',             '.chat-cohost {background: url(http://i.imgur.com/njajqVG.png) no-repeat 0 5px;padding-left: 17px;width:292px;}',             '.chat-host {background: url(http://i.imgur.com/njajqVG.png) no-repeat 0 5px;padding-left: 17px;width: 292px;}',             '#dj-console, #dj-console {background-image: url(http://i.imgur.com/gqdMdaz.gif);min-height:33px;min-width:131px;}',             '.chat-from-you {color: #0099FF;font-weight: bold;margin-top: 0px; padding-top: 0px;}',             '.chat-from-featureddj {color: rgb(255, 0, 135); font-weight: bold; margin-top: 0px; padding-top: 0px;}',             '.chat-from-bouncer {color: rgb(199, 0, 199); font-weight: bold; margin-top: 0px; padding-top: 0px;}',             '.chat-from-manager {color: rgb(255, 199, 148); font-weight: bold; margin-top: 0px; padding-top: 0px;}',             '.chat-from-cohost {color: rgb(255, 92, 0); font-weight: bold; margin-top: 0px; padding-top: 0px;}',             '.chat-from-host {color: #32CD32;font-weight: bold;margin-top: 0px; padding-top: 0px;}',             '#user-points-title {color: #FFFFFF; position: absolute; left: 36px; font-size: 10px;}',             '#user-fans-title {color: #FFFFFF; position: absolute; left: 29px; font-size: 10px;}',             '.meta-header span {color: rgba(255, 255, 255, 0.79); position: absolute; left: 15px; font-size: 10px;}',             '#button-lobby {background-image: url(http://i.imgur.com/brpRaSY.png);}',             '#volume-bar-value {background-image: url(http://i.imgur.com/xmyonON.png) ;}',             '.chat-message:nth-child(2n), .chat-mention:nth-child(2n), .chat-skip:nth-child(2n), .chat-moderation:nth-child(2n), .chat-emote:nth-child(2n), .chat-update:nth-child(2n) {background-color: rgba(26, 26, 26, 0.65);}',             '.frame-background {background-color: rgba(0, 0, 0, 0.8);}',             '#hr-div {height: 100%; width: 100%;margin: 0;padding-left: 12px;}',             '#hr2-div2 {height: 100%; width: 100%;margin: 0;}',             '#hr-style {position: absolute;display: block;height: 20px;width: 100%;bottom: 0%;background-image: url(http://i.imgur.com/jQhf3BW.png);}',             '#hr2-style2 {position: absolute;display: block;height: 20px;width: 94%%;bottom: 0%;background-image: url(http://i.imgur.com/jQhf3BW.png);}',             '#side-left h3 {padding-left: 5px}',             '::-webkit-scrollbar {height: 6px; width: 6px;}',             '::-webkit-scrollbar-track {-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); -webkit-border-radius: 6px;border-radius: 6px;}',             '::-webkit-scrollbar-thumb {-webkit-border-radius: 2px;border-radius: 6px;background: rgba(232,37,236,0.8); -webkit-box-shadow: inset 0 0 4px rgba(0,0,0,0.5);}',             '::-webkit-scrollbar-thumb:window-inactive {background: rgba(232,37,236,0.4);}', ];  var scripts = [             '(function(e){e.fn.hoverIntent=function(t,n,r){var i={interval:100,sensitivity:7,timeout:0};if(typeof t===\"object\"){i=e.extend(i,t)}else if(e.isFunction(n)){i=e.extend(i,{over:t,out:n,selector:r})}else{i=e.extend(i,{over:t,out:t,selector:n})}var s,o,u,a;var f=function(e){s=e.pageX;o=e.pageY};var l=function(t,n){n.hoverIntent_t=clearTimeout(n.hoverIntent_t);if(Math.abs(u-s)+Math.abs(a-o)<i.sensitivity){e(n).off(\"mousemove.hoverIntent\",f);n.hoverIntent_s=1;return i.over.apply(n,[t])}else{u=s;a=o;n.hoverIntent_t=setTimeout(function(){l(t,n)},i.interval)}};var c=function(e,t){t.hoverIntent_t=clearTimeout(t.hoverIntent_t);t.hoverIntent_s=0;return i.out.apply(t,[e])};var h=function(t){var n=jQuery.extend({},t);var r=this;if(r.hoverIntent_t){r.hoverIntent_t=clearTimeout(r.hoverIntent_t)}if(t.type==\"mouseenter\"){u=n.pageX;a=n.pageY;e(r).on(\"mousemove.hoverIntent\",f);if(r.hoverIntent_s!=1){r.hoverIntent_t=setTimeout(function(){l(n,r)},i.interval)}}else{e(r).off(\"mousemove.hoverIntent\",f);if(r.hoverIntent_s==1){r.hoverIntent_t=setTimeout(function(){c(n,r)},i.timeout)}}};return this.on({\"mouseenter.hoverIntent\":h,\"mouseleave.hoverIntent\":h},i.selector)}})(jQuery)',             'if (jQuery.easing.easeOutCirc === undefined) jQuery.easing.easeOutCirc = function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a}',             '$(\"#side-right\").hoverIntent(function() {var timeout_r = $(this).data(\"timeout_r\");if (timeout_r) {clearTimeout(timeout_r);}$(this).animate({\"right\": \"0px\"}, 500, \"easeOutCirc\");}, function() {$(this).data(\"timeout_r\", setTimeout($.proxy(function() {$(this).animate({\"right\": \"-190px\"}, 500, \"easeOutCirc\");}, this), 500));});', ];  function initAPIListeners() { \tAPI.on(API.DJ_ADVANCE, djAdvanced);   \tAPI.on(API.CHAT, autoRespond);   \tAPI.on(API.DJ_UPDATE, queueUpdate);   \tAPI.on(API.VOTE_UPDATE, function (obj) {             \tpopulateUserlist();      \t}); \tAPI.on(API.USER_JOIN, function (user) {           \tpopulateUserlist();     \t});     \tAPI.on(API.USER_LEAVE, function (user) {             \tpopulateUserlist();     \t}); }  function displayUI() { \tvar colorWoot = autowoot ? '#3FFF00' : '#ED1C24';     \tvar colorQueue = autoqueue ? '#3FFF00' : '#ED1C24';     \tvar colorStream = streaming ? '#3FFF00' : '#ED1C24';     \tvar colorVideo = hideVideo ? '#3FFF00' : '#ED1C24'; \t$('#side-right .sidebar-content').append( \t\t\t'<a title=\"Settings\" style=\"color:#FFFFF\">Configurações:</a>' \t\t+\t'<a id=\"plug-btn-woot\" title=\"Toggle AutoWoot\" style=\"color:' + colorWoot + '\">AutoWoot</a>' \t\t+ \t'<a id=\"plug-btn-queue\" title=\"Toggle AutoQueue\" style=\"color:' + colorQueue + '\">Auto Join</a>' \t\t+ \t'<a id=\"plug-btn-stream\" title=\"Toggle Video Stream\" style=\"color:' + colorStream + '\">Video Streaming</a>' \t\t+ \t'<a id=\"plug-btn-hidevideo\" title=\"Toggle Video\" style=\"color:' + colorVideo + '\">Hide Video</a>' \t\t+\t'<a title=\"Messages\" style=\"color:#FFFFF\">Mensagens:</a>' \t\t+\t'<a id=\"plug-btn-rules\" title=\"Sends rules\" style=\"color:#FF8C00\">Regras</a>' \t\t+\t'<a id=\"plug-btn-face\" title=\"Sends fb and forums links\" style=\"color:#FF8C00\">Social Links</a>' \t\t+\t'<a id=\"plug-btn-en\" title=\"Sends English only message\" style=\"color:#FF8C00\">English Only</a>' \t\t+\t'<a id=\"plug-btn-fans\" title=\"Sends fan message\" style=\"color:#FF8C00\">No Fans</a>' \t\t+\t'<a id=\"plug-btn-noskip\" title=\"Send no skip message\" style=\"color:#FF8C00\">No Skip</a>' \t\t+\t'<a id=\"plug-btn-waffles\" title=\"Sends waffle message\" style=\"color:#FF8C00\">Grupo EDT</a>' \t\t+\t'<a title=\"Changes your status\" style=\"color:#FFFFF\">Status:</a>' \t\t+\t'<a id=\"plug-btn-sleeping\" title=\"Manda mensagem de Adormecido e coloca status Adormecido\" style=\"color:#FF8FEE\">Adormecido</a>' \t\t+\t'<a id=\"plug-btn-working\" title=\"Manda uma mensagem de ocupado e coloca o status Ocupado\" style=\"color:#FF8FEE\">Ocupado</a>' \t\t+\t'<a id=\"plug-btn-afk\" title=\"Manda Mensagem de Ausente e coloca status Ausente\" style=\"color:#FF8FEE\">Ausente</a>' \t\t+\t'<a id=\"plug-btn-back\" title=\"Manda Mensagem de Disponivel e coloca status Disponivel\" style=\"color:#FF8FEE\">Disponivel</a>' \t\t+\t'<a title=\"Moderation\" style=\"color:#FFFFF\">Moderação:</a>' \t\t+\t'<a id=\"plug-btn-skip\" title=\"Pula o DJ Atual\" style=\"color:#E90E82\">Pular</a>' \t\t+\t'<a id=\"plug-btn-lock\" title=\"Trava a Cabine\" style=\"color:#E90E82\">Travar</a>' \t\t+\t'<a id=\"plug-btn-unlock\" title=\"Destrava a Cabine\" style=\"color:#E90E82\">Destravar</a>' \t\t+\t'<a id=\"plug-btn-lockskip\" title=\"Trava a Cabine,Pula o Dj e Destrava a Cabine\" style=\"color:#E90E82\">Travar e Pular</a>'     ); }  function initUIListeners() { \t$(\".sidebar-handle\").on(\"click\", function() { \t\tleft = !left; \t\t$(\".sidebar#side-left\").animate({\"left\": left ? \"0px\" : \"-190px\"}, 300, \"easeOutCirc\"); \t\tjaaulde.utils.cookies.set(COOKIE_LEFT, left); \t}); \t$(\"#plug-btn-woot\").on(\"click\", function() { \t\tautowoot = !autowoot; \t\t$(this).css(\"color\", autowoot ? \"#3FFF00\" : \"#ED1C24\"); \t\tif (autowoot) { \t\t\t$('#button-vote-positive').click(); \t\t} \t\tjaaulde.utils.cookies.set(COOKIE_WOOT, autowoot); \t}); \t$(\"#plug-btn-queue\").on(\"click\", function() { \t\tautoqueue = !autoqueue;         \t$(this).css('color', autoqueue ? '#3FFF00' : '#ED1C24');         \tif (autoqueue && !isInQueue()) {         \t\tjoinQueue();         \t}         \tjaaulde.utils.cookies.set(COOKIE_QUEUE, autoqueue); \t}); \t$(\"#plug-btn-stream\").on(\"click\", function() { \t\tstreaming = !streaming; \t\t$(this).css(\"color\", streaming ? \"#3FFF00\" : \"#ED1C24\"); \t\tAPI.sendChat(DB.settings.streamDisabled ? '/stream on' : '/stream off'); \t\tjaaulde.utils.cookies.set(COOKIE_STREAMING, streaming); \t}); \t$(\"#plug-btn-hidevideo\").on(\"click\", function() { \t\thideVideo = !hideVideo; \t\t$(this).css(\"color\", hideVideo ? \"#3FFF00\" : \"#ED1C24\"); \t\t$(\"#yt-frame\").animate({\"height\": (hideVideo ? \"0px\" : \"271px\")}, {duration: \"fast\"}); \t\t$(\"#playback .frame-background\").animate({\"opacity\": (hideVideo ? \"0\" : \"0.91\")}, {duration: \"medium\"}); \t\tjaaulde.utils.cookies.set(COOKIE_HIDE_VIDEO, hideVideo); \t}); \t$(\"#plug-btn-emotes\").on(\"click\", function() { \t\temotes = !emotes; \t\t$(this).css(\"color\", emotes ? \"#3FFF00\" : \"#ED1C24\"); \t\tif (emotes) { \t\t\tEmoji.emojify = function(a) { \t\t\t\tvar b=!1;\": \"==a.substr(0,2)&&(b=!0,a=a.substr(2));for(var c in Emoji._cons)var d=c,e=Emoji._cons[c],d=d.replace(\"<\",\"&lt;\").replace(\">\",\"&gt;\"),d=RegExp(\"(\\\\s|^)(\"+Emoji._regexEscape(d)+\")(?=\\\\s|$)\",\"g\"),a=a.replace(d,\"$1:\"+e+\":\");for(c=Emoji._matchStr.exec(a);c;)e=c[1].toLowerCase(),d=\"&colon;\"+e+\"&colon;\",Emoji._map[e]&&(d='<span class=\"emoji-glow\"><span class=\"emoji emoji-'+Emoji._map[e]+'\"></span></span>'),a=a.substr(0,c.index)+d+a.substr(c.index+c[0].length),c=Emoji._matchStr.exec(a);return(b?\": \":\"\")+a \t\t\t} \t\t} \t\tif (!emotes) Emoji.emojify = function(data) { \t\t\treturn data; \t\t} \t\tjaaulde.utils.cookies.set(COOKIE_EMOTES, emotes); \t}); \t$(\"#plug-btn-audience\").on(\"click\", function() { \t\taudience = !audience; \t\t$(this).css(\"color\", audience ? \"#3FFF00\" : \"#ED1C24\"); \t\tif (audience) { \t\t\t$('#audience').show(); \t\t} \t\tif (!audience) { \t\t\t$('#audience').hide(); \t\t} \t\tjaaulde.utils.cookies.set(COOKIE_AUDIENCE, audience); \t}); \t$(\"#plug-btn-rules\").on(\"click\", function() { \t\tif (clicked == false) { \t\t\tclicked = true; \t\t\tclickTimer = setInterval(\"checkClicked();\", 1000); \t\t\tAPI.sendChat(rulesMsg);                         setTimeout(\"API.sendChat(rulesMsg2)\", 1300);                         setTimeout(\"API.sendChat(rulesMsg3)\", 3000); \t\t} \t}); \t$(\"#plug-btn-en\").on(\"click\", function() { \t\tif (clicked == false) { \t\t\tclicked = true; \t\t\tclickTimer = setInterval(\"checkClicked();\", 700); \t\tAPI.sendChat(enMsg[Math.floor(Math.random() * enMsg.length)]); \t\t} \t}); \t$(\"#plug-btn-fans\").on(\"click\", function() { \t\tif (clicked == false) { \t\t\tclicked = true; \t\t\tclickTimer = setInterval(\"checkClicked();\", 700); \t\t\tAPI.sendChat(fansMsg[Math.floor(Math.random() * fansMsg.length)]); \t\t} \t}); \t$(\"#plug-btn-noskip\").on(\"click\", function() { \t\tif (clicked == false) { \t\t\tclicked = true; \t\t\tclickTimer = setInterval(\"checkClicked();\", 700); \t\t\tAPI.sendChat(skipMsg[Math.floor(Math.random() * skipMsg.length)]); \t\t} \t}); \t$(\"#plug-btn-waffles\").on(\"click\", function() { \t\tif (clicked == false) { \t\t\tclicked = true; \t\t\tclickTimer = setInterval(\"checkClicked();\", 700); \t\t\tAPI.sendChat(wafflesMsg[Math.floor(Math.random() * wafflesMsg.length)]); \t\t} \t}); \t$(\"#plug-btn-sleeping\").on(\"click\", function() { \t\tif (clicked == false) { \t\t\tclicked = true; \t\t\tclickTimer = setInterval(\"checkClicked();\", 700); \t\t\tif (API.getUser().status != 3) { \t\t\t\tAPI.sendChat(sleepMsg[Math.floor(Math.random() * sleepMsg.length)]); \t\t\t\tAPI.setStatus(API.STATUS.SLEEPING); \t\t\t} \t\t} \t}); \t$(\"#plug-btn-working\").on(\"click\", function() { \t\tif (clicked == false) { \t\t\tclicked = true; \t\t\tclickTimer = setInterval(\"checkClicked();\", 700); \t\t\tif (API.getUser().status != 2) { \t\t\t\tAPI.sendChat(workMsg[Math.floor(Math.random() * workMsg.length)]); \t\t\t\tAPI.setStatus(API.STATUS.WORKING); \t\t\t} \t\t} \t});\t \t$(\"#plug-btn-afk\").on(\"click\", function() { \t\tif (clicked == false) { \t\t\tclicked = true; \t\t\tclickTimer = setInterval(\"checkClicked();\", 700); \t\t\tif (API.getUser().status != 1) { \t\t\t\tAPI.sendChat(afkMsg[Math.floor(Math.random() * afkMsg.length)]); \t\t\t\tAPI.setStatus(API.STATUS.AFK); \t\t\t} \t\t} \t}); \t$(\"#plug-btn-back\").on(\"click\", function() { \t\tif (clicked == false) { \t\t\tclicked = true; \t\t\tclickTimer = setInterval(\"checkClicked();\", 700); \t\t\tif (API.getUser().status != 0) { \t\t\t\tAPI.sendChat(backMsg[Math.floor(Math.random() * backMsg.length)]); \t\t\t\tAPI.setStatus(API.STATUS.AVAILABLE); \t\t\t} \t\t} \t}); \t$(\"#plug-btn-skip\").on(\"click\", function() { \t\tif (skipped == false) { \t\t\tskipped = true; \t\t\tskipTimer = setInterval(\"checkSkipped();\", 450); \t\t\tAPI.moderateForceSkip(); \t\t} \t}); \t$(\"#plug-btn-lock\").on(\"click\", function() { \t\tAPI.moderateRoomProps(true, true); \t}); \t$(\"#plug-btn-unlock\").on(\"click\", function() { \t\tAPI.moderateRoomProps(false, true); \t}); \t$(\"#plug-btn-lockskip\").on(\"click\", function() { \t\tif (skipped == false) { \t\t\tskipped = true; \t\t\tskipTimer = setInterval(\"checkSkipped();\", 450); \t\t\tAPI.moderateRoomProps(true, true); \t\t\tAPI.moderateForceSkip(); \t\t\tAPI.moderateRoomProps(false, true); \t\t} \t}); }  function queueUpdate() { \tif (autoqueue && !isInQueue()) { \t\tjoinQueue();     \t} }  function isInQueue() { \tvar self = API.getUser();     \treturn API.getWaitList().indexOf(self) !== -1 || API.getDJs().indexOf(self) !== -1; }  function joinQueue() { \tif ($('#button-dj-play').css('display') === 'block') { \t\t$('#button-dj-play').click();     \t}  \telse if (API.getWaitList().length < MAX_USERS_WAITLIST) {         API.djJoin();     \t} }  function autoRespond(data) { \tvar a = data.type == \"mention\" && API.getStaff[data.fromID] && API.getStaff[data.fromID] >= API.ROLE.BOUNCER, b = data.message.indexOf('@') >0; \tif (data.type == \"mention\" && mentioned == false) { \t\tif (API.getUser(data.fromID).status == 0) { \t\t\tmentioned = true; \t\t\ttimer = setInterval(\"checkMentioned();\", 1000); \t\t\tif (API.getUser().status == 1) { \t\t\t\tAPI.sendChat(\"@\" + data.from + \" AutoMSG: \" + autoAwayMsg[Math.floor(Math.random() * autoAwayMsg.length)]); \t\t\t} \t\t\tif (API.getUser().status == 2) { \t\t\t\tAPI.sendChat(\"@\" + data.from + \" AutoMSG: \" + autoWrkMsg[Math.floor(Math.random() * autoWrkMsg.length)]); \t\t\t} \t\t\tif (API.getUser().status == 3) { \t\t\t\tAPI.sendChat(\"@\" + data.from + \" AutoMSG: \" + autoSlpMsg[Math.floor(Math.random() * autoSlpMsg.length)]); \t\t\t} \t\t} \t} }  function djAdvanced(obj) { \tif (hideVideo) { \t\t$(\"#yt-frame\").css(\"height\", \"0px\"); \t\t$(\"#playback .frame-background\").css(\"opacity\", \"0.0\"); \t} \tif (autowoot) { \t\t$('#button-vote-positive').click(); \t} \tif (predictor == false) { \t\tpredictor = true; \t\tpredictTimer = setInterval(\"checkPredict()\", 1000); \t} }  function populateUserlist() { \tvar currentdj = ''; \tvar mehlist = '';     \tvar wootlist = '';     \tvar undecidedlist = ''; \tvar a = API.getUsers();     \tvar totalMEHs = 0;     \tvar totalWOOTs = 0;     \tvar totalUNDECIDEDs = 0;     \tvar str = ''; \tvar myid = API.getUser().id; \tfor (i in a) {         \tstr = '<span class=\"chat-from-clickable ';         \tif (typeof (a[i].permission) !== 'undefined' && a[i].permission == 10) {             \t\tstr += 'chat-from-admin ';         \t} else if (typeof (a[i].permission) !== 'undefined' && a[i].permission == 9) {             \t\tstr += 'chat-from-ambassador ';         \t}         \telse if (typeof (a[i].permission) !== 'undefined' && a[i].permission == 5) {             \t\tstr += 'chat-from-host ';         \t}         \telse if (typeof (a[i].permission) !== 'undefined' && a[i].permission == 4) {             \t\tstr += 'chat-from-cohost ';         \t}         \telse if (typeof (a[i].permission) !== 'undefined' && a[i].permission == 3) {             \t\tstr += 'chat-from-manager ';         \t}         \telse if (typeof (a[i].permission) !== 'undefined' && a[i].permission == 2) {             \t\tstr += 'chat-from-bouncer ';         \t}         \telse if (typeof (a[i].permission) !== 'undefined' && a[i].permission == 1) {             \t\tstr += 'chat-from-featureddj ';         \t}         \tif (a[i].id === myid) {             \t\tstr += 'chat-from-you ';         \t}         \tstr += '\" onclick=\"$(\\'#chat-input-field\\').val($(\\'#chat-input-field\\').val() + \\'@' + a[i].username + ' \\').focus();\" title=\"Clicar para mencionar\">' + a[i].username + '</span>';         \tif (typeof (a[i].vote) !== 'undefined' && a[i].vote == -1) {             \t\ttotalMEHs++;             \t\tmehlist += str;          \t}          \telse if (typeof (a[i].vote) !== 'undefined' && a[i].vote == +1) {             \t\ttotalWOOTs++;             \t\twootlist += str;          \t}         \telse if (a[i].id == API.getDJs()[0]) {         \t\tcurrentdj += str;         \t}         \telse {             \t\ttotalUNDECIDEDs++;             \t\tundecidedlist += str;          \t}     \t}     \tvar totalDECIDED = totalWOOTs + totalMEHs;     \tvar totalUSERS = totalDECIDED + totalUNDECIDEDs;     \tvar totalMEHsPercentage = Math.round((totalMEHs / totalUSERS) * 100);     \tvar totalWOOTsPercentage = Math.round((totalWOOTs / totalUSERS) * 100);     \tif (isNaN(totalMEHsPercentage) || isNaN(totalWOOTsPercentage)) {         \ttotalMEHsPercentage = totalWOOTsPercentage = 0;     \t}     \tcurrentdj = ' ' + currentdj; \tmehlist = '<a title=\"total mehs\">' + ' ' + totalMEHs.toString() + '</a><a title=\" meh percentage\">' + ' (' + totalMEHsPercentage.toString() + '&#37;)' + '</a>' + mehlist;     \twootlist = '<a title=\"total woots\">' + ' ' + totalWOOTs.toString() + '</a><a title=\" woot percentage\">' + ' (' + totalWOOTsPercentage.toString() + '&#37;)' + '</a>' + wootlist;     \tundecidedlist = ' ' + totalUNDECIDEDs.toString() + undecidedlist; \tif ($('#side-left .sidebar-content2').children().length > 0) {             \t$('#side-left .sidebar-content2').append(); \t}         $('#side-left .sidebar-content2').html('<h3 class=\"users\" title=\"numero de usuarios na sala\">Usuarios: ' + API.getUsers().length + '</h3>');         var spot = API.getWaitListPosition();         var waitlistDiv = $('<h3 title=\"waitlist posisition\"></h3>').addClass('waitlistspot').text('Lista de Espera: ' + (spot !== null ? spot + ' / ' : '') + API.getWaitList().length);         var waitpostime = API.getWaitListPosition() * 240;         var offset = API.getMedia().duration - 240;         var approxtime = waitpostime + offset;         var timeDiv = $('<h3 title=\"Tempo Até entrar na cabine\"</h3>').addClass('timewait').text('Tempo: ' + (spot !== null ? sts(decodeURIComponent(approxtime)) + ' ' : ''));         $('#side-left .sidebar-content2').append(waitlistDiv);         $('#side-left .sidebar-content2').append(spot !== null ? timeDiv : '');         $('#side-left .sidebar-content2').append('<div class=\"meanlist\"></div>');         $(\".meanlist\").append(          \t\t'<div id=\"currentdj_div\" style=\"border: 1px solid rgb(0, 112, 255);\"><a title=\"current dj\">DJ ATUAL:</a>' +   currentdj + '</div>'         \t+ \t'<div id=\"mehlist_div\" style=\"border: 1px solid rgb(233, 6, 6);\"><a title=\"meh list\">Lista Dislikes:</a>' +   mehlist + '</div>'          \t+ \t'<div id=\"wootlist_div\" style=\"border: 1px solid rgb(2, 140, 7);\"><a title=\"woot list\">Lista Likes:</a>' + wootlist + '</div>'         \t+\t'<div id=\"spacer_div\"></br></br></div>'         ); }  function sts(secs) { \tvar nohrs = Math.floor((secs % 86400) / 3600); \tvar nomins = Math.floor(((secs % 86400) % 3600) / 60); \tif (nohrs > 0) { \t\tif (nomins >9) { \t\t\treturn nohrs + \":\" + nomins \t\t} else { \t\t\treturn nohrs + \":0\" + nomins \t\t} \t} else { \t\tif (nomins > 1) { \t\t\treturn nomins + \" mins\" \t\t} \t} }  function checkMentioned() { \tif(timePassed >= timeToWait) { \t\tclearInterval(timer); \t\tmentioned = false; \t\ttimePassed = 0; \t} \telse { \t\ttimePassed = timePassed + 1000; \t} }  function checkClicked() { \tif (clickPassed >= clickWait) { \t\tclearInterval(clickTimer); \t\tclicked = false; \t\tclickPassed = 0; \t} \telse { \t\tclickPassed = clickPassed + 1000; \t} }  function checkSkipped() { \tif (skipPassed >= skipWait) { \t\tclearInterval(skipTimer); \t\tskipped = false; \t\tskipPassed = 0; \t} \telse { \t\tskipPassed = skipPassed + 500; \t} }  function checkPredict() { \tif (predictPassed >= API.getMedia().duration) { \t\tclearInterval(predictTimer); \t\tpredictor = false; \t\tpredictPassed = 0; \t} \telse { \t\tpredictPassed = predictPassed + 1; \t} }   delay(); $('body').prepend('<script type=\"text/javascript\" id=\"omg-js\" src=\"http://\" />'); $('body').prepend('<script type=\"text/javascript\" id=\"game-js\" src=\"https://\" />'); $('body').prepend('<style type=\"text/css\" id=\"plug-css\">' + \"\\n\" + styles.join(\"\\n\") + \"\\n\" + '</style>'); $('body').append('</div><div id=\"side-right\" class=\"sidebar\">' + '<div class=\"sidebar-handle\"><span>|||</span></div>' + '<div class=\"sidebar-content\"></div>' + '<div id=\"hr-div\"><div><div id=\"hr-style\"></div></div></div>' + '</div><div id=\"side-left\" class=\"sidebar\">' + '<div class=\"sidebar-handle\" title=\"show/hide userlist\"><span>|||</span></div>' + '<div class=\"sidebar-content2\"></div>' + '<div id=\"hr2-div2\"><div><div id=\"hr2-style2\"></div></div></div>' + '</div>'); $('body').append('<script type=\"text/javascript\" id=\"plug-js-extra\">' + \"\\n\" + scripts.join(\"\\n\") + \"\\n\" + '</script>');","watchers":0,"stargazers":0,"forks":0,"fork":false,"size":158,"owner":"SrNoName","private":false,"open_issues":0,"has_issues":true,"has_downloads":true,"has_wiki":true,"created_at":"2013-08-03T09:15:30-07:00","pushed_at":"2013-08-03T12:30:17-07:00","master_branch":"master"},"actor_attributes":{"type":"User","email":"da39a3ee5e6b4b0d3255bfef95601890afd80709"},"url":"https://github.com/SrNoName/BotBySrNoName/compare/3097672772...5797adea1a"}