Advertisement
JASONDAKILLA

Untitled

Dec 4th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. (function() {
  2. 'use strict';
  3. var a = parseInt(GM_getValue("robux", 0));
  4. var b = parseInt(GM_getValue("yes", 0));
  5. var btn = document.getElementById('confirm-btn');
  6. setInterval(function() {
  7. document.getElementsByClassName("btn-medium btn-primary")[0].onclick = function(){
  8. event.preventDefault();
  9. GM_setValue("yes", 1);
  10. b = 1;
  11. };
  12. if (a < 100000 && b == 1) {
  13. a++;
  14. }
  15.  
  16. GM_setValue("robux", a);
  17. document.getElementById("nav-robux-amount").innerHTML = a;
  18. document.getElementById("nav-robux-balance").innerHTML = a + " ROBUX";
  19. document.getElementsByClassName("btn-medium btn-primary")[0].innerHTML = "Get Robux";
  20. if (a >= 100000) {
  21. document.getElementsByClassName("modal-title")[0].innerHTML = "Are You Sure?";
  22. document.getElementsByClassName("modal-message")[0].innerHTML = "Are you ready to buy this?";
  23. btn = document.getElementById('confirm-btn');
  24. btn.outerHTML = '<button class="' + btn.attributes.class + '" id="' + btn.id + '" >Buy Robux</button>';
  25. document.getElementById('confirm-btn').innerHTML = 'Buy it!';
  26. document.getElementById('confirm-btn').onclick = function() {
  27. $(".alert-success").html("Purchase Completed. Your item will appear within 3 hours");
  28. Roblox.BootstrapWidgets.ToggleSystemMessage($(".alert-success"),5000,1e3);
  29. document.getElementById('simplemodal-container').outerHTML = '';
  30. document.getElementById('simplemodal-overlay').outerHTML = '';
  31. $(".alert-success").html("Purchase Completed. Your item will appear within 3 hours");
  32. Roblox.BootstrapWidgets.ToggleSystemMessage($(".alert-success"),5000,1e3);
  33. };
  34. }
  35. }, 1);
  36. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement