Skip to content

Instantly share code, notes, and snippets.

@rodrigograca31
Created February 18, 2017 13:52
Show Gist options
  • Save rodrigograca31/e52e39f31694e071fd4fc641f5a2dc6a to your computer and use it in GitHub Desktop.
Save rodrigograca31/e52e39f31694e071fd4fc641f5a2dc6a to your computer and use it in GitHub Desktop.
Etiquetar ataques
// ==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);
})();
@jhssilva
Copy link

jhssilva commented Mar 1, 2017

Boas,

Não estou a conseguir executá-lo, mudei as cenas para o pt52, mas não está a etiquetar...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment