dino

-

目前為 2016-10-15 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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);