Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Tribalwars sniper
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Tribalwars sniper
- // @author Doomness
- // @match https://*.tribalwars.nl/game.php?village=*&screen=place&try=confirm
- // @grant none
- // @require http://code.jquery.com/jquery-latest.js
- // @run-at document-end
- // ==/UserScript==
- var TIME = "23:57:57"; //tijd van gewenste aankomst
- var MILISECOND_DELAY = 507; //vertraging in miliseconden
- $(document).ready(function(){
- snipe();
- })
- function snipe(){
- if($("span.relative_time").text().indexOf(TIME) >= 0){
- setTimeout(function() {
- $("input.troop_confirm_go").click();
- }, MILISECOND_DELAY);
- }
- setTimeout(snipe, 25);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement