Skyforge Wikia - Bubble help on skill (Abilities and Talents)

Add a bubble help when you mouseover a skill name (Abilities and Talents)

当前为 2015-08-11 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        Skyforge Wikia - Bubble help on skill (Abilities and Talents)
// @namespace   hideonScript
// @author      Tegomass
// @description Add a bubble help when you mouseover a skill name (Abilities and Talents)
// @include     http://skyforge.wikia.com/*
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @version     1.0
// @grant       GM_addStyle
// ==/UserScript==

GM_addStyle('#WikiaArticle{overflow: visible !important;}\
	.tego_box{display:none;}\
	a[title]:hover .tego_box{ display:inline; position:absolute; z-index: 9999}');

$(function() { //shortcut link
	if (!$('table.lighttable.zebra').length) {
		return false;
	}
	$('table.lighttable.zebra').each(function(index, el) {
		$('a[title]', this).one('mouseover', function(e) {
			get_skill_info($(this).attr('href'), $(this));
		});
	});

	function get_skill_info(url, self) {
		$.get(url, function(data) {
			var item = $('aside.portable-infobox', data);
			item.addClass('tego_box');
			self.append(item);
		});
	}
});