您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Why click on the icons when you can hover?
当前为
- // ==UserScript==
- // @name MyAnimeList(MAL) - Hover List, Notifications and Profile dropdown
- // @version 1.0.3
- // @description Why click on the icons when you can hover?
- // @author Cpt_mathix
- // @match http://myanimelist.net/*
- // @exclude http://myanimelist.net/animelist*
- // @exclude http://myanimelist.net/mangalist*
- // @grant none
- // @namespace https://greasyfork.org/users/16080
- // ==/UserScript==
- if (typeof jQuery == 'undefined') $ = unsafeWindow.$;
- var properties = {
- sensitivity: 1, // number = sensitivity threshold (must be 1 or higher)
- interval: 0, // number = milliseconds for onMouseOver polling interval
- over: showInfo, // function = onMouseOver callback (required)
- timeout: 300, // number = milliseconds delay before onMouseOut
- out: hideInfo // function = onMouseOut callback (required)
- };
- $('#header-menu > div.header-menu-unit.header-list.js-header-menu-unit').hoverIntent(properties);
- $('#header-menu > div.header-menu-unit.header-notification.js-header-notification').hoverIntent(properties);
- $('#header-menu > div.header-menu-unit.header-profile.js-header-menu-unit').hoverIntent(properties);
- function showInfo() {
- if (! $(this).hasClass('on')) {
- $('.header-list-dropdown').hide();
- $('.header-notification-dropdown').hide();
- $('.header-menu-dropdown').hide();
- $(this).find('.header-list-dropdown').show();
- $(this).find('.header-notification-dropdown').show();
- $(this).find('.header-menu-dropdown').show();
- $(this).addClass('on');
- }
- }
- function hideInfo() {
- $(this).find('.header-list-dropdown').hide();
- $(this).find('.header-notification-dropdown').hide();
- $(this).find('.header-menu-dropdown').hide();
- $(this).removeClass('on');
- }