dino

-

Verzia zo dňa 15.10.2016. Pozri najnovšiu verziu.

// ==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://greatest.deepsurf.us/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);