Facebook
From Anorexic Dolphin, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 97
  1. // ==UserScript==
  2. // @name         Wybijanie monet
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.6
  5. // @description  try to take over the world!
  6. // @author       You
  7. // @match        https://*.plemiona.pl/*screen=snob*
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11. ///////////// USER SETTINGS ///////////
  12.  
  13. coIleOdswiezenieStala = 1000 * 120 // 1000 ms = 1 sekunda, 120 * 1000 = 2 minuty
  14. coIleOdswiezenieZmienna =  10 * 1000 // 1000 ms = 1 senunda
  15.  
  16. //////////////////////////////////////
  17.  
  18.  
  19.  
  20. if (sessionStorage.getItem('auto') == '1') {
  21.     start_disabled = 'disabled';
  22.     stop_disabled = '';
  23.     start();
  24.  
  25. } else {
  26.     start_disabled = '';
  27.     stop_disabled = 'disabled';
  28. }
  29.  
  30. $("#content_value").prepend(`<div><button id='start' class='btn' ${start_disabled}>START</button>&nbsp;&nbsp;&nbsp;<button id='end' class='btn' ${stop_disabled}>STOP</button>&nbsp;&nbsp;&nbsp;<span id="counter"></span></div>`)
  31.  
  32. function start() {
  33.     setTimeout(function() {
  34.         $("#coin_mint_fill_max").click()
  35.         setTimeout(function() {
  36.             $("input[value='Wybić']").click()
  37.             counter = 60
  38.             setInterval(function() {
  39.  
  40.                 counter = counter - 1
  41.                 $("#counter").text('Next refresh in '+counter+' seconds')
  42.             },1000)
  43.             setTimeout(function() {
  44.                 location.reload();
  45.             },coIleOdswiezenieStala + coIleOdswiezenieZmienna * Math.random())
  46.         },1000)
  47.     },3000)
  48.  
  49. }
  50.  
  51.  
  52. $(document.body).on('click','#start',()=>{
  53.     sessionStorage.setItem('auto','1')
  54.     window.location.reload()
  55. })
  56.  
  57. $(document.body).on('click','#end',()=>{
  58.     sessionStorage.setItem('auto','0')
  59.     window.location.reload()
  60. })
  61.  
  62.