Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name mudaDeAldeiaV2PT59
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://pt59.tribalwars.com.pt/game.php?village=*&screen=*
- // @match https://pt59.tribalwars.com.pt/game.php?screen=overview_villages&intro
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var aldeias = [29690,25609,28027];
- var strAldeias = ["1-ROYALTY","2-CAMP","3-STN MTN"];
- var i;
- var nAldeias = aldeias.length;
- $("#ds_body > div.top_shadow").append("<table>");
- for(i=0;i < nAldeias; i++){
- $("#ds_body > div.top_shadow > table").append("<tr>");
- //console.log(i);
- var linha = i+1;
- if(i >= 0){
- //$("#ds_body > div.top_shadow > table > tbody > tr:nth-child("+linha+")").append('<a id="'+aldeias[i]+'" href="https://pt59.tribalwars.com.pt/game.php?village='+aldeias[i]+'&screen=overview">'+strAldeias[i]+'</a>');
- $("#ds_body > div.top_shadow > table > tbody > tr:nth-child("+linha+")").append('<a id="'+aldeias[i]+'" href="https://pt59.tribalwars.com.pt/game.php?village='+aldeias[i]+'&screen=overview"> <button> '+strAldeias[i]+' </button></a>');
- $("#ds_body > div.top_shadow > table > tbody > tr:nth-child("+linha+")").append('<a id="'+aldeias[i]+'" href="https://pt59.tribalwars.com.pt/game.php?village='+aldeias[i]+'&screen=main"> <button> <img id="home" src="https://i.imgur.com/ppcOWrd.png" > </button></a>');
- $("#ds_body > div.top_shadow > table > tbody > tr:nth-child("+linha+")").append('<a id="'+aldeias[i]+'" href="https://pt59.tribalwars.com.pt/game.php?village='+aldeias[i]+'&screen=train"> <button> <img id="recruit" src="https://i.imgur.com/Xl0IHhS.png" > </button></a>');
- $("#ds_body > div.top_shadow > table > tbody > tr:nth-child("+linha+")").append('<a id="'+aldeias[i]+'" href="https://pt59.tribalwars.com.pt/game.php?village='+aldeias[i]+'&screen=market"> <button> <img id="market" src="https://i.imgur.com/E3X2aT6.png" > </button></a>');
- $("#ds_body > div.top_shadow > table > tbody > tr:nth-child("+linha+")").append('<a id="'+aldeias[i]+'" href="https://pt59.tribalwars.com.pt/game.php?village='+aldeias[i]+'&screen=snob"> <button> <img id="academia" src="https://i.imgur.com/ZOn4V1t.png" > </button></a>');
- //$("#ds_body > div.top_shadow > table > tbody > tr:nth-child("+linha+")").css("background-color", "orange");//Cor de background
- $("#ds_body > div.top_shadow > table > tbody > tr:nth-child("+linha+") a").css("color", "black");//Cor do link
- }
- }
- // Your code here...
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement