Advertisement
Guest User

Untitled

a guest
Jun 4th, 2020
1,495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Melvor Auto Spin
  3. // @namespace    Jash
  4. // @version      1.0.5
  5. // @description  Automatically spins to win
  6. // @author       Jash
  7. // @match        https://*.melvoridle.com/*
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11. var speed = 10000;
  12.  
  13. function createCheckbox() {
  14.     var checkbox = $( `
  15.         <input type="checkbox" id="autospin">
  16.         <label for="autospin">Autospin</label>
  17.     ` );
  18.  
  19.     checkbox.insertAfter($("button[data-target*='#modal-cof-shop']"));
  20. }
  21. createCheckbox();
  22.  
  23. this.autoBeg = setInterval(begParentsForMBucksBecauseImBrokeAndCantAffordToBuyItInTheP2WShopEvenThoughIShouldProbablyMakeDragonJavsForMoneyOhWaitLol, speed/100);
  24.  
  25. this.autoSpin = setInterval(() => {
  26.     if (!$('#autospin').is(':checked'))
  27.     {
  28.         return;
  29.     }
  30.     var iframe = $("iframe[src*='csgo/index.html']");
  31.     var claimAndSpinButton = iframe.contents().find("#case-claimandspin-btn");
  32.  
  33.     claimAndSpinButton.click();
  34. }, speed);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement