您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
have fun
当前为
// ==UserScript== // @name JavDB_helper // @namespace http://tampermonkey.net/ // @version 0.1 // @description have fun // @author Yich // @match https://javdb.com/* //@require https://code.jquery.com/jquery-3.3.1.min.js // @grant none //@run-at document-end // ==/UserScript== var originStyle = ''; var originImgUrl = ''; $('.item-image').hover(makeBigger,returnToOriginalSize); function makeBigger() { var imageDom = $(this).find('img'); originStyle = imageDom.attr('style'); imageDom.removeAttr('style'); originImgUrl = imageDom.data('src'); imageDom.attr('src',originImgUrl.replace('thumbs','covers')); $(this).parent().css({height: '+=60%', width: '+=60%'}); $(this).parent().parent().css('zIndex', '1'); } function returnToOriginalSize() { var imageDom = $(this).find('img'); imageDom.attr('style',originStyle); imageDom.attr('src',originImgUrl); $(this).parent().removeAttr('style'); $(this).parent().parent().removeAttr('style'); }