您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Google translate auto slide on mouseover
当前为
// ==UserScript== // @name Google translate auto slide // @namespace http://tampermonkey.net/ // @version 0.55 // @description Google translate auto slide on mouseover // @author aseg // @match https://* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; let zcont = null; let observer = new MutationObserver(mutations => { for(let mutation of mutations) { // examine new nodes for(let node of mutation.addedNodes) { if(!(node instanceof HTMLElement)) { continue; } if(document.getElementById(":0.container")) { zcont = document.getElementById(":0.container"); } } } if(zcont) { zcont.style.width = "31px"; zcont.style.marginLeft = "-10px"; zcont.style.borderRadius = "8px"; zcont.onmouseover = function() { zcont.style.width = "100%"; zcont.style.marginLeft = "0px"; zcont.style.borderRadius = "0px"; document.onmousemove = function(evt) { let evtDoc, doc, body; evt = evt || window.evt; if (evt.pageY == null && evt.clientY != null) { evtDoc = (evt.target && evt.target.ownerDocument) || document; doc = evtDoc.documentElement; body = evtDoc.body; evt.pageY = evt.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0 ); } if(evt.pageY > 65) { zcont.style.width = "31px"; zcont.style.marginLeft = "-10px"; zcont.style.borderRadius = "8px"; document.onmousemove = function(){}; } } } } }); observer.observe(document.body, {childList: true}); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址