您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
当前为
// ==UserScript== // @name hover for link // @namespace https://github.com/Khdoop // @version 0.5 // @description try to take over the world! // @author Khdoop // @match *://*/* // @grant none // @require https://code.jquery.com/jquery-3.1.1.min.js // ==/UserScript== var body = $(document.body); console.log('1111111', body); var anchors = body.find('a'); var box = $('<div class="link-tooltip"></div>').appendTo(body); box.css({ display: 'block', position: 'absolute', right: 0, padding: '5px', 'font-size': '18px', background: 'white', border: '1px solid black', opacity: 0.9, 'word-break': 'break-all', 'z-index': 99999 }); anchors.on('mouseover', function() { box.css({display: 'block', bottom: body.scrollTop() * -1}).text($(this)[0].href); }).on('mouseleave', function() { box.css({display: 'none'}); });