ScriptSanta999dice


SUBMITTED BY: v4masku

DATE: July 14, 2016, 4:40 p.m.

FORMAT: Text only

SIZE: 50.1 kB

HITS: 729

  1. // ==UserScript==
  2. // @name 999Tools
  3. // @namespace https://drive.google.com/open?id=0BzwzmqEWk5a-U1NsMF9uRFdhSklyXzRneFo0RGY0YWRiWnIw
  4. // @version 0.9.0
  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 and re-edit some script by Landak
  7. // @match https://www.999dice.com/
  8. // @match https://www.999doge.com/
  9. // @include https://www.999doge.com/
  10. // @include https://www.999dice.com/
  11. // @grant none
  12. // ==/UserScript==
  13. var repeat = 1,
  14. d, Player, t, result, Search, el1 = document.getElementById("ChatTab"),
  15. el2 = document.getElementById("ChatTabOtherRooms");
  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. function collectRefId() {
  31. var el = document.getElementById('EarnTabReferralsTable').children[1];
  32. var ar = [];
  33. var i, id;
  34. for (i = 0; i < el.children.length; i++) {
  35. var el1 = el.children[i];
  36. id = el1.children[0].innerHTML;
  37. if (id !== "") {
  38. ar.push(id);
  39. }
  40. }
  41. return ar;
  42. }
  43. function collectRefFull() {
  44. var el = document.getElementById('EarnTabReferralsTable').children[1];
  45. var ar = [];
  46. var arT = [];
  47. var arId = [];
  48. var i, id;
  49. for (i = 0; i < el.children.length; i++) {
  50. var el1 = el.children[i];
  51. id = el1.children[0].innerHTML;
  52. if (id !== "") {
  53. arId.push(id);
  54. arT = [id, el1.children[1].innerHTML];
  55. ar.push([arT[0], arT[1], el1.children[2].innerHTML, el1.children[3].innerHTML]);
  56. } else {
  57. ar.push([arT[0], arT[1], el1.children[2].innerHTML, el1.children[3].innerHTML]);
  58. }
  59. }
  60. return ar;
  61. }
  62. function soundz() {
  63. rainalert.play();
  64. }
  65. function testSound() {
  66. rainalert.volume = Number((document.getElementById("SoundVolume").value / 100).toFixed(2));
  67. soundz();
  68. }
  69. function ActiveChat() {
  70. ClickId("MinBetButton");
  71. document.getElementById("AutoBetSizeInput").value = "0.00000001";
  72. document.getElementById("ChatTabChatContainer").style.width = "98%";
  73. var e = window.document.createEvent("MouseEvents");
  74. e.initMouseEvent("click", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null);
  75. 5E3 < document.getElementsByClassName("BetsTable")[0].children[1].innerHTML.length && (document.getElementById("ContentTabsContainer").children[2].dispatchEvent(e), clearInterval(ChatVar));
  76. }
  77. function ChronoTimer() {
  78. var e = new Date - d,
  79. e = Math.floor(e / 1E3),
  80. c = e % 60,
  81. e = Math.floor((e - c) / 60),
  82. f = e % 60,
  83. e = Math.floor((e - f) / 60),
  84. e = e % 24;
  85. if (e < 10){
  86. e = "0" + e;
  87. }
  88. if (f < 10){
  89. f = "0" + f;
  90. }
  91. if (c < 10){
  92. c = "0" + c;
  93. }
  94. d ? document.getElementById("RainTimer").innerText = "" + e + ":" + f + ":" + c + "" : document.getElementById("RainTimer").innerText = "No Data Yet!";
  95. }
  96. function ClickSend() {
  97. var e = window.document.createEvent("MouseEvents");
  98. e.initMouseEvent("click", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null);
  99. document.getElementById("ChatTabSendButton").dispatchEvent(e);
  100. }
  101. function ClickId(e) {
  102. var c = window.document.createEvent("MouseEvents");
  103. c.initMouseEvent("click", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null);
  104. document.getElementById(e).dispatchEvent(c);
  105. }
  106. function RainWarning() {
  107. !0 === NotifEnable && (document.getElementById("ChatTabText").value = NotifMessage, ClickSend());
  108. }
  109. function RainUpdate() {
  110. document.getElementById("ChatTabText").value = "Last Rain Data: " + d.getTime();
  111. ClickSend();
  112. }
  113. function RainUp() {
  114. var e = document.getElementById("DateM").value;
  115. "" !== e && (d = new Date(Number(e)));
  116. }
  117. function BigRain() {
  118. if (8 < document.getElementById("ChatTab").children[2].children.length || -1 !== document.getElementById("ChatTab").children[2].innerHTML.search(/btc|ltc|dog/i)) {
  119. luckyrain.play(), console.log("The BIG LUCKY RAIN is here!!! Ho ho ho");
  120. }
  121. }
  122. function ShowBalance() {
  123. document.getElementById("ChatTabText").value = "/balance";
  124. ClickSend();
  125. }
  126. function ShowAddy() {
  127. document.getElementById("ChatTabText").value = "/deposit";
  128. ClickSend();
  129. }
  130. function ShowClear() {
  131. document.getElementById("ChatTabText").value = "/clear";
  132. ClickSend();
  133. }
  134. function ShowHelp() {
  135. document.getElementById("ChatTabText").value = "/help";
  136. ClickSend();
  137. }
  138. function ShowRules() {
  139. document.getElementById("ChatTabText").value = "/Rules";
  140. ClickSend();
  141. }
  142. function ShowRainTimer() {
  143. document.getElementById("ChatTabText").value = document.getElementById("RainTimer").innerText;
  144. ClickSend();
  145. }
  146. function ShowStats() {
  147. var e;
  148. e = 1 == document.getElementById("DisplayCurrencies").children[0].classList.length ? "Btc" : 1 == document.getElementById("DisplayCurrencies").children[1].classList.length ? "Doge" : "Ltc";
  149. document.getElementById("ChatTabText").value = e + " Stats: Bets " + document.getElementById("StatsUserBetCount").innerHTML + " | Wagered " + document.getElementById("StatsUserBetPayIn").innerHTML + " | Profit " + document.getElementById("StatsUserBetProfit").innerHTML;
  150. ClickSend();
  151. }
  152. function showE() {
  153. showTools('Empty');
  154. var e = document.getElementById("ChatTabChatContainer"),
  155. c = document.getElementById("EPanel");
  156. document.getElementById("TPanel").style.display = "none";
  157. document.getElementById("GPanel").style.display = "none";
  158. document.getElementById("BtnPanel").style.display = "none";
  159. "98%" === e.style.width && (e.style.width = "68%", c.style.display = "inline-block");
  160. }
  161. function showT() {
  162. showTools('Empty');
  163. var e = document.getElementById("ChatTabChatContainer");
  164. document.getElementById("EPanel").style.display = "none";
  165. document.getElementById("BtnPanel").style.display = "none";
  166. var c = document.getElementById("TPanel");
  167. document.getElementById("GPanel").style.display = "none";
  168. "98%" === e.style.width && (e.style.width = "68%", c.style.display = "inline-block");
  169. }
  170. function showG() {
  171. showTools('Empty');
  172. var e = document.getElementById("ChatTabChatContainer");
  173. document.getElementById("EPanel").style.display = "none";
  174. document.getElementById("TPanel").style.display = "none";
  175. document.getElementById("BtnPanel").style.display = "none";
  176. var c = document.getElementById("GPanel");
  177. "98%" === e.style.width && (e.style.width = "58%", c.style.display = "inline-block");
  178. }
  179. function showBtn() {
  180. showTools('Empty');
  181. var e = document.getElementById("ChatTabChatContainer");
  182. document.getElementById("EPanel").style.display = "none";
  183. document.getElementById("TPanel").style.display = "none";
  184. document.getElementById("GPanel").style.display = "none";
  185. var c = document.getElementById("BtnPanel");
  186. "98%" === e.style.width && (e.style.width = "68%", c.style.display = "inline-block");
  187. }
  188. function showTools(e) {
  189. "Market" === e && showE();
  190. "AutoClicker" === e && showT();
  191. "Generator" === e && showG();
  192. "Button" === e && showBtn();
  193. "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");
  194. scrollDown();
  195. }
  196. function SendCommand(e) {
  197. "Stats" === e && ShowStats();
  198. }
  199. function scrollDown() {
  200. var e = document.getElementById("ChatTabChatContainer");
  201. e.scrollTop = e.scrollHeight;
  202. }
  203. function SaveData() {
  204. localStorage.setItem("DataDice", d);
  205. }
  206. function LoadData() {
  207. var e = localStorage.getItem("DataDice");
  208. d = new Date(e);
  209. }
  210. function setOption() {
  211. rainalert.src = elO1.value;
  212. rainalert.volume = Number(elO2.value) / 100;
  213. NotifEnable = elO3.checked;
  214. NotifMessage = elO4.value;
  215. }
  216. function SaveO() {
  217. localStorage.setItem("SoundU", elO1.value);
  218. localStorage.setItem("SoundV", elO2.value);
  219. localStorage.setItem("NotifR", elO3.checked);
  220. localStorage.setItem("NotifM", elO4.value);
  221. localStorage.setItem("FavMarket", elO5.value);
  222. loadO();
  223. }
  224. function loadO() {
  225. elO1.value = localStorage.getItem("SoundU");
  226. elO2.value = localStorage.getItem("SoundV");
  227. "true" === localStorage.getItem("NotifR") ? elO3.checked = !0 : elO3.checked = !1;
  228. elO4.value = localStorage.getItem("NotifM");
  229. elO5.value = localStorage.getItem("FavMarket");
  230. setOption();
  231. upFavMarket();
  232. }
  233. function onLoad() {
  234. localStorage.SoundV ? loadO() : SaveO();
  235. }
  236. function NewReq(e, c, f, g, l, h, m) {
  237. var n = new XMLHttpRequest,
  238. p;
  239. document.getElementById("BalanceActionBoxTab");
  240. n.open("GET", g, !0);
  241. n.send();
  242. n.onreadystatechange = function () {
  243. 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);
  244. };
  245. }
  246. function NewStartReq(e) {
  247. var c = document.getElementById("BtcExchange").value,
  248. f = document.getElementById("BtcMarket").value,
  249. g, l = 1,
  250. h = "Idr";
  251. "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";
  252. NewStopReq();
  253. ExMark = window.setInterval(function () {
  254. NewReq("BtcPrice", f, c, g, l, h);
  255. NewReq("LtcPrice", "ltc-btc", c, g, l, "");
  256. NewReq("DogePrice", "doge-btc", c, g, l, "");
  257. }, 1E3 * e);
  258. }
  259. function cryptoRequest(e) {
  260. var c = new XMLHttpRequest,
  261. f, g = document.getElementById("CryptoMarket"),
  262. l = document.getElementById("CalcA").value;
  263. l.match(/bal/i) && (l = Number(document.getElementById("BalanceActionBoxTab").children[1].children[0].innerText));
  264. var h = 0;
  265. if ("btc-xpf" === e) {
  266. c.open("GET", "https://www.cryptonator.com/api/full/btc-eur", !0), c.send(), c.onreadystatechange = function () {
  267. if (4 === c.readyState && 200 === c.status) {
  268. f = JSON.parse(c.responseText);
  269. 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>";
  270. for (i = 0; i < f.ticker.markets.length; i++) {
  271. 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);
  272. }
  273. h = (Number(h) / Number(f.ticker.markets.length) * 119.332).toFixed(0);
  274. 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;
  275. }
  276. };
  277. } else {
  278. if ("btc-idr" === e) {
  279. c.open("GET", "https://vip.bitcoin.co.id/api/btc_idr/ticker", !0), c.send(), c.onreadystatechange = function () {
  280. 4 === c.readyState && 200 === c.status && (f = JSON.parse(c.responseText), g.innerHTML = "<span>Bitcoin.co.id |" + Number(f.ticker.buy).toLocaleString("id-ID", {
  281. style: "currency",
  282. currency: "IDR"
  283. }) + " |" + Number(f.ticker.buy * l).toLocaleString("id-ID", {
  284. style: "currency",
  285. currency: "IDR"
  286. }) + "</span><br>");
  287. };
  288. } else {
  289. if (e.match(/eur/i) || e.match(/usd/i)) {
  290. var m = e.match(/eur/i) ? ["fr-FR", "EUR"] : ["us-US", "USD"];
  291. e.match(/doge/i) && (l = "1000", document.getElementById("CalcA").value = "1000");
  292. c.open("GET", "https://www.cryptonator.com/api/full/" + e, !0);
  293. c.send();
  294. c.onreadystatechange = function () {
  295. if (4 === c.readyState && 200 === c.status) {
  296. f = JSON.parse(c.responseText);
  297. g.innerHTML = "<span>0 |Cryptonator |" + Number(f.ticker.price).toLocaleString(m[0], {
  298. style: "currency",
  299. currency: m[1]
  300. }) + " |" + Number(f.ticker.price * l).toLocaleString(m[0], {
  301. style: "currency",
  302. currency: m[1]
  303. }) + "</span><br>";
  304. for (i = 0; i < f.ticker.markets.length; i++) {
  305. g.innerHTML += i + 1 + " |" + f.ticker.markets[i].market + " |" + Number(f.ticker.markets[i].price).toLocaleString(m[0], {
  306. style: "currency",
  307. currency: m[1]
  308. }) + " |" + Number(f.ticker.markets[i].price * l).toLocaleString(m[0], {
  309. style: "currency",
  310. currency: m[1]
  311. }) + "<br>", h += Number(f.ticker.markets[i].price);
  312. }
  313. h = (Number(h) / Number(f.ticker.markets.length)).toFixed(8);
  314. g.innerHTML = '<span style="color: green; margin-left: 2px;">Average: ' + Number(h).toLocaleString(m[0], {
  315. style: "currency",
  316. currency: m[1]
  317. }) + " |" + Number(h * l).toLocaleString(m[0], {
  318. style: "currency",
  319. currency: m[1]
  320. }) + "</span><br>" + g.innerHTML;
  321. }
  322. };
  323. } else {
  324. c.open("GET", "https://www.cryptonator.com/api/full/" + e, !0), c.send(), c.onreadystatechange = function () {
  325. if (4 === c.readyState && 200 === c.status) {
  326. f = JSON.parse(c.responseText);
  327. g.innerHTML = "<span>0 |Cryptonator |" + Number(f.ticker.price).toFixed(8).toLocaleString() + " |" + (f.ticker.price * l).toFixed(8).toLocaleString() + "</span><br>";
  328. for (i = 0; i < f.ticker.markets.length; i++) {
  329. 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);
  330. }
  331. h = (Number(h) / Number(f.ticker.markets.length)).toFixed(8);
  332. g.innerHTML = '<span style="color: green; margin-left: 2px;">Average: ' + Number(h).toLocaleString() + " |" + (h * l).toFixed(8).toLocaleString() + "</span><br>" + g.innerHTML;
  333. }
  334. };
  335. }
  336. }
  337. }
  338. }
  339. function favMarket(e, id, txtS, txtE) {
  340. var c = new XMLHttpRequest;
  341. var el = document.getElementById(id);
  342. var txt;
  343. var x = 1,
  344. d = 8;
  345. if (e !== 'IDR') {
  346. c.open("GET", "https://www.cryptonator.com/api/ticker/" + e, !0), c.send(), c.onreadystatechange = function () {
  347. if (4 === c.readyState && 200 === c.status) {
  348. f = JSON.parse(c.responseText);
  349. if (elO5.value == 'XPF,Fcp' && e == 'btc-eur') {
  350. x = 119.332;
  351. d = 0;
  352. txtE = ' Fcp'
  353. } else if (e.search(/usd|eur/i) > -1) {
  354. d = 2;
  355. } else {
  356. x = 1;
  357. d = 8;
  358. }
  359. el.innerHTML = txtS + (Number(f.ticker.price) * x).toFixed(d) + txtE;
  360. }
  361. };
  362. } else {
  363. c.open("GET", "https://vip.bitcoin.co.id/api/btc_idr/ticker", true);
  364. c.send();
  365. c.onreadystatechange = function () {
  366. if (c.readyState === 4 && c.status === 200) {
  367. f = JSON.parse(c.responseText);
  368. el.innerHTML = "฿TC » " + Number(f.ticker.buy).toLocaleString('id-ID', {
  369. style: 'currency',
  370. currency: 'IDR'
  371. });
  372. }
  373. };
  374. }
  375. }
  376. function stopRequest() {
  377. clearInterval(priceUp);
  378. }
  379. function startRequest(e) {
  380. e.match(/empty/i) ? (document.getElementById("CryptoMarket").innerHTML = "", stopRequest()) : (stopRequest(), priceUp = window.setInterval(function () {
  381. cryptoRequest(e);
  382. }, 3E4), cryptoRequest(e));
  383. }
  384. function calcAmount(e) {
  385. e = document.getElementById("MarketPrice").value;
  386. "Empty" !== e && cryptoRequest(e);
  387. }
  388. function InjectorType(e, c) {
  389. "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");
  390. }
  391. function Generate() {
  392. BetCalc((1E8 * document.getElementById("BetSizeInput").value).toFixed(8), document.getElementById("GenIncrease").value, document.getElementById("GenStreak").value, document.getElementById("GenStop").value, document.getElementById("InjectorChoice").value);
  393. }
  394. function BetCalc(e, c, f, g, l) {
  395. var h = Number(e),
  396. m = 0,
  397. n = 0,
  398. p = "",
  399. r = 0,
  400. q = document.getElementById("BetChanceInput").value,
  401. q = 99.9 / q - 1;
  402. document.getElementById("GenResults").innerHTML = "";
  403. if (document.getElementById("BetSizeInput").value.match(/fib/i)) {
  404. for (a = 0, b = 1, k = 0; k < f; a = b, b = x, k++) {
  405. x = a + b, n += x, p += x + ",", GenResults(k + 1, x, n, 0);
  406. }
  407. } else {
  408. for (e = 1; e <= f; e++) {
  409. 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) {
  410. return InjectorType(p.slice(0, p.length - 1), l), "Last Streak Reached";
  411. }
  412. }
  413. }
  414. InjectorType(p.slice(0, p.length - 1), l);
  415. }
  416. function GenResults(e, c, f, g) {
  417. var l = document.getElementById("GenResults");
  418. 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%;">' +
  419. 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>";
  420. 0 === document.getElementById("GenResults").children.length ? l.innerHTML = e : l.innerHTML = e + "\n" + document.getElementById("GenResults").innerHTML;
  421. }
  422. function betVal(b, w) {
  423. elBs.value = b;
  424. elWin.value = w;
  425. }
  426. function BtnMulti(x) {
  427. elBs.value *= x;
  428. }
  429. function CreateChatButton(e, c, f, g, l) {
  430. var h = document.createElement("input");
  431. h.type = e;
  432. h.id = c;
  433. h.className = f;
  434. h.value = g;
  435. l.appendChild(h);
  436. }
  437. function CreateNewInput(e, c, f) {
  438. var g = document.createElement("input");
  439. g.type = "text";
  440. g.id = e;
  441. g.maxlength = "20";
  442. g.className = "StandardTextBox";
  443. g.value = c;
  444. f.appendChild(g);
  445. }
  446. function CreateObject(e, c, f, g) {
  447. e = document.createElement(e);
  448. e.id = c;
  449. e.innerText = f;
  450. g.appendChild(e);
  451. }
  452. function CreateObject2(e, c, f, g, l) {
  453. e = document.createElement(e);
  454. e.id = c;
  455. e.innerText = f;
  456. g.insertBefore(e, l);
  457. }
  458. function CreateObjectBefore(e, c, f, g, l, h) {
  459. e = document.createElement(e);
  460. e.setAttribute("class", c);
  461. e.id = f;
  462. e.innerText = g;
  463. l.insertBefore(e, h);
  464. }
  465. function setB() {
  466. //CreateObject("div", "DivInChat", "", el1.children[0]);
  467. //CreateObject("span", "RainTimer","No Rain Data!", document.getElementById("ChatTabText").el2);
  468. CreateObject("span", "RainTimer", "No Rain Data!", el2);
  469. //CreateObject("span", "RainTimer", "No Rain Data!", el2, document.getElementById("ChatTab"));
  470. //CreateObject("select", "ActionSelect", "", el1.children[1]);
  471. CreateChatButton("button", "BalanceButton", "TextButton", "Balance", el1.children[1]);
  472. //CreateChatButton("button", "BalanceButton", "TextButton", "Balance", el2);
  473. CreateChatButton("button", "StatsButton", "TextButton", "Stats", el1.children[1]);
  474. //CreateChatButton("button", "AddyButton", "TextButton", "Addy", el2);
  475. CreateObject("select", "ToolsSelect", "", el2);
  476. document.getElementById("RainTimer").setAttribute("style", "position: relative; zoom: 112%; float: left; font-weight: bold; text-decoration: underline; display: inline-block; margin-left: auto; color: #810541;")
  477. //document.getElementById("RainTimer").setAttribute("style", "position: absolute; left: 1px; top: 1px; background-color: rgba(255,255,255,0.8); border-style: solid; border-width: 1px; display: block;");
  478. //document.getElementById("RainTimer").setAttribute("style", "float: right; margin-right: 0px; font-weight: bold; text-align: center; font-size: 120%; color: black;");
  479. //document.getElementById("RainTimer").setAttribute("onclick", "ShowRainTimer();");
  480. document.getElementById("RainTimer").setAttribute("onclick", "d = new Date - (document.getElementsByClassName('LastRain')[0].innerHTML.split(' ')[0] * 60000);");
  481. //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>';
  482. //document.getElementById("ActionSelect").setAttribute("onchange", "SendCommand(this.value)");
  483. //document.getElementById("ActionSelect").setAttribute("style", "margin-left: 5px; color: white; background-color: black;");
  484. //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>';
  485. //document.getElementById("ToolsSelect").setAttribute("onchange", "showTools(this.value)");
  486. //document.getElementById("ToolsSelect").setAttribute("style", "float: right; margin-right: 10px; color: white; background-color: black;");
  487. document.getElementById("ToolsSelect").innerHTML = '<option value="Empty">Tools/Close</option><option value="Market">Market</option></option>';
  488. document.getElementById("ToolsSelect").setAttribute("onchange", "showTools(this.value)");
  489. document.getElementById("ToolsSelect").setAttribute("style", "float: center; margin-right: 2px; color: blue; background-color: black;");
  490. document.getElementById("BalanceButton").setAttribute("onclick", "ShowBalance();");
  491. document.getElementById("BalanceButton").setAttribute("style", "float: right; margin-right: auto; text-decoration: line-through; color: #6AFB92;");
  492. document.getElementById("StatsButton").setAttribute("onclick", "ShowStats()");
  493. document.getElementById("StatsButton").setAttribute("style", "float: right; margin-right: auto; color: yellow;");
  494. //document.getElementById("AddyButton").setAttribute("onclick", "ShowAddy()");
  495. //document.getElementById("AddyButton").setAttribute("style", "float: right; margin-right: 10px;");
  496. //CreateObject("div", "SantaBtn", "", document.getElementById('ActionBoxContainer').children[0].children[1]);
  497. CreateObject("div", "SantaBtn", "", document.getElementById('ActionBoxContainer').children[0]);
  498. var elS = document.getElementById('SantaBtn');
  499. elS.setAttribute('style', 'position: relative; zoom: 80%; margin-left: auto; width: 910px; margin-right: auto; background: #333; border: 3px solid #1f1f1f; border-top: 0; border-radius: 10px 10px 0px 0px');
  500. if (!!localStorage.BTN) {
  501. elS.innerHTML = localStorage.BTN;
  502. }
  503. CreateObject("div", "SantaFavMkt", "", document.getElementById('ActionBoxContainer').children[0]);
  504. elS = document.getElementById('SantaFavMkt');
  505. elS.setAttribute('style', 'display: block; height: 21px; text-align: center; background: #333; border: 3px solid #1f1f1f; border-top: 0; border-radius: 10px 10px 0px 0px');
  506. //elS.innerHTML = '<marquee behavior="scroll" direction="left"><a href="http://a.deviantart.net"><img src="http://a.deviantart.net/avatars/l/u/luffy-op.gif?1"alt="SM" style="border: 0px; " /></a><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></marquee>';
  507. elS.innerHTML = '<marquee behavior="scroll" direction="left" scrollamount="5" onmousedown="this.stop();" onmouseup="this.start();"><b><font face="Comic sans MS"><font color="#FF0000"><span class="FavMark" id="BtcPrice">Btc Price</span>❕❕</font> <font color="#FF00FF">🏃💨</font><font color="#FFFF00"><span class="FavMark" id="DogePrice">Doge Price</span></font> <font color="#FFA500">🏃💨</font><font color="#00FF00"><span class="FavMark" id="LtcPrice">Ltc Price</span></font> 🏃💨<font color="#2B65EC"><span class="FavMark" id="ClamPrice">Clam Price </span></font></font></b></marquee>';
  508. }
  509. function setO() {
  510. CreateObjectBefore("div", "", "oPanel", document.getElementById("AccountTab"), document.getElementById("AccountTab").children[7]);
  511. document.getElementById("ChatTabChatContainer").setAttribute("style", "display: block");
  512. 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");
  513. var e;
  514. 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>';
  515. e += '<input id="SoundUrl" type="url" value="http://cd.textfiles.com/10000soundssongs/WAV/ALARM.WAV" style="width: 310px; margin-left: 10px; display: inline-block;">';
  516. e += "<br>";
  517. e += '<p style="width: 60px; left: 5px; margin-top: 10px; color: white; text-align: right; display: inline-block;">Volume: </p>';
  518. e += '<input id="SoundVolume" type="number" value="30" min="0" max="100" step="5" style="width: 50px; margin-left: 10px; display: inline-block;">';
  519. e += '<button type="TextButton" onclick="testSound()" style="margin-left: 170px;">Sound Test</button>';
  520. e += "<br>";
  521. 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>';
  522. e += '<p style="width: 60px; left: 5px; margin-top: 10px; color: white; text-align: right; display: inline-block;">Enable:</p>';
  523. e += '<input id="RainNotif" type="checkbox" style="margin-left: 10px; display: inline-block;">';
  524. e += '<input id="NotifVal" type="text" value="Thanks Jake" style="width: 285px; margin-left: 10px; display: inline-block;">';
  525. e += "<br>";
  526. e += "<br>";
  527. 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 Date Update</p>';
  528. e += '<p style="width: 60px; left: 5px; margin-top: 10px; color: white; text-align: right; display: inline-block;">Value:</p>';
  529. e += '<input id="DateM" type="text" value="" style="width: 285px; margin-left: 32px; display: inline-block;">';
  530. e += "<br>";
  531. 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>';
  532. e += '<p style="width: 60px; left: 5px; margin-top: 10px; color: white; text-align: right; display: inline-block;">Value:</p>';
  533. e += '<select id="FavMarketChoice" onchange="clearInterval(favMRun);upFavMarket();" style="margin-bottom: 5px; width: 30%; margin-left: 5%; color: white; background-color: black;">';
  534. e += '<option value="btc-usd,$">USD</option>';
  535. e += '<option value="btc-eur,€">EUR</option>';
  536. e += '<option value="IDR">IDR</option>';
  537. e += '<option value="XPF,Fcp">XPF</option>';
  538. e += "</select>";
  539. var c = document.getElementById("oPanel");
  540. c.innerHTML = e;
  541. CreateChatButton("button", "SaveSet", "TextButton", "SaveSet", c);
  542. CreateChatButton("button", "RainUpdate", "TextButton", "RainUpdate", c);
  543. c = document.getElementById("SaveSet");
  544. c.setAttribute("onclick", "SaveO();");
  545. c.setAttribute("style", "position: absolute; right: 20px; bottom: 20px;");
  546. c = document.getElementById("RainUpdate");
  547. c.setAttribute("onclick", "RainUp();");
  548. c.setAttribute("style", "position: absolute; left: 20px; bottom: 20px;");
  549. }
  550. function setE() {
  551. CreateObject("div", "EPanel", "", el1.children[0]);
  552. var e = document.getElementById("EPanel");
  553. e.setAttribute("style", "position: relative; width: 560px; height: 300px; background-color: black; border-style: solid; border-width: 1px; display: none; overflow: hidden;");
  554. var c;
  555. c = '<p style="width: 96%; margin-top: 2%; margin-left: 2%; margin-bottom: 0px; text-align: center; font-size: 120%; color: red; background-color: rgba(255,255,255,.3); border-bottom-style: solid; display: block;">Market Exchange Infos</p>';
  556. c += '<select id="MarketPrice" onchange="startRequest(this.value)" style="margin-bottom: 5px; width: 30%; margin-left: 5%; color: green; background-color: black;"><option value="Empty">Market</option>';
  557. c += '<option value="btc-idr">BTC»IDR</option>';
  558. c += '<option value="btc-doge">BTC»DOGE</option>';
  559. c += '<option value="btc-ltc">BTC»LTC</option>';
  560. c += '<option value="btc-clam">BTC»CLAM</option>';
  561. c += '<option value="ltc-btc">LTC»BTC</option>';
  562. c += '<option value="ltc-doge">LTC»DOGE</option>';
  563. c += '<option value="ltc-clam">LTC»CLAM</option>';
  564. c += '<option value="doge-btc">DOGE»BTC</option>';
  565. c += '<option value="doge-ltc">DOGE»LTC</option>';
  566. c += '<option value="doge-clam">DOGE»CLAM</option>';
  567. c += '<option value="clam-btc">CLAM»BTC</option>';
  568. c += '<option value="clam-ltc">CLAM»LTC</option>';
  569. c += '<option value="clam-doge">CLAM»DOGE</option>';
  570. c += '<option value="btc-xmr">BTC»XMR</option>';
  571. c += '<option value="ltc-xmr">LTC»XMR</option>';
  572. c += '<option value="doge-xmr">DOGE»XMR</option>';
  573. c += "</select>";
  574. c += '<span style="margin-left: 2%; margin-right: 5px;">Amount:</span>';
  575. c += '<input type="txt" id="CalcA" onchange="calcAmount(this.value)" value="bal" style="width: 35%; margin-right: 5%; float: right;"></input>';
  576. c += "<br>";
  577. 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>';
  578. e.innerHTML = c;
  579. }
  580. function setT() {
  581. CreateObject("div", "TPanel", "", el1.children[0]);
  582. var e = document.getElementById("TPanel");
  583. 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;");
  584. var c;
  585. 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>';
  586. c = '<span class="ScriptInf">Current files 12th dec 2015</span>';
  587. c += "<br><br>";
  588. c += '<a class="Link" href="https://drive.google.com/drive/folders/0BzwzmqEWk5a-SGJ0SDg5ekM1d3M" target="_blank">Bot files link</a>';
  589. c += "<br><br>"
  590. c += '<a class="Link" href="https://thc.pologtijaune.pf/~TahitiBot/nbotfiles/" target="_blank">Alternative files link</a>;<br><br>';
  591. c += '<span class="ScriptInf">Please read the help section on the bot before asking some help. Until help must be rewrite for auto.</span>';
  592. e.innerHTML = c;
  593. e = document.head.children[8];
  594. c = e.innerHTML;
  595. c += ".Link{position: absolute; width: 100%; text-align: center; font-size: 160%}";
  596. c += ".ScriptInf{position: relative;margin-left: 10px; margin-right: 10px; word-break: break-all; text-align: left; font-size: 120%}";
  597. e.innerHTML += c;
  598. }
  599. function setG() {
  600. CreateObject("div", "GPanel", "", el1.children[0]);
  601. var e = document.getElementById("GPanel");
  602. 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;");
  603. var c;
  604. 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;">';
  605. c += '<span style="margin-left: 65px; width: 80px;">Streak:</span>';
  606. c += '<input type="number" id="GenStreak" min="1" max="300" step="1" value="1" style="top: -18px; width:50px; margin-left: 10px;">';
  607. c += "<br><br>";
  608. c += '<span style="margin-left: 10px; width: 80px">Stop:</span>';
  609. c += '<input type="text" id="GenStop" style="top: -18px; width:120px; margin-left: 10px;">';
  610. c += '<span style="text-decoration: line-through; margin-left: 10px; width: 80px">RepeatBet:</span>';
  611. c += '<input type="text" id="GenRepeat" style="top: -18px; width:50px; margin-left: 10px;">';
  612. c += "<br><br>";
  613. c += '<span style="text-decoration: line-through; margin-left: 10px; width: 110px;">Injector: </span>';
  614. c += '<select id="InjectorChoice" style="margin-left: 10px; width: 150px; top: -18px; float: none;">';
  615. c += '<option value="None" class="List">-||-_-||-</option>';
  616. c += '<option value="BetSize" class="List">Custom Bet Size</option>';
  617. c += '<option value="MaxBet" class="List">MaxBet Stop</option>';
  618. c += '<option value="Multi" class="List">Multiplicator List</option>';
  619. c += "</select>";
  620. c += '<button id="SaveGen" style="position: relative; top: 0px; float: right; right: 12px;" onclick="Generate();">Generate</button>';
  621. c += "<br><br>";
  622. 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);">';
  623. 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>';
  624. 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>';
  625. 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>';
  626. 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>';
  627. c += "</div>";
  628. 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;">';
  629. c += "</div>";
  630. e.innerHTML = c;
  631. }
  632. function setBtn() {
  633. CreateObject("div", "BtnPanel", "", el1.children[0]);
  634. var e = document.getElementById("BtnPanel");
  635. e.setAttribute('style', 'display: none; border: solid; width: 300px');
  636. 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>';
  637. c += '<span style="margin-left: 10px; width: 80px">Button Class</span>';
  638. 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">';
  639. c += '<option value="BS" class="List">BetSize & Win%</option>';
  640. c += '<option value="M" class="List">Multiply BetSize</option>';
  641. c += '<option value="D" class="List">Divide BetSize</option>';
  642. c += '<option value="MD" class="List">Multiply & Divide</option>';
  643. c += "</select>";
  644. c += '<br>';
  645. c += '<span style="margin-left: 10px; width: 80px; margin-bottom: 10px; margin-top: 10px">Name:</span>';
  646. c += '<input type="text" id="BtnName" style="display: inline-block; top: -18px; width:120px; margin-left: 10px; margin-bottom: 7px; margin-top: 7px">';
  647. c += '<br>';
  648. c += '<span style="margin-left: 10px; width: 80px; margin-bottom: 10px; margin-top: 10px">Bet Size:</span>';
  649. c += '<input type="text" id="BtnBs" style="display: inline-block; top: -18px; width:120px; margin-left: 10px; margin-bottom: 7px; margin-top: 7px">';
  650. c += '<br>';
  651. c += '<span style="margin-left: 10px; width: 80px; margin-bottom: 10px; margin-top: 10px">Win%:</span>';
  652. c += '<input type="text" id="BtnWin" style="display: inline-block; top: -18px; width:120px; margin-left: 10px; margin-bottom: 7px; margin-top: 7px">';
  653. c += '<br>';
  654. c += '<span style="margin-left: 10px; width: 80px; margin-bottom: 10px; margin-top: 10px">Multiply by:</span>';
  655. c += '<input type="text" id="BtnMulti" style="display: none; top: -18px; width:120px; margin-left: 10px; margin-bottom: 7px; margin-top: 7px">';
  656. c += '<br>';
  657. c += '<span style="margin-left: 10px; width: 80px; margin-bottom: 10px; margin-top: 10px">Divide by:</span>';
  658. c += '<input type="text" id="BtnDivide" style="display: none; top: -18px; width:120px; margin-left: 10px; margin-bottom: 7px; margin-top: 7px">';
  659. c += '<br>';
  660. c += '<span style="margin-left: 10px; width: 80px; margin-bottom: 10px; margin-top: 10px">Button Align:</span>';
  661. c += '<select id="BtnAlign" style="margin-left: 10px; width: 100px; top: -18px; float: none; margin-left: 10px; margin-bottom: 7px; margin-top: 7px">';
  662. c += '<option value="right" class="List">Right</option>';
  663. c += '<option value="center" class="List">Center</option>';
  664. c += '<option value="Left" class="List">Left</option>';
  665. c += "</select>";
  666. c += '<br>';
  667. c += '<button id="BtnCreator" type="TextButton" onclick="btnAdd()" style="margin-left: 10px;">Add</button>';
  668. c += '<button type="TextButton" onclick="btnClean()" style="margin-left: 10px;">Clean</button>';
  669. c += '<button type="TextButton" onclick="btnSave()" style="margin-left: 10px; margin-bottom: 7px; margin-top: 7px;">Save</button>';
  670. e.innerHTML = c;
  671. }
  672. function showBtnClass(val) {
  673. var elB = document.getElementById('BtnBs');
  674. var elW = document.getElementById('BtnWin');
  675. var elM = document.getElementById('BtnMulti');
  676. var elD = document.getElementById('BtnDivide');
  677. var elC = document.getElementById('BtnCreator');
  678. var t1 = "none";
  679. var t2 = "inline-block"
  680. elB.style.display = t1;
  681. elW.style.display = t1;
  682. elM.style.display = t1;
  683. elD.style.display = t1;
  684. if (val == "BS") {
  685. elB.style.display = t2;
  686. elW.style.display = t2;
  687. elC.setAttribute("onclick", "btnAdd()");
  688. }
  689. if (val == "M") {
  690. elM.style.display = t2;
  691. elC.setAttribute("onclick", "btnMulti()");
  692. }
  693. if (val == "D") {
  694. elD.style.display = t2;
  695. elC.setAttribute("onclick", "btnDivide()");
  696. }
  697. if (val == "MD") {
  698. elC.setAttribute("onclick", "btnMD();");
  699. }
  700. }
  701. function btnMulti() {
  702. var elBtn = document.getElementById('SantaBtn');
  703. var n = document.getElementById('BtnName').value;
  704. var a = document.getElementById('BtnAlign').value;
  705. var x = document.getElementById('BtnMulti').value;
  706. var c = '<div class="BetControlButton" data-key="' + btnCount + '" id="Button' + btnCount + '" onclick="elBs.value = (Number(elBs.value) * ' + x + ').toFixed(8);" + style="float: ' + a + '">';
  707. c += '<span class="BetControlTitle">' + n + '</span>';
  708. c += '<span class="Keyboard">' + btnCount + '</span>';
  709. c += '</div>';
  710. elBtn.innerHTML += c;
  711. btnCount++;
  712. }
  713. function btnDivide() {
  714. var elBtn = document.getElementById('SantaBtn');
  715. var n = document.getElementById('BtnName').value;
  716. var a = document.getElementById('BtnAlign').value;
  717. var x = document.getElementById('BtnDivide').value;
  718. var c = '<div class="BetControlButton" data-key="' + btnCount + '" id="Button' + btnCount + '" onclick="elBs.value = (Number(elBs.value) / ' + x + ').toFixed(8);" + style="float: ' + a + '">';
  719. c += '<span class="BetControlTitle">' + n + '</span>';
  720. c += '<span class="Keyboard">' + btnCount + '</span>';
  721. c += '</div>';
  722. elBtn.innerHTML += c;
  723. btnCount++;
  724. }
  725. function btnAdd() {
  726. var elBtn = document.getElementById('SantaBtn');
  727. var n = document.getElementById('BtnName').value;
  728. var w = document.getElementById('BtnWin').value;
  729. var b = document.getElementById('BtnBs').value;
  730. var a = document.getElementById('BtnAlign').value;
  731. var c = '<div class="BetControlButton" data-key="' + btnCount + '" id="Button' + btnCount + '" onclick="betVal(' + b + ', ' + w + ')" + style="float: ' + a + '">';
  732. c += '<span class="BetControlTitle">' + n + '</span>';
  733. c += '<span class="Keyboard">' + btnCount + '</span>';
  734. c += '</div>';
  735. elBtn.innerHTML += c;
  736. btnCount++;
  737. }
  738. function btnMD() {
  739. var elBtn = document.getElementById('SantaBtn');
  740. var n = document.getElementById('BtnName').value;
  741. var a = document.getElementById('BtnAlign').value;
  742. var c = '<div class="BetControlButton" data-key="' + btnCount + '" id="ButtonD' + btnCount + '" onclick="elBs.value = (Number(elBs.value) / document.getElementById(&apos;ButtonI' + btnCount + '&apos;).value).toFixed(8);" + style="float: ' + a + '">';
  743. c += '<span class="BetControlTitle">/</span>';
  744. c += '<span class="Keyboard">' + btnCount + '</span>';
  745. c += '</div>';
  746. c += '<input type="text" id="ButtonI' + btnCount + '" maxlength="3" class="StandardTextBox" value="1" style="width: 40px; float: ' + a + '; margin-top: 15px;">';
  747. c += '<div class="BetControlButton" data-key="' + btnCount + '" id="ButtonX' + btnCount + '" onclick="elBs.value = (Number(elBs.value) * document.getElementById(&apos;ButtonI' + btnCount + '&apos;).value).toFixed(8);" style="float: ' + a + '">';
  748. c += '<span class="BetControlTitle">X</span>';
  749. c += '<span class="Keyboard">' + btnCount + '</span>';
  750. c += '</div>';
  751. elBtn.innerHTML += c;
  752. btnCount++;
  753. }
  754. function btnClean() {
  755. document.getElementById('SantaBtn').innerHTML = '';
  756. localStorage.removeItem('BTN');
  757. }
  758. function btnSave() {
  759. localStorage.setItem('BTN', document.getElementById('SantaBtn').innerHTML);
  760. }
  761. function upFavMarket() {
  762. var test = elO5.value;
  763. var m;
  764. if (test == 'IDR') {
  765. favMarket("IDR", "BtcPrice", "🏃💨฿TC » ", " IDR");
  766. } else {
  767. m = test.split(',');
  768. if (m[0] == 'XPF') {
  769. m = ['btc-eur', '€'];
  770. }
  771. favMarket(m[0], "BtcPrice", "🏃💨฿TC » ", "" + m[1]);
  772. }
  773. setTimeout(favMarket("doge-btc", "DogePrice", "ÐOGE » ", "❕❕"), 100);
  774. setTimeout(favMarket("ltc-btc", "LtcPrice", "ŁTC » ", "❕❕"), 200);
  775. setTimeout(favMarket("clam-btc", "ClamPrice", "CLAM » ", "✨"), 300);
  776. favMRun = setInterval(function () {
  777. if (test == 'IDR') {
  778. favMarket("IDR", "BtcPrice", "🏃💨฿TC » ", " IDR");
  779. } else {
  780. m = test.split(',');
  781. if (m[0] == 'XPF') {
  782. m = ['btc-eur', '€'];
  783. }
  784. favMarket(m[0], "BtcPrice", "🏃💨฿TC » ", "" + m[1]);
  785. }
  786. setTimeout(favMarket("doge-btc", "DogePrice", "ÐOGE » ", "❕❕"), 100);
  787. setTimeout(favMarket("ltc-btc", "LtcPrice", "ŁTC » ", "❕❕"), 200);
  788. setTimeout(favMarket("clam-btc", "ClamPrice", "CLAM » ", "✨"), 300);
  789. }, 60000);
  790. }
  791. setB();
  792. setO();
  793. setE();
  794. setT();
  795. setG();
  796. setBtn();
  797. el1.children[0].setAttribute("style", "position: relative; width: 100%; display: inline-flex;");
  798. document.querySelector("body").style.zoom = "104.6%";
  799. el = document.head.children[8];
  800. temp = el.innerHTML;
  801. temp += ".FavMark{margin-right: 1%; margin-left: 1%}";
  802. el.innerHTML = temp;
  803. document.getElementById("ChatTab").style.padding = "5px";
  804. var Variables = 'var xC = 100000000;\nvar rainalert = luckyrain = {};\nvar count = 0;\nvar repeat = 1;\nvar d;\nvar Player;\nvar rainalert = new Audio();\nrainalert.src = "http://cd.textfiles.com/10000soundssongs/WAV/ALARM.WAV";\nrainalert.volume = 0.3;\nvar luckyrain = new Audio();\nluckyrain.src = "https://docs.google.com/uc?authuser=0&id=0B5MUP8UI_9b2cDJ4YVIzT3dWamM&export=download";\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';
  805. 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';
  806. var ChatVar = window.setInterval(ActiveChat, 1E3),
  807. script = document.createElement("script");
  808. script.type = "text/javascript";
  809. script.appendChild(document.createTextNode(Variables +
  810. 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" + ShowRainTimer + "\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 +
  811. "\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" + showBtnClass + "\n" + btnMulti + "\n" + btnDivide + "\n" + btnMD + "\n" + upFavMarket + End));
  812. (document.body || document.head || document.documentElement).appendChild(script);

comments powered by Disqus