您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Netflix,方便Mac电脑快速选中翻译单词(Mac触控板手势重按或三指轻点)
// ==UserScript== // @name:en Set Netflix caption selectable easy to quickly translate word for Mac // @name Netflix,方便Mac电脑快速选中翻译单词 // @namespace http://tampermonkey.net/ // @version 1.1 // @description:en Set Netflix caption selectable, make it easy to quickly select and translate word in the caption for Mac // @description Netflix,方便Mac电脑快速选中翻译单词(Mac触控板手势重按或三指轻点) // @author jaywang // @match https://www.netflix.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Your code here... const mutationDiv = document.body; const observer = new MutationObserver(callback); observer.observe(mutationDiv, { childList: true, // 观察直接子节点 subtree: true, // 及其更低的后代节点 attributes: true, characterData: true }); /** DOM变动的回调函数 */ function callback (mutationRecord) { const mask = document.querySelector('.ltr-1420x7p'); const subtitle = document.querySelector('.player-timedtext'); if (mask) { mask.style.pointerEvents = 'none'; // 顶部的按钮是可以选的 const topBtns = mask.querySelectorAll('.medium.ltr-1dcjcj4'); topBtns.forEach((el) => { el.style.pointerEvents = 'auto'; }) } if (subtitle) { subtitle.style.userSelect = 'text'; subtitle.style.WebkitUserSelect = 'text'; } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址