Created
February 18, 2017 13:52
-
-
Save rodrigograca31/e52e39f31694e071fd4fc641f5a2dc6a to your computer and use it in GitHub Desktop.
Etiquetar ataques
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Etiquetar ataques automaticamente. | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://pt50.tribalwars.com.pt/game.php?village=*&screen=overview_villages&mode=incomings&type=unignored&subtype=attacks* | |
| // @match https://pt50.tribalwars.com.pt/game.php?village=*&screen=overview_villages&mode=incomings&action=process&type=unignored&subtype=attacks* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| //RELOAD EVERY 10 MINUTES | |
| setTimeout(function(){ | |
| window.location = location; | |
| console.log("RELOAD: " + Date()); | |
| }, 5*60*1000); | |
| setTimeout(function(){ | |
| console.log("SELECIONAR TUDO: " + Date()); | |
| $("#incomings_table label[for='select_all']").click(); | |
| setTimeout(function(){ | |
| console.log("ETIQUETAR: " + Date()); | |
| $("#incomings_table [type='submit']")[1].click(); | |
| }, 15*1000); | |
| }, 10*1000); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Boas,
Não estou a conseguir executá-lo, mudei as cenas para o pt52, mas não está a etiquetar...