Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Auto wysyłanie atakow
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author Howcio
- // @match https://*.plemiona.pl/*
- // @grant none
- // ==/UserScript==
- function x(){
- if (window.location.href.match("simulator") !== null){
- $("#target_attack").click();
- }
- if (window.location.href.match("confirm") !== null){
- $("#troop_confirm_go").click();
- }
- if (window.location.href.match("simulator") === null){
- if (window.location.href.match("confirm") === null){
- if (window.location.href.match("place") !== null){
- window.close();
- }
- }
- }
- if ($("body").text().indexOf("Ochrona botowa")>3){
- localStorage.setItem("pauza", "true");}
- };
- setTimeout(x,2500);
- setInterval(function(){
- if($(".popup_box").length == 1){$("input#target_attack")[0].click();
- setTimeout(function(){
- $("#troop_confirm_go")[0].click()
- }, 1000);}}, 2000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement