kaleng sicrio

Download KALENG sicrio

If you can't read please download the document

Upload: ryu

Post on 14-Dec-2015

13 views

Category:

Documents


1 download

DESCRIPTION

alaram

TRANSCRIPT

// ==UserScript==// @name RainAlert// @namespace https://www.999dice.com/// @version 0.1// @description Rain alert for 999dice chatroom// @author NaughtySanta, repacked by Sinar// @match https://www.999dice.com/// @include https://www.999dice.com/// @grant none// ==/UserScript==var rainalert = {};var repeat = 1;var d;var Player;rainalert = new Audio();rainalert.src = "http://www.nos.pw/sound/sinar.WAV";rainalert.volume = 0.9;var t;var result;var Search;var speech = new Audio();function soundz() { rainalert.play();}function ActiveChat(){ var evt = window.document.createEvent("MouseEvents"); evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); if (document.getElementsByClassName("BetsTable")[0].children[1].innerHTML.length > 5000){ document.getElementById("ContentTabsContainer").children[2].dispatchEvent(evt); clearInterval(ChatVar); }}function ChronoTimer() { var t = new Date(); var chrono = t - d; chrono = Math.floor(chrono / 1000); var second = chrono % 60; chrono = Math.floor((chrono - second) / 60); var minute = chrono % 60; chrono = Math.floor((chrono - minute) / 60); var hour = chrono % 24; if (!d) { document.getElementById("RainTimer").innerHTML = "No Data Yet!"; } else { document.getElementById("RainTimer").innerHTML = "Kaleng Terakhir: " + hour + " jam " + minute + " menit " + second + " detik yang lalu"; }}function ClickSend(){ var evt = window.document.createEvent("MouseEvents"); evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); document.getElementById("ChatTabSendButton").dispatchEvent(evt);}function RainWarning(){ document.getElementById("ChatTabText").value = "thanks jake";}function ShowBalance() { document.getElementById("ChatTabText").value = "/balance"; ClickSend();}function ShowAddy() { document.getElementById("ChatTabText").value = "/deposit"; ClickSend();}function ShowSabar() { document.getElementById("ChatTabText").value = RainTimer.innerHTML; ClickSend();}function SaveData(){ var params = d; localStorage.setItem("DataDice", params);}function LoadData(){ var dataDice = localStorage.getItem("DataDice"); d = new Date(dataDice);}function CreateChatButton(type, id, classe, value, context) { var button = document.createElement("input"); button.type = type; button.id = id; button.className = classe; button.value = value; context.appendChild(button);}function CreateNewInput (id, value, context){ var input = document.createElement("input"); input.type = "text"; input.id = id; input.maxlength = "20"; input.className = "StandardTextBox"; input.value = value; context.appendChild(input);}function CreateObject (id, value, context){ var div = document.createElement("span"); div.id = id; div.innerText = value; context.appendChild(div);}function CreateBox (id, classe, context, child){ var div = document.createElement("span"); div.id = id; div.class = classe; context.insertBefore(div, child);}function setB() { var ButtonB = CreateChatButton("button", "BalanceButton", "TextButton", "Balance", document.getElementById("ChatTabOtherRooms")); var ButtonA = CreateChatButton("button", "AddyButton", "TextButton", "Addy", document.getElementById("ChatTabOtherRooms")); var ButtonC = CreateChatButton("button", "SabarButton", "TextButton", "Kaleng", document.getElementById("ChatTabOtherRooms")); var ObjectR = CreateObject("RainTimer","No Rain Data!", document.getElementById("ChatTab").children[1]); var BoxChatLeft = CreateBox('CustomBox','ActionBox BetControlsActionBox', document.getElementById('ChatTab'), document.getElementById('ChatTab').children[0]); document.getElementById("BalanceButton").setAttribute("onclick", "ShowBalance();"); document.getElementById("AddyButton").setAttribute("onclick", "ShowAddy()"); document.getElementById("SabarButton").setAttribute("onclick", "ShowSabar()"); document.getElementById("CustomBox").setAttribute("style", "float: left; display: inline-flex");}setB();var ChatVar = window.setInterval(ActiveChat, 1000);var script = document.createElement('script');script.type = "text/javascript";script.appendChild(document.createTextNode('var rainalert = {};\nvar count = 0;\nvar repeat = 1;\nvar d;\nvar Player;\nvar rainalert = new Audio();\nrainalert.src = "http://www.nos.pw/sound/sinar.WAV";\nrainalert.volume = 0.3;\nvar t;\nvar result;\nvar Search;\nvar speech = new Audio();\n\n' + soundz + '\n' + ActiveChat + '\n' + ChronoTimer + '\n' + ClickSend + '\n' + RainWarning + '\n' + ShowAddy + '\n' + ShowBalance + '\n' + ShowSabar + '\n' + '\n' + SaveData + '\n' + LoadData + '\nLoadData();\nwindow.setInterval(function(){\nChronoTimer();\nif (document.getElementsByClassName("Rain").length !== 0 ) {\nif (count === 0 ){\nd = new Date();\nSaveData();\nRainWarning();\n}\nif (count < repeat){\nsoundz();\ncount++;\n}\n}else{\ncount = 0;\n}\n}, 3000);'));(document.body || document.head || document.documentElement).appendChild(script);