Guest User

Untitled

a guest
Aug 24th, 2019
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name Auto wysyłanie atakow
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author Howcio
  7. // @match https://*.plemiona.pl/*
  8. // @grant none
  9. // ==/UserScript==
  10. function x(){
  11. if (window.location.href.match("simulator") !== null){
  12. $("#target_attack").click();
  13. }
  14. if (window.location.href.match("confirm") !== null){
  15. $("#troop_confirm_go").click();
  16. }
  17. if (window.location.href.match("simulator") === null){
  18. if (window.location.href.match("confirm") === null){
  19.  
  20. if (window.location.href.match("place") !== null){
  21. window.close();
  22.  
  23. }
  24. }
  25. }
  26.  
  27. if ($("body").text().indexOf("Ochrona botowa")>3){
  28. localStorage.setItem("pauza", "true");}
  29.  
  30. };
  31.  
  32. setTimeout(x,2500);
  33.  
  34. setInterval(function(){
  35. if($(".popup_box").length == 1){$("input#target_attack")[0].click();
  36. setTimeout(function(){
  37. $("#troop_confirm_go")[0].click()
  38. }, 1000);}}, 2000);
RAW Paste Data