Voorash Inline Tier Charts

This will provide an inline tier chart for DotD on Armor games

当前为 2014-07-28 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Voorash Inline Tier Charts
// @namespace   voorash
// @description   This will provide an inline tier chart for DotD on Armor games
// @include     http://armorgames.com/dawn-of-the-dragons-game/13509
// @require  http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
// @version     1
// @grant       none
// ==/UserScript==



var gameCanvas = document.getElementById('gamearea');
var newdiv = document.createElement('div');
newdiv.setAttribute('id','voorashTierDiv');
newdiv.innerHTML = '<table border="1"><tbody><tr><td>Name</td><td>AP</td><td>OS</td><td>Min Tier</td><td>Max Tier</td><td>All Tiers</td></tr><tr><td>Apocolocyntosised Demon</td><td>20m</td><td>20m</td><td>20m</td><td>180m</td><td>Every 20 mil from Min Tier to Max Tier</td></tr></tbody></table>';

var newdiv2 = document.createElement('div');
newdiv2.setAttribute('id','voorashTierButtonDiv');
newdiv2.innerHTML = 'Show Tiers';

var newCanvas = document.createElement('canvas');
newCanvas.setAttribute('id','voorashTierCanvas');
newCanvas.setAttribute('class', 'modalTierCanvasOn');

newCanvas.setAttribute('position','absolute');
newCanvas.setAttribute('left','0px');
newCanvas.setAttribute('z-index','100000');
newdiv.appendChild(newCanvas);


gameCanvas.appendChild(newdiv);
gameCanvas.appendChild(newdiv2);

//var gameLocation = $('#gamefilearea').css(property)

$("#voorashTierDiv").css({"position":"fixed","top":"0px","left":"0px","z-index":"100000","background-color":"white"}); 
$("#voorashTierButtonDiv").css({"position":"fixed","top":"0px","left":"0px","z-index":"100000","background-color":"white"}); 
$("#voorashTierDiv").hide();
$("#voorashTierButtonDiv").show();

var script = document.createElement( 'script' );
script.type = 'text/javascript';
script.text = "$(document).delegate(\"#voorashTierDiv\", \"click\", function() {$(\"#voorashTierDiv\").hide(); $(\"#voorashTierButtonDiv\").show();});";
$("head").append( script );


var script = document.createElement( 'script' );
script.type = 'text/javascript';
script.text = "$(document).delegate(\"#voorashTierButtonDiv\", \"click\", function() {$(\"#voorashTierButtonDiv\").hide(); $(\"#voorashTierDiv\").show();});";
$("head").append( script );