dino

-

La data de 15-10-2016. Vezi ultima versiune.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        dino
// @namespace   -
// @description -
// @include     http://en.dinorpg.com/clan/*
// @version     1
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @require     https://greasyfork.org/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=115012
// @grant       GM_addStyle
// ==/UserScript==


function membros(){
 $(".table > tbody:nth-child(1) > tr:nth-child(1) > th:nth-child(1)").append($('<a class="tinyButton" id="botaaom" style="left:30px;bottom:5px;position:relative"><img src="http://imgup.motion-twin.com/dinorpg/4/f/f8ce16b2_183942.jpg"></img> Mensagem Twin</a>'));
  document.getElementById("botaaom").onclick = function (){
    location.assign("javascript:i=[],$('a.tid_user').each(function(){i=i.concat($(this).attr('tid_id'))}),_tid.askDiscuss(i.join(','))");
  };
    
}

function defesa () {
  $("#swf_fight").remove();
  $("#defendersList").remove();
  $("#repairersList").remove();
}

waitForKeyElements (".help > a:nth-child(1)",membros);
waitForKeyElements ("div.help:nth-child(3):contains(The castle is currently located at)", defesa);