您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add a bubble help when you mouseover a skill name (Abilities and Talents)
当前为
- // ==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);
- });
- }
- });