Advertisement
Guest User

Script Alarm Kaleng 999dice

a guest
Jun 19th, 2016
1,625
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.18 KB | None | 0 0
  1. // ==UserScript==
  2. // @name 999Tools
  3. // @namespace https://drive.google.com/open?id=0BzwzmqEWk5a-U1NsMF9uRFdhSklyXzRneFo0RGY0YWRiWnIw
  4. // @version 0.9.1
  5. // @description Tools: Naugthy Bot script download link and start link, markets exchange infos, bet calculator, chat command, rain alert and option in account tab for 999dice chatroom. use chrome with tampermonkey
  6. // @author NaughtySanta
  7. // @match https://www.999dice.com/
  8. // @include https://www.999dice.com/
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. var repeat = 1,
  13. d, Player, t, result, Search, el1 = document.getElementById("ChatTab"),
  14. el2 = document.getElementById("ChatTabOtherRooms");
  15.  
  16. function collectRef() {
  17. var el = document.getElementById('EarnTabReferralsTable').children[1];
  18. var ar = [];
  19. var i, id, name;
  20. for (i = 0; i < el.children.length; i++) {
  21. var el1 = el.children[i];
  22. id = el1.children[0].innerHTML;
  23. name = el1.children[1].innerHTML;
  24. if (id !== "") {
  25. ar.push([id, name]);
  26. }
  27. }
  28. return ar;
  29. }
  30.  
  31. function collectRefId() {
  32. var el = document.getElementById('EarnTabReferralsTable').children[1];
  33. var ar = [];
  34. var i, id;
  35. for (i = 0; i < el.children.length; i++) {
  36. var el1 = el.children[i];
  37. id = el1.children[0].innerHTML;
  38. if (id !== "") {
  39. ar.push(id);
  40. }
  41. }
  42. return ar;
  43. }
  44.  
  45. function collectRefFull() {
  46. var el = document.getElementById('EarnTabReferralsTable').children[1];
  47. var ar = [];
  48. var arT = [];
  49. var arId = [];
  50. var i, id;
  51. for (i = 0; i < el.children.length; i++) {
  52. var el1 = el.children[i];
  53. id = el1.children[0].innerHTML;
  54. if (id !== "") {
  55. arId.push(id);
  56. arT = [id, el1.children[1].innerHTML];
  57. ar.push([arT[0], arT[1], el1.children[2].innerHTML, el1.children[3].innerHTML]);
  58. } else {
  59. ar.push([arT[0], arT[1], el1.children[2].innerHTML, el1.children[3].innerHTML]);
  60. }
  61. }
  62. return ar;
  63. }
  64.  
  65. function soundz() {
  66. rainalert.play();
  67. }
  68.  
  69. function testSound() {
  70. rainalert.volume = Number((document.getElementById("SoundVolume").value / 100).toFixed(2));
  71. soundz();
  72. }
  73.  
  74. function ActiveChat() {
  75. var e = window.document.createEvent("MouseEvents");
  76. e.initMouseEvent("click", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null);
  77. if (document.getElementsByClassName("BetsTable")[0].children[1].innerHTML.length > 3000) {
  78. ClickId("MinBetButton");
  79. document.getElementById("AutoBetSizeInput").value = "0.00000001";
  80. document.getElementById("ChatTabChatContainer").style.width = "98%";
  81. document.getElementById("ContentTabsContainer").children[2].dispatchEvent(e);
  82. } else {
  83. clearTimeout();
  84. setTimeout(ActiveChat, 1000);
  85. }
  86. console.log('Count Me');
  87. }
  88.  
  89. function ChronoTimer() {
  90. var e = new Date - d,
  91. e = Math.floor(e / 1E3),
  92. c = e % 60,
  93. e = Math.floor((e - c) / 60),
  94. f = e % 60,
  95. e = Math.floor((e - f) / 60),
  96. e = e % 24;
  97. d ? document.getElementById("RainTimer").innerHTML = "LAST RAIN : " + e + " hours " + f + " minutes " + c + " seconds" : document.getElementById("RainTimer").innerHTML = "No Data Yet!";
  98. }
  99.  
  100. function ClickSend() {
  101. var e = window.document.createEvent("MouseEvents");
  102. e.initMouseEvent("click", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null);
  103. document.getElementById("ChatTabSendButton").dispatchEvent(e);
  104. }
  105.  
  106. function ClickId(e) {
  107. var c = window.document.createEvent("MouseEvents");
  108. c.initMouseEvent("click", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null);
  109. document.getElementById(e).dispatchEvent(c);
  110. }
  111.  
  112. function RainWarning() {
  113. !0 === NotifEnable && (document.getElementById("ChatTabText").value = NotifMessage, ClickSend());
  114. }
  115.  
  116. function RainUpdate() {
  117. document.getElementById("ChatTabText").value = "Last Rain Data: " + d.getTime();
  118. ClickSend();
  119. }
  120.  
  121. function RainUp() {
  122. var e = document.getElementById("DateM").value;
  123. "" !== e && (d = new Date(Number(e)));
  124. }
  125.  
  126. function BigRain() {
  127. if (8 < document.getElementById("ChatTab").children[2].children.length || -1 !== document.getElementById("ChatTab").children[2].innerHTML.search(/btc|ltc|dog/i)) {
  128. luckyrain.play(), console.log("The BIG LUCKY RAIN is here!!! Ho ho ho");
  129. }
  130. }
  131.  
  132. function ShowBalance() {
  133. document.getElementById("ChatTabText").value = "/balance";
  134. ClickSend();
  135. }
  136.  
  137. function ShowAddy() {
  138. document.getElementById("ChatTabText").value = "/deposit";
  139. ClickSend();
  140. }
  141.  
  142. function ShowClear() {
  143. document.getElementById("ChatTabText").value = "/clear";
  144. ClickSend();
  145. }
  146.  
  147. function ShowHelp() {
  148. document.getElementById("ChatTabText").value = "/help";
  149. ClickSend();
  150. }
  151.  
  152. function ShowRules() {
  153. document.getElementById("ChatTabText").value = "/Rules";
  154. ClickSend();
  155. }
  156.  
  157. function ShowRainTimer() {
  158. document.getElementById("ChatTabText").value = document.getElementById("RainTimer").innerText;
  159. ClickSend();
  160. }
  161.  
  162. function ShowStats() {
  163. var e;
  164. e = 1 == document.getElementById("DisplayCurrencies").children[0].classList.length ? "Btc" : 1 == document.getElementById("DisplayCurrencies").children[1].classList.length ? "Doge" : "Ltc";
  165. document.getElementById("ChatTabText").value = e + " Stats: Bets " + document.getElementById("StatsUserBetCount").innerHTML + " | Wagered " + document.getElementById("StatsUserBetPayIn").innerHTML + " | Profit " + document.getElementById("StatsUserBetProfit").innerHTML;
  166. ClickSend();
  167. }
  168.  
  169. function showE() {
  170. showTools('Empty');
  171. var e = document.getElementById("ChatTabChatContainer"),
  172. c = document.getElementById("EPanel");
  173. document.getElementById("TPanel").style.display = "none";
  174. document.getElementById("GPanel").style.display = "none";
  175. document.getElementById("BtnPanel").style.display = "none";
  176. "98%" === e.style.width && (e.style.width = "68%", c.style.display = "inline-block");
  177. }
  178.  
  179. function showT() {
  180. showTools('Empty');
  181. var e = document.getElementById("ChatTabChatContainer");
  182. document.getElementById("EPanel").style.display = "none";
  183. document.getElementById("BtnPanel").style.display = "none";
  184. var c = document.getElementById("TPanel");
  185. document.getElementById("GPanel").style.display = "none";
  186. "98%" === e.style.width && (e.style.width = "68%", c.style.display = "inline-block");
  187. }
  188.  
  189. function showG() {
  190. showTools('Empty');
  191. var e = document.getElementById("ChatTabChatContainer");
  192. document.getElementById("EPanel").style.display = "none";
  193. document.getElementById("TPanel").style.display = "none";
  194. document.getElementById("BtnPanel").style.display = "none";
  195. var c = document.getElementById("GPanel");
  196. "98%" === e.style.width && (e.style.width = "58%", c.style.display = "inline-block");
  197. }
  198.  
  199. function showBtn() {
  200. showTools('Empty');
  201. var e = document.getElementById("ChatTabChatContainer");
  202. document.getElementById("EPanel").style.display = "none";
  203. document.getElementById("TPanel").style.display = "none";
  204. document.getElementById("GPanel").style.display = "none";
  205. var c = document.getElementById("BtnPanel");
  206. "98%" === e.style.width && (e.style.width = "68%", c.style.display = "inline-block");
  207. }
  208.  
  209. function showTools(e) {
  210. "Market" === e && showE();
  211. "AutoClicker" === e && showT();
  212. "Generator" === e && showG();
  213. "Button" === e && showBtn();
  214. "Empty" === e && (document.getElementById("ChatTabChatContainer").style.width = "98%", document.getElementById("EPanel").style.display = "none", document.getElementById("TPanel").style.display = "none", document.getElementById("GPanel").style.display = "none", document.getElementById("BtnPanel").style.display = "none");
  215. scrollDown();
  216. }
  217.  
  218. function SendCommand(e) {
  219. "Clear" === e && ShowClear();
  220. "Help" === e && ShowHelp();
  221. "Rules" === e && ShowRules();
  222. "Stats" === e && ShowStats();
  223. }
  224.  
  225. function scrollDown() {
  226. var e = document.getElementById("ChatTabChatContainer");
  227. e.scrollTop = e.scrollHeight;
  228. }
  229.  
  230. function SaveData() {
  231. localStorage.setItem("DataDice", d);
  232. }
  233.  
  234. function LoadData() {
  235. var e = localStorage.getItem("DataDice");
  236. d = new Date(e);
  237. }
  238.  
  239. function setOption() {
  240. rainalert.src = elO1.value;
  241. rainalert.volume = Number(elO2.value) / 100;
  242. NotifEnable = elO3.checked;
  243. NotifMessage = elO4.value;
  244. }
  245.  
  246. function SaveO() {
  247. localStorage.setItem("SoundU", elO1.value);
  248. localStorage.setItem("SoundV", elO2.value);
  249. localStorage.setItem("NotifR", elO3.checked);
  250. localStorage.setItem("NotifM", elO4.value);
  251. localStorage.setItem("FavMarket", elO5.value);
  252. loadO();
  253. }
  254.  
  255. function loadO() {
  256. elO1.value = localStorage.getItem("SoundU");
  257. elO2.value = localStorage.getItem("SoundV");
  258. "true" === localStorage.getItem("NotifR") ? elO3.checked = !0 : elO3.checked = !1;
  259. elO4.value = localStorage.getItem("NotifM");
  260. elO5.value = localStorage.getItem("FavMarket");
  261. setOption();
  262. upFavMarket();
  263. }
  264.  
  265. function onLoad() {
  266. localStorage.SoundV ? loadO() : SaveO();
  267. }
  268.  
  269. function NewReq(e, c, f, g, l, h, m) {
  270. var n = new XMLHttpRequest,
  271. p;
  272. document.getElementById("BalanceActionBoxTab");
  273. n.open("GET", g, !0);
  274. n.send();
  275. n.onreadystatechange = function () {
  276. 4 === n.readyState && 200 === n.status && (p = JSON.parse(n.responseText), document.getElementById(e).innerHTML = p.ticker.markets[f].market + "|" + Number(p.ticker.markets[f].price * l).toFixed(m) + " " + h);
  277. };
  278. }
  279.  
  280. function NewStartReq(e) {
  281. var c = document.getElementById("BtcExchange").value,
  282. f = document.getElementById("BtcMarket").value,
  283. g, l = 1,
  284. h = "Idr";
  285. "btc_idr" !== f ? (g = "https://www.cryptonator.com/api/full/" + f, "btc-xpf" === f && (l = 119.332, h = " F Cfp"), h = "usd" === f.split("-")[1] ? " $" : " \u20ac") : g = "https://vip.bitcoin.co.id/api/" + f + "/ticker";
  286. NewStopReq();
  287. ExMark = window.setInterval(function () {
  288. NewReq("BtcPrice", f, c, g, l, h);
  289. NewReq("LtcPrice", "ltc-btc", c, g, l, "");
  290. NewReq("DogePrice", "doge-btc", c, g, l, "");
  291. }, 1E3 * e);
  292. }
  293.  
  294. function cryptoRequest(e) {
  295. var c = new XMLHttpRequest,
  296. f, g = document.getElementById("CryptoMarket"),
  297. l = document.getElementById("CalcA").value;
  298. l.match(/bal/i) && (l = Number(document.getElementById("BalanceActionBoxTab").children[1].children[0].innerText));
  299. var h = 0;
  300. if ("btc-xpf" === e) {
  301. c.open("GET", "https://www.cryptonator.com/api/full/btc-eur", !0), c.send(), c.onreadystatechange = function () {
  302. if (4 === c.readyState && 200 === c.status) {
  303. f = JSON.parse(c.responseText);
  304. g.innerHTML = "<span>0 |Cryptonator |" + Number((119.332 * f.ticker.price).toFixed(0)).toLocaleString() + " |" + Number((f.ticker.price * l * 119.332).toFixed(0)).toLocaleString() + " F CFP</span><br>";
  305. for (i = 0; i < f.ticker.markets.length; i++) {
  306. g.innerHTML += i + 1 + " |" + f.ticker.markets[i].market + " |" + Number((119.332 * f.ticker.markets[i].price).toFixed(0)).toLocaleString() + " |" + Number((f.ticker.markets[i].price * l * 119.332).toFixed(0)).toLocaleString() + " F CFP<br>", h += Number(f.ticker.markets[i].price);
  307. }
  308. h = (Number(h) / Number(f.ticker.markets.length) * 119.332).toFixed(0);
  309. g.innerHTML = '<span style="color: green; margin-left: 2px;">Average: ' + Number(h).toLocaleString() + " |" + Number((h * l).toFixed(0)).toLocaleString() + " F CFP</span><br>" + g.innerHTML;
  310. }
  311. };
  312. } else {
  313. if ("btc-idr" === e) {
  314. c.open("GET", "https://vip.bitcoin.co.id/api/btc_idr/ticker", !0), c.send(), c.onreadystatechange = function () {
  315. 4 === c.readyState && 200 === c.status && (f = JSON.parse(c.responseText), g.innerHTML = "<span>vip.bitcoin.co.id |" + Number(f.ticker.buy).toLocaleString("id-ID", {
  316. style: "currency",
  317. currency: "IDR"
  318. }) + " |" + Number(f.ticker.buy * l).toLocaleString("id-ID", {
  319. style: "currency",
  320. currency: "IDR"
  321. }) + "</span><br>");
  322. };
  323. } else {
  324. if (e.match(/eur/i) || e.match(/usd/i)) {
  325. var m = e.match(/eur/i) ? ["fr-FR", "EUR"] : ["us-US", "USD"];
  326. e.match(/doge/i) && (l = "1000", document.getElementById("CalcA").value = "1000");
  327. c.open("GET", "https://www.cryptonator.com/api/full/" + e, !0);
  328. c.send();
  329. c.onreadystatechange = function () {
  330. if (4 === c.readyState && 200 === c.status) {
  331. f = JSON.parse(c.responseText);
  332. g.innerHTML = "<span>0 |Cryptonator |" + Number(f.ticker.price).toLocaleString(m[0], {
  333. style: "currency",
  334. currency: m[1]
  335. }) + " |" + Number(f.ticker.price * l).toLocaleString(m[0], {
  336. style: "currency",
  337. currency: m[1]
  338. }) + "</span><br>";
  339. for (i = 0; i < f.ticker.markets.length; i++) {
  340. g.innerHTML += i + 1 + " |" + f.ticker.markets[i].market + " |" + Number(f.ticker.markets[i].price).toLocaleString(m[0], {
  341. style: "currency",
  342. currency: m[1]
  343. }) + " |" + Number(f.ticker.markets[i].price * l).toLocaleString(m[0], {
  344. style: "currency",
  345. currency: m[1]
  346. }) + "<br>", h += Number(f.ticker.markets[i].price);
  347. }
  348. h = (Number(h) / Number(f.ticker.markets.length)).toFixed(8);
  349. g.innerHTML = '<span style="color: green; margin-left: 2px;">Average: ' + Number(h).toLocaleString(m[0], {
  350. style: "currency",
  351. currency: m[1]
  352. }) + " |" + Number(h * l).toLocaleString(m[0], {
  353. style: "currency",
  354. currency: m[1]
  355. }) + "</span><br>" + g.innerHTML;
  356. }
  357. };
  358. } else {
  359. c.open("GET", "https://www.cryptonator.com/api/full/" + e, !0), c.send(), c.onreadystatechange = function () {
  360. if (4 === c.readyState && 200 === c.status) {
  361. f = JSON.parse(c.responseText);
  362. g.innerHTML = "<span>0 |Cryptonator |" + Number(f.ticker.price).toFixed(8).toLocaleString() + " |" + (f.ticker.price * l).toFixed(8).toLocaleString() + "</span><br>";
  363. for (i = 0; i < f.ticker.markets.length; i++) {
  364. g.innerHTML += i + 1 + " |" + f.ticker.markets[i].market + " |" + Number(f.ticker.markets[i].price).toFixed(8).toLocaleString() + " |" + (f.ticker.markets[i].price * l).toFixed(8).toLocaleString() + "<br>", h += Number(f.ticker.markets[i].price);
  365. }
  366. h = (Number(h) / Number(f.ticker.markets.length)).toFixed(8);
  367. g.innerHTML = '<span style="color: green; margin-left: 2px;">Average: ' + Number(h).toLocaleString() + " |" + (h * l).toFixed(8).toLocaleString() + "</span><br>" + g.innerHTML;
  368. }
  369. };
  370. }
  371. }
  372. }
  373. }
  374.  
  375. function favMarket(e, id, txtS, txtE) {
  376. var c = new XMLHttpRequest;
  377. var el = document.getElementById(id);
  378. var txt;
  379. var x = 1,
  380. d = 8;
  381. if (e !== 'IDR') {
  382. c.open("GET", "https://www.cryptonator.com/api/ticker/" + e, !0), c.send(), c.onreadystatechange = function () {
  383. if (4 === c.readyState && 200 === c.status) {
  384. f = JSON.parse(c.responseText);
  385. if (elO5.value == 'XPF,Fcp' && e == 'btc-eur') {
  386. x = 119.332;
  387. d = 0;
  388. txtE = ' Fcp'
  389. } else if (e.search(/usd|eur/i) > -1) {
  390. d = 2;
  391. } else {
  392. x = 1;
  393. d = 8;
  394. }
  395. el.innerHTML = txtS + (Number(f.ticker.price) * x).toFixed(d) + txtE;
  396. }
  397. };
  398. } else {
  399. c.open("GET", "https://vip.bitcoin.co.id/api/btc_idr/ticker", true);
  400. c.send();
  401. c.onreadystatechange = function () {
  402. if (c.readyState === 4 && c.status === 200) {
  403. f = JSON.parse(c.responseText);
  404. el.innerHTML = "1 BTC: " + Number(f.ticker.buy).toLocaleString('id-ID', {
  405. style: 'currency',
  406. currency: 'IDR'
  407. });
  408. }
  409. };
  410. }
  411. }
  412.  
  413. function stopRequest() {
  414. clearInterval(priceUp);
  415. }
  416.  
  417. function startRequest(e) {
  418. e.match(/empty/i) ? (document.getElementById("CryptoMarket").innerHTML = "", stopRequest()) : (stopRequest(), priceUp = window.setInterval(function () {
  419. cryptoRequest(e);
  420. }, 3E4), cryptoRequest(e));
  421. }
  422.  
  423. function calcAmount(e) {
  424. e = document.getElementById("MarketPrice").value;
  425. "Empty" !== e && cryptoRequest(e);
  426. }
  427.  
  428. function InjectorType(e, c) {
  429. "BetSize" === c ? (document.getElementById("BetSizeVar").value = e, document.getElementById("XVar").value = 1) : "Multi" === c ? document.getElementById("BetXVar").value = e : "MaxBet" === c && console.log("Error MaxBet Stop Injection\nOnly Available For Automatic");
  430. }
  431.  
  432. function Generate() {
  433. BetCalc((1E8 * document.getElementById("BetSizeInput").value).toFixed(8), document.getElementById("GenIncrease").value, document.getElementById("GenStreak").value, document.getElementById("GenStop").value, document.getElementById("InjectorChoice").value);
  434. }
  435.  
  436. function BetCalc(e, c, f, g, l) {
  437. var h = Number(e),
  438. m = 0,
  439. n = 0,
  440. p = "",
  441. r = 0,
  442. q = document.getElementById("BetChanceInput").value,
  443. q = 99.9 / q - 1;
  444. document.getElementById("GenResults").innerHTML = "";
  445. if (document.getElementById("BetSizeInput").value.match(/fib/i)) {
  446. for (a = 0, b = 1, k = 0; k < f; a = b, b = x, k++) {
  447. x = a + b, n += x, p += x + ",", GenResults(k + 1, x, n, 0);
  448. }
  449. } else {
  450. for (e = 1; e <= f; e++) {
  451. if (m++, r = (Math.floor(q * h - n) / xC).toFixed(8), n += h, p += Math.round(h) + ",", GenResults(m, (Math.round(h) / xC).toFixed(8), (n / xC).toFixed(8), r), h = Math.floor(h * (c / 100 + 1)), 0 < g && h > g) {
  452. return InjectorType(p.slice(0, p.length - 1), l), "Last Streak Reached";
  453. }
  454. }
  455. }
  456. InjectorType(p.slice(0, p.length - 1), l);
  457. }
  458.  
  459. function GenResults(e, c, f, g) {
  460. var l = document.getElementById("GenResults");
  461. e = '<div class="RLine style="position: relative">\n<span style="position: relative; margin-top: 2px; color: white; font-size: 100%; text-align: center; display: inline-block; border-right-style: solid; border-right-color: slategray; width: 7%;">' + e + '</span>\n<span style="position: relative; margin-top: 2px; color: white; font-size: 100%; text-align: center; display: inline-block; border-right-style: solid; border-right-color: slategray; width: 25%;">' + c + '</span>\n<span style="position: relative; margin-top: 2px; color: white; font-size: 100%; text-align: center; display: inline-block; border-right-style: solid; border-right-color: slategray; width: 33%;">' +
  462. f + '</span>\n<span id="GResultsHead2" style="position: relative; margin-top: 2px; color: white; font-size: 100%; text-align: center; display: inline-block; border-right-style: solid; border-right-color: slategray; width: 26%; border-right-style: hidden;">' + g + "</span>\n</div>";
  463. 0 === document.getElementById("GenResults").children.length ? l.innerHTML = e : l.innerHTML = e + "\n" + document.getElementById("GenResults").innerHTML;
  464. }
  465.  
  466. function betVal(b, w) {
  467. elBs.value = b;
  468. elWin.value = w;
  469. }
  470.  
  471. function BtnMulti(x) {
  472. elBs.value *= x;
  473. }
  474.  
  475. var keyMap = {
  476. "48": 0,
  477. "49": 1,
  478. "50": 2,
  479. "51": 3,
  480. "52": 4,
  481. "53": 5,
  482. "96": 0,
  483. "97": 1,
  484. "98": 2,
  485. "99": 3,
  486. "100": 4,
  487. "101": 5,
  488. }
  489.  
  490. function handleKeyDown(event) {
  491. var char = event.which || event.keyCode;
  492. if (document.getElementsByClassName('ContentTab ActiveTab')[0].innerHTML == "My Bets") {
  493. console.log('charactère: ' + char);
  494. ClickId('Button' + keyMap[char]);
  495. }
  496. }
  497.  
  498. document.addEventListener('keydown', handleKeyDown, false);
  499.  
  500. function CreateChatButton(e, c, f, g, l) {
  501. var h = document.createElement("input");
  502. h.type = e;
  503. h.id = c;
  504. h.className = f;
  505. h.value = g;
  506. l.appendChild(h);
  507. }
  508.  
  509. function CreateNewInput(e, c, f) {
  510. var g = document.createElement("input");
  511. g.type = "text";
  512. g.id = e;
  513. g.maxlength = "20";
  514. g.className = "StandardTextBox";
  515. g.value = c;
  516. f.appendChild(g);
  517. }
  518.  
  519. function CreateObject(e, c, f, g) {
  520. e = document.createElement(e);
  521. e.id = c;
  522. e.innerText = f;
  523. g.appendChild(e);
  524. }
  525.  
  526. function CreateObject2(e, c, f, g, l) {
  527. e = document.createElement(e);
  528. e.id = c;
  529. e.innerText = f;
  530. g.insertBefore(e, l);
  531. }
  532.  
  533. function CreateObjectBefore(e, c, f, g, l, h) {
  534. e = document.createElement(e);
  535. e.setAttribute("class", c);
  536. e.id = f;
  537. e.innerText = g;
  538. l.insertBefore(e, h);
  539. }
  540.  
  541. function setB() {
  542. CreateObject("div", "DivInChat", "", el1.children[0]);
  543. CreateObject("span", "RainTimer", "No Rain Data!", document.getElementById("DivInChat"));
  544. CreateObject("select", "ActionSelect", "", el1.children[1]);
  545. CreateChatButton("button", "BalanceButton", "TextButton", "Balance", el2);
  546. //CreateChatButton("button", "AddyButton", "TextButton", "Addy", el2);
  547. CreateObject("select", "ToolsSelect", "", el2);
  548. document.getElementById("DivInChat").setAttribute("style", "position: absolute; left: 1px; top: 1px; background-color: rgba(255,255,255,0.8); border-style: solid; border-width: 1px; display: block;");
  549. document.getElementById("RainTimer").setAttribute("style", "float: right; margin-right: 0px; text-align: center; font-size: 120%; color: black;");
  550. document.getElementById("RainTimer").setAttribute("onclick", "d = new Date - (document.getElementsByClassName('LastRain')[0].innerHTML.split(' ')[0] * 60000);");
  551. document.getElementById("ActionSelect").innerHTML = '<option value="Empty">-=||O_O||=-</option><option value="Clear">/clear</option><option value="Help">/help</option><option value="Rules">/rules</option><option value="Stats">Show Stats</option>';
  552. document.getElementById("ActionSelect").setAttribute("onchange", "SendCommand(this.value)");
  553. document.getElementById("ActionSelect").setAttribute("style", "margin-left: 5px; color: white; background-color: black;");
  554. document.getElementById("ToolsSelect").innerHTML = '<option value="Empty">Tools/Close</option><option value="Market">Market</option><option value="AutoClicker">Bot&Script</option><option value="Generator">Generator</option><option value="Button">Add Button</option>';
  555. document.getElementById("ToolsSelect").setAttribute("onchange", "showTools(this.value)");
  556. document.getElementById("ToolsSelect").setAttribute("style", "float: right; margin-right: 10px; color: white; background-color: black;");
  557. document.getElementById("BalanceButton").setAttribute("onclick", "ShowBalance();");
  558. document.getElementById("BalanceButton").setAttribute("style", "float: right; margin-right: 5px;");
  559. //document.getElementById("AddyButton").setAttribute("onclick", "ShowAddy()");
  560. //document.getElementById("AddyButton").setAttribute("style", "float: right; margin-right: 10px;");
  561. //CreateObject("div", "SantaBtn", "", document.getElementById('ActionBoxContainer').children[0].children[1]);
  562. CreateObject("div", "SantaBtn", "", document.getElementById('ActionBoxContainer').children[0]);
  563. var elS = document.getElementById('SantaBtn');
  564. elS.setAttribute('style', 'position: relative; display: inline-block; zoom: 80%; margin-left: auto; width: 910px; height: 56px; margin-right: auto; background: #333; border: 3px solid #1f1f1f; border-top: 0; border-radius: 10px 10px 10px 10px; visibility: visible');
  565. if (!!localStorage.SD) {
  566. elS.innerHTML = localStorage.SD;
  567. }
  568. CreateNewInput("HideShowBtn", "", document.getElementById('ActionBoxContainer').children[0]);
  569. elS = document.getElementById("HideShowBtn");
  570. elS.setAttribute("type", "image");
  571. elS.setAttribute("src", "https://docs.google.com/uc?export=download&id=0BzwzmqEWk5a-N05vYnNXTmgtbW8");
  572. elS.setAttribute("onclick", "showHideBtn()");
  573. elS.setAttribute("style", "position: relative; display: inline-block; color: rgba(0, 0, 0, 0); border: none; height: 15px; transform: rotate(180deg); background: rgba(0, 0, 0, 0);");
  574. CreateObject("div", "SantaFavMkt", "", document.getElementById('ActionBoxContainer').children[0]);
  575. elS = document.getElementById('SantaFavMkt');
  576. elS.setAttribute('style', 'display: inline-block; width: 100%; height: 21px; text-align: center; background: #333; border: 3px solid #1f1f1f; border-top: 0; border-radius: 10px 10px 0px 0px');
  577. elS.innerHTML = '<span class="FavMark" id="BtcPrice">Btc Price</span> ! ! <span class="FavMark" id="DogePrice">Doge Price</span> ! ! <span class="FavMark" id="LtcPrice">Ltc Price</span> ! ! <span class="FavMark" id="ClamPrice">Clam Price</span>';
  578. }
  579.  
  580. function showHideBtn() {
  581. var elS = document.getElementById('SantaBtn');
  582. var elA = document.getElementById("HideShowBtn");
  583. var val = elA.style.transform;
  584. if (val == "rotate(180deg)") {
  585. elS.style.visibility = "hidden";
  586. elS.style.height = "0px";
  587. elA.style.transform = "";
  588. } else {
  589. elS.style.visibility = "visible";
  590. elS.style.height = "56px";
  591. elA.style.transform = "rotate(180deg)";
  592. }
  593. }
  594.  
  595. function setO() {
  596. CreateObjectBefore("div", "", "oPanel", document.getElementById("AccountTab"), document.getElementById("AccountTab").children[7]);
  597. document.getElementById("ChatTabChatContainer").setAttribute("style", "display: block");
  598. document.getElementById("oPanel").setAttribute("style", "position: relative; margin-top: 20px; width: 400px; height: 530px; top: 0px; right: 0px; background-color: rgba(0,0,0,0.1); border-style: solid; border-width: 1px; display: block");
  599. var e;
  600. e = '<p style="width: 97.7%; top: -20px; text-align: center; font-size: 150%; margin: 5px; color: black; background-color: rgb(255,255,255); border-bottom-style: solid; display: block;">Script Settings</p><p style="width: 96%; margin-top: 2%; margin-left: 2%; text-align: center; font-size: 120%; color: black; background-color: rgba(255,255,255,.3); border-bottom-style: solid; display: block">Sound Settings</p><p style="width: 60px; left: 5px; margin-top: 10px; color: white; text-align: right; display: inline-block">url:</p>';
  601. e += '<input id="SoundUrl" type="url" value="https://docs.google.com/uc?export=download&id=0BzwzmqEWk5a-elBSQ0ZGUWt2MWM" style="width: 310px; margin-left: 10px; display: inline-block;">';
  602. e += "<br>";
  603. e += '<p style="width: 60px; left: 5px; margin-top: 10px; color: white; text-align: right; display: inline-block;">Volume: </p>';
  604. e += '<input id="SoundVolume" type="number" value="30" min="0" max="100" step="5" style="width: 50px; margin-left: 10px; display: inline-block;">';
  605. e += '<button type="TextButton" onclick="testSound()" style="margin-left: 170px;">Sound Test</button>';
  606. e += "<br>";
  607. e += '<p style="width: 96%; margin-top: 2%; margin-left: 2%; text-align: center; font-size: 120%; color: black; background-color: rgba(255,255,255,.3); border-bottom-style: solid; display: block;">Rain Notification</p>';
  608. e += '<p style="width: 60px; left: 5px; margin-top: 10px; color: white; text-align: right; display: inline-block;">Enable:</p>';
  609. e += '<input id="RainNotif" type="checkbox" style="margin-left: 10px; display: inline-block;">';
  610. e += '<input id="NotifVal" type="text" value="====> Thanks for the Rain, Jake <====" style="width: 285px; margin-left: 10px; display: inline-block;">';
  611. e += "<br>";
  612. e += '<p style="width: 96%; margin-top: 2%; margin-left: 2%; text-align: center; font-size: 120%; color: black; background-color: rgba(255,255,255,.3); border-bottom-style: solid; display: block;">Favorite Market Choice</p>';
  613. e += '<p style="width: 60px; left: 5px; margin-top: 10px; color: white; text-align: right; display: inline-block;">Value:</p>';
  614. e += '<select id="FavMarketChoice" onchange="clearInterval(favMRun);upFavMarket();" style="margin-bottom: 5px; width: 30%; margin-left: 5%; color: white; background-color: black;">';
  615. e += '<option value="btc-usd,$">USD</option>';
  616. e += '<option value="btc-eur,€">EUR</option>';
  617. e += '<option value="IDR">IDR</option>';
  618. e += '<option value="XPF,Fcp">XPF</option>';
  619. e += "</select>";
  620. var c = document.getElementById("oPanel");
  621. c.innerHTML = e;
  622. CreateChatButton("button", "SaveSet", "TextButton", "SaveSet", c);
  623. CreateChatButton("button", "RainUpdate", "TextButton", "RainUpdate", c);
  624. c = document.getElementById("SaveSet");
  625. c.setAttribute("onclick", "SaveO();");
  626. c.setAttribute("style", "position: absolute; right: 20px; bottom: 20px;");
  627. c = document.getElementById("RainUpdate");
  628. c.setAttribute("onclick", "RainUp();");
  629. c.setAttribute("style", "position: absolute; left: 20px; bottom: 20px;");
  630. }
  631.  
  632. function setE() {
  633. CreateObject("div", "EPanel", "", el1.children[0]);
  634. var e = document.getElementById("EPanel");
  635. e.setAttribute("style", "position: relative; width: 560px; height: 300px; background-color: rgba(0,0,0,0.4); border-style: solid; border-width: 1px; display: none; overflow: hidden;");
  636. var c;
  637. c = '<p style="width: 96%; margin-top: 2%; margin-left: 2%; margin-bottom: 0px; text-align: center; font-size: 120%; color: black; background-color: rgba(255,255,255,.3); border-bottom-style: solid; display: block;">Market Exchange Infos</p>';
  638. c += '<select id="MarketPrice" onchange="startRequest(this.value)" style="margin-bottom: 5px; width: 30%; margin-left: 5%; color: white; background-color: black;"><option value="Empty">Market</option>';
  639. c += '<option value="ltc-btc">LTC/BTC</option>';
  640. c += '<option value="ltc-doge">LTC/DOGE</option>';
  641. c += '<option value="doge-btc">DOGE/BTC</option>';
  642. c += '<option value="doge-ltc">DOGE/LTC</option>';
  643. c += '<option value="btc-eur">BTC/EURO</option>';
  644. c += '<option value="btc-idr">BTC/IDR</option>';
  645. c += '<option value="btc-usd">BTC/USD</option>';
  646. c += '<option value="btc-xpf">BTC/XPF</option>';
  647. c += '<option value="btc-doge">BTC/DOGE</option>';
  648. c += '<option value="btc-ltc">BTC/LTC</option>';
  649. c += '<option value="ltc-usd">LTC/USD</option>';
  650. c += '<option value="ltc-eur">LTC/EURO</option>';
  651. c += '<option value="doge-usd">DOGE/USD</option>';
  652. c += '<option value="doge-eur">DOGE/EURO</option>';
  653. c += "</select>";
  654. c += '<span style="margin-left: 2%; margin-right: 5px;">Amount:</span>';
  655. c += '<input type="txt" id="CalcA" onchange="calcAmount(this.value)" value="bal" style="width: 35%; margin-right: 5%; float: right;"></input>';
  656. c += "<br>";
  657. c += '<div id="CryptoMarket" style="max-height: 239px; top: 5px; width: 96%; margin-left: 2%; font-size: 110%; border-style: solid; border-width: 1px; overflow: auto;"></div>';
  658. e.innerHTML = c;
  659. }
  660.  
  661. function setT() {
  662. CreateObject("div", "TPanel", "", el1.children[0]);
  663. var e = document.getElementById("TPanel");
  664. e.setAttribute("style", "position: relative; width: 450px; height: 300px; background-color: rgba(0,0,0,0.4); border-style: solid; border-width: 1px; display: none; overflow: hidden;");
  665. var c;
  666. c = '<p style="position: relative; margin: 2%; text-align: center; font-size: 120%; color: black; background-color: rgba(255,255,255,.8); border-bottom-style: solid;">New Bot link</p><br><span class="ScriptInf">New Standalone Bot has been launched on 1st december 2015</span>';
  667. c = '<span class="ScriptInf">Current files 12th dec 2015</span>';
  668. c += "<br><br>";
  669. c += '<a class="Link" href="https://drive.google.com/drive/folders/0BzwzmqEWk5a-SGJ0SDg5ekM1d3M" target="_blank">Bot files link</a>';
  670. c += "<br><br>"
  671. c += '<a class="Link" href="https://thc.pologtijaune.pf/~TahitiBot/nbotfiles/" target="_blank">Alternative files link</a>;<br><br>';
  672. c += '<span class="ScriptInf">Please read the help section on the bot before asking some help. Until help must be rewrite for auto.</span>';
  673. e.innerHTML = c;
  674. e = document.head.children[8];
  675. c = e.innerHTML;
  676. c += ".Link{position: absolute; width: 100%; text-align: center; font-size: 160%}";
  677. c += ".ScriptInf{position: relative;margin-left: 10px; margin-right: 10px; word-break: break-all; text-align: left; font-size: 120%}";
  678. e.innerHTML += c;
  679. }
  680.  
  681. function setG() {
  682. CreateObject("div", "GPanel", "", el1.children[0]);
  683. var e = document.getElementById("GPanel");
  684. e.setAttribute("style", "position: relative; width: 560px; height: 300px; background-color: rgba(0,0,0,0.4); border-style: solid; border-width: 1px; display: none; overflow: hidden;");
  685. var c;
  686. c = '<p style="position: relative; margin: 2%; text-align: center; font-size: 120%; color: black; background-color: rgba(255,255,255,.8); border-bottom-style: solid;">Bet Generator</p><span style="margin-left: 10px; width: 80px;">Increase %:</span><input type="text" id="GenIncrease" style="top: -18px; width:50px; margin-left: 10px;">';
  687. c += '<span style="margin-left: 65px; width: 80px;">Streak:</span>';
  688. c += '<input type="number" id="GenStreak" min="1" max="300" step="1" value="1" style="top: -18px; width:50px; margin-left: 10px;">';
  689. c += "<br><br>";
  690. c += '<span style="margin-left: 10px; width: 80px">Stop:</span>';
  691. c += '<input type="text" id="GenStop" style="top: -18px; width:120px; margin-left: 10px;">';
  692. c += '<span style="text-decoration: line-through; margin-left: 10px; width: 80px">RepeatBet:</span>';
  693. c += '<input type="text" id="GenRepeat" style="top: -18px; width:50px; margin-left: 10px;">';
  694. c += "<br><br>";
  695. c += '<span style="text-decoration: line-through; margin-left: 10px; width: 110px;">Injector: </span>';
  696. c += '<select id="InjectorChoice" style="margin-left: 10px; width: 150px; top: -18px; float: none;">';
  697. c += '<option value="None" class="List">-||-_-||-</option>';
  698. c += '<option value="BetSize" class="List">Custom Bet Size</option>';
  699. c += '<option value="MaxBet" class="List">MaxBet Stop</option>';
  700. c += '<option value="Multi" class="List">Multiplicator List</option>';
  701. c += "</select>";
  702. c += '<button id="SaveGen" style="position: relative; top: 0px; float: right; right: 12px;" onclick="Generate();">Generate</button>';
  703. c += "<br><br>";
  704. c += '<div id="GenHead" style="position: absolute; top: 160px; margin-left: 1%; width: 98%; height: 20px; border-color: lightgray; background-color: rgba(0, 0, 0, 0.5);">';
  705. c += '<span style="position: relative; margin-top: 1px; height: 20px; color: gold; font-size: 110%; text-align: center; display: inline-block; border-right-style: solid; border-right-color: slategray; overflow: hidden; width: 7%;">N</span>';
  706. c += '<span style="position: relative; margin-top: 1px; height: 20px; color: gold; font-size: 110%; text-align: center; display: inline-block; border-right-style: solid; border-right-color: slategray; overflow: hidden; width: 25%">BetSize</span>';
  707. c += '<span style="position: relative; margin-top: 1px; height: 20px; color: gold; font-size: 110%; text-align: center; display: inline-block; border-right-style: solid; border-right-color: slategray; overflow: hidden; width: 33%">Balance</span>';
  708. c += '<span style="position: relative; margin-top: 1px; height: 20px; color: gold; font-size: 110%; text-align: center; display: inline-block; border-right-style: solid; border-right-color: slategray; overflow: hidden; width: 26%; border-right-style: none;">Profit</span>';
  709. c += "</div>";
  710. c += '<div class="Results" id="GenResults" style="position: absolute; top: 181px; margin-left: 1%; width: 98%; height: 117px; border-color: lightgray; background-color: rgba(0, 0, 0, 0.5); overflow-y: auto;">';
  711. c += "</div>";
  712. e.innerHTML = c;
  713. }
  714.  
  715. function setBtn() {
  716. CreateObject("div", "BtnPanel", "", el1.children[0]);
  717. var e = document.getElementById("BtnPanel");
  718. e.setAttribute('style', 'display: none; border: solid; width: 300px');
  719. var c = '<p style="position: relative; margin: 2%; text-align: center; font-size: 120%; color: black; background-color: rgba(255,255,255,.8); border-bottom-style: solid;">Button Creator</p>';
  720. c += '<span style="margin-left: 10px; width: 80px">Button Class</span>';
  721. c += '<select id="BtnClass" onchange="showBtnClass(this.value)" style="margin-left: 10px; width: 140px; top: -18px; float: none; margin-left: 10px; margin-bottom: 7px; margin-top: 7px">';
  722. c += '<option value="BS" class="List">BetSize & Win%</option>';
  723. c += '<option value="M" class="List">Multiply BetSize</option>';
  724. c += '<option value="D" class="List">Divide BetSize</option>';
  725. c += '<option value="MD" class="List">Multiply & Divide</option>';
  726. c += '<option value="S" class="List">Separator</option>';
  727. c += "</select>";
  728. c += '<br>';
  729. c += '<span style="margin-left: 10px; width: 80px; margin-bottom: 10px; margin-top: 10px">Name:</span>';
  730. c += '<input type="text" id="BtnName" style="display: inline-block; top: -18px; width:120px; margin-left: 10px; margin-bottom: 7px; margin-top: 7px">';
  731. c += '<br>';
  732. c += '<span style="margin-left: 10px; width: 80px; margin-bottom: 10px; margin-top: 10px">Bet Size:</span>';
  733. c += '<input type="text" id="BtnBs" style="display: inline-block; top: -18px; width:120px; margin-left: 10px; margin-bottom: 7px; margin-top: 7px">';
  734. c += '<br>';
  735. c += '<span style="margin-left: 10px; width: 80px; margin-bottom: 10px; margin-top: 10px">Win%:</span>';
  736. c += '<input type="text" id="BtnWin" style="display: inline-block; top: -18px; width:120px; margin-left: 10px; margin-bottom: 7px; margin-top: 7px">';
  737. c += '<br>';
  738. c += '<span style="margin-left: 10px; width: 80px; margin-bottom: 10px; margin-top: 10px">Multiply by:</span>';
  739. c += '<input type="text" id="BtnMulti" style="display: none; top: -18px; width:120px; margin-left: 10px; margin-bottom: 7px; margin-top: 7px">';
  740. c += '<br>';
  741. c += '<span style="margin-left: 10px; width: 80px; margin-bottom: 10px; margin-top: 10px">Divide by:</span>';
  742. c += '<input type="text" id="BtnDivide" style="display: none; top: -18px; width:120px; margin-left: 10px; margin-bottom: 7px; margin-top: 7px">';
  743. c += '<br>';
  744. c += '<span style="margin-left: 10px; width: 80px; margin-bottom: 10px; margin-top: 10px">Button Align:</span>';
  745. c += '<select id="BtnAlign" style="margin-left: 10px; width: 100px; top: -18px; float: none; margin-left: 10px; margin-bottom: 7px; margin-top: 7px">';
  746. c += '<option value="right" class="List">Right</option>';
  747. c += '<option value="center" class="List">Center</option>';
  748. c += '<option value="Left" class="List">Left</option>';
  749. c += "</select>";
  750. c += '<br>';
  751. c += '<button id="BtnCreator" type="TextButton" onclick="btnAdd()" style="margin-left: 10px;">Add</button>';
  752. c += '<button type="TextButton" onclick="btnClean()" style="margin-left: 10px;">Clean</button>';
  753. c += '<button type="TextButton" onclick="btnSave()" style="margin-left: 10px; margin-bottom: 7px; margin-top: 7px;">Save</button>';
  754. c += '<button type="TextButton" onclick="btnLoad()" style="margin-left: 10px; margin-bottom: 7px; margin-top: 7px;">Load</button>';
  755. c += '<select id="BtnSlot" onchange="" style="margin-left: 10px; width: 140px; top: -18px; float: none; margin-left: 10px; margin-bottom: 7px; margin-top: 7px">';
  756. c += '<option value="SD" class="List">Default</option>';
  757. c += '<option value="S1" class="List">Slot1</option>';
  758. c += '<option value="S2" class="List">Slot2</option>';
  759. c += '<option value="S3" class="List">Slot3</option>';
  760. c += '<option value="S4" class="List">Slot4</option>';
  761. c += '<option value="S5" class="List">Slot5</option>';
  762. c += '<option value="S6" class="List">Slot6</option>';
  763. c += "</select>";
  764. e.innerHTML = c;
  765. }
  766.  
  767. function showBtnClass(val) {
  768. var elB = document.getElementById('BtnBs');
  769. var elW = document.getElementById('BtnWin');
  770. var elM = document.getElementById('BtnMulti');
  771. var elD = document.getElementById('BtnDivide');
  772. var elC = document.getElementById('BtnCreator');
  773. var t1 = "none";
  774. var t2 = "inline-block"
  775. elB.style.display = t1;
  776. elW.style.display = t1;
  777. elM.style.display = t1;
  778. elD.style.display = t1;
  779. if (val == "BS") {
  780. elB.style.display = t2;
  781. elW.style.display = t2;
  782. elC.setAttribute("onclick", "btnAdd()");
  783. }
  784. if (val == "M") {
  785. elM.style.display = t2;
  786. elC.setAttribute("onclick", "btnMulti()");
  787. }
  788. if (val == "D") {
  789. elD.style.display = t2;
  790. elC.setAttribute("onclick", "btnDivide()");
  791. }
  792. if (val == "MD") {
  793. elC.setAttribute("onclick", "btnMD();");
  794. }
  795. if (val == "S") {
  796. elC.setAttribute("onclick", "btnSep();");
  797. }
  798. }
  799.  
  800. function btnMulti() {
  801. var elBtn = document.getElementById('SantaBtn');
  802. var n = document.getElementById('BtnName').value;
  803. var a = document.getElementById('BtnAlign').value;
  804. var x = document.getElementById('BtnMulti').value;
  805. var c = '<div class="BetControlButton" onclick="elBs.value = (Number(elBs.value) * ' + x + ').toFixed(8);" + style="float: ' + a + '">';
  806. c += '<span class="BetControlTitle">' + n + '</span>';
  807. c += '<span class="Keyboard">'
  808. '</span>';
  809. c += '</div>';
  810. elBtn.innerHTML += c;
  811. }
  812.  
  813. function btnDivide() {
  814. var elBtn = document.getElementById('SantaBtn');
  815. var n = document.getElementById('BtnName').value;
  816. var a = document.getElementById('BtnAlign').value;
  817. var x = document.getElementById('BtnDivide').value;
  818. var c = '<div class="BetControlButton" onclick="elBs.value = (Number(elBs.value) / ' + x + ').toFixed(8);" + style="float: ' + a + '">';
  819. c += '<span class="BetControlTitle">' + n + '</span>';
  820. c += '<span class="Keyboard">'
  821. '</span>';
  822. c += '</div>';
  823. elBtn.innerHTML += c;
  824. }
  825.  
  826. function btnAdd() {
  827. var elBtn = document.getElementById('SantaBtn');
  828. var n = document.getElementById('BtnName').value;
  829. var w = document.getElementById('BtnWin').value;
  830. var b = document.getElementById('BtnBs').value;
  831. var a = document.getElementById('BtnAlign').value;
  832. var c = '<div class="BetControlButton" data-key="' + btnCount + '" id="Button' + btnCount + '" onclick="betVal(' + b + ', ' + w + ')" + style="float: ' + a + '">';
  833. c += '<span class="BetControlTitle">' + n + '</span>';
  834. c += '<span class="Keyboard">' + btnCount + '</span>';
  835. c += '</div>';
  836. elBtn.innerHTML += c;
  837. btnCount++;
  838. }
  839.  
  840. function btnMD() {
  841. var elBtn = document.getElementById('SantaBtn');
  842. var n = document.getElementById('BtnName').value;
  843. var a = document.getElementById('BtnAlign').value;
  844. var c = '<div class="BetControlButton" onclick="elBs.value = (Number(elBs.value) / document.getElementById(&apos;ButtonI' + btnCount + '&apos;).value).toFixed(8);" + style="float: ' + a + '">';
  845. c += '<span class="BetControlTitle">/</span>';
  846. c += '<span class="Keyboard">/</span>';
  847. c += '</div>';
  848. c += '<input type="text" id="ButtonI' + btnCount + '" maxlength="3" class="StandardTextBox" value="1" style="width: 40px; float: ' + a + '; margin-top: 15px;">';
  849. c += '<div class="BetControlButton" onclick="elBs.value = (Number(elBs.value) * document.getElementById(&apos;ButtonI' + btnCount + '&apos;).value).toFixed(8);" style="float: ' + a + '">';
  850. c += '<span class="BetControlTitle">X</span>';
  851. c += '<span class="Keyboard">*</span>';
  852. c += '</div>';
  853. elBtn.innerHTML += c;
  854. btnCount++;
  855. }
  856.  
  857. function btnSep() {
  858. var elBtn = document.getElementById('SantaBtn');
  859. var c = '<div style="float: right;position: relative;width: 3px;" class="BetControlButton"><span class="Keyboard"></span><div></div></div>';
  860. elBtn.innerHTML += c;
  861. }
  862.  
  863. function btnClean() {
  864. document.getElementById('SantaBtn').innerHTML = '';
  865. //localStorage.removeItem('BTN');
  866. }
  867.  
  868. function btnSave() {
  869. var tm = localStorage.BTN;
  870. if (!!tm) {
  871. localStorage.setItem("SD", tm);
  872. localStorage.removeItem("BTN");
  873. }
  874. var slotName = document.getElementById("BtnSlot").value;
  875. localStorage.setItem(slotName, document.getElementById('SantaBtn').innerHTML);
  876. }
  877.  
  878. function btnLoad() {
  879. var elBtn = document.getElementById('SantaBtn');
  880. var slotName = document.getElementById("BtnSlot").value;
  881. elBtn.innerHTML = localStorage.getItem(slotName);
  882. }
  883.  
  884. function upFavMarket() {
  885. var test = elO5.value;
  886. var m;
  887. if (test == 'IDR') {
  888. favMarket("IDR", "BtcPrice", "1 BTC: ", " IDR");
  889. } else {
  890. m = test.split(',');
  891. if (m[0] == 'XPF') {
  892. m = ['btc-eur', '€'];
  893. }
  894. favMarket(m[0], "BtcPrice", "1 BTC: ", " " + m[1]);
  895. }
  896. setTimeout(favMarket("doge-btc", "DogePrice", "1 Doge: ", " BTC"), 100);
  897. setTimeout(favMarket("ltc-btc", "LtcPrice", "1 Ltc: ", " BTC"), 200);
  898. setTimeout(favMarket("clam-btc", "ClamPrice", "1 Clam: ", " BTC"), 300);
  899. favMRun = setInterval(function () {
  900. if (test == 'IDR') {
  901. favMarket("IDR", "BtcPrice", "1 BTC: ", " IDR");
  902. } else {
  903. m = test.split(',');
  904. if (m[0] == 'XPF') {
  905. m = ['btc-eur', '€'];
  906. }
  907. favMarket(m[0], "BtcPrice", "1 BTC: ", " " + m[1]);
  908. }
  909. setTimeout(favMarket("doge-btc", "DogePrice", "1 Doge: ", " BTC"), 100);
  910. setTimeout(favMarket("ltc-btc", "LtcPrice", "1 Ltc: ", " BTC"), 200);
  911. setTimeout(favMarket("clam-btc", "ClamPrice", "1 Clam: ", " BTC"), 300);
  912. }, 60000);
  913. }
  914.  
  915. setB();
  916. setO();
  917. setE();
  918. setT();
  919. setG();
  920. setBtn();
  921. el1.children[0].setAttribute("style", "position: relative; width: 100%; display: inline-flex;");
  922. document.querySelector("body").style.zoom = "104.6%";
  923. el = document.head.children[8];
  924. temp = el.innerHTML;
  925. temp += ".FavMark{margin-right: 1%; margin-left: 1%}";
  926. el.innerHTML = temp;
  927. document.getElementById("ChatTab").style.padding = "5px";
  928. var Variables = 'var xC = 100000000;\nvar rainalert = luckyrain = {};\nvar count = 0;\nvar repeat = 1;\nvar d;\nvar Player;\nvar rainalert = new Audio();\nrainalert.src = "https://docs.google.com/uc?export=download&id=0BzwzmqEWk5a-cmsyMTJGM1RCbEU";\nrainalert.volume = 0.3;\nvar luckyrain = new Audio();\nluckyrain.src = "https://docs.google.com/uc?export=download&id=0BzwzmqEWk5a-TW9hQjFCUVRROTg";\nluckyrain.volume = 0.8;\nvar t;\nvar result;\nvar Search;\nvar speech = new Audio();\nvar NotifMessage;\nvar elO1 = document.getElementById("SoundUrl");\nvar elO2 = document.getElementById("SoundVolume");\nvar elO3 = document.getElementById("RainNotif");\nvar elO4 = document.getElementById("NotifVal");\nvar elO5 = document.getElementById("FavMarketChoice");\nvar click = "";\nvar priceUp;\nvar elBs = document.getElementById("BetSizeInput");\nvar elWin = document.getElementById("BetChanceInput");\nvar btnCount = document.getElementById("SantaBtn").children.length;\n\n';
  929. var End = '\nLoadData();\nwindow.setTimeout(onLoad, 5000);\nwindow.setInterval(function(){\nChronoTimer();\nBigRain();\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}, 1000);\nvar favMRun;\n\n';
  930. window.setTimeout(ActiveChat, 1E3);
  931. script = document.createElement("script");
  932. script.type = "text/javascript";
  933. script.appendChild(document.createTextNode(Variables + soundz + "\n" + testSound + "\n" + ActiveChat + "\n" + ChronoTimer + "\n" + ClickSend + "\n" + ClickId + "\n" + collectRef + "\n" + collectRefId + "\n" + collectRefFull + "\n" + RainWarning + "\n" + RainUpdate + "\n" + RainUp + "\n" + BigRain + "\n" + ShowClear + "\n" + ShowAddy + "\n" + ShowBalance + "\n" + ShowHelp + "\n" + ShowRules + "\n" + showHideBtn + "\n" + ShowStats + "\n" + showE + "\n" + showT + "\n" + showG + "\n" + showBtn + "\n" + showTools + "\n" + scrollDown + "\n" + SendCommand + "\n" + NewReq + "\n" + cryptoRequest + "\n" + favMarket + "\n" + stopRequest + "\n" + startRequest + "\n" + calcAmount + "\n" + InjectorType + "\n" + Generate + "\n" + BetCalc + "\n" + GenResults + "\n" + SaveO + "\n" + loadO + "\n" + setOption + "\n" + onLoad + "\n" + SaveData + "\n" + betVal + "\n" + LoadData + "\n" + btnAdd + "\n" + btnClean + "\n" + btnSave + "\n" + btnLoad + "\n" + showBtnClass + "\n" + btnMulti + "\n" + btnDivide + "\n" + btnMD + "\n" + btnSep + "\n" + upFavMarket + End));
  934. (document.body || document.head || document.documentElement).appendChild(script);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement