您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
让新东方的选项变得可以被用户选中
// ==UserScript== // @name 新东方雅思复制黏贴 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 让新东方的选项变得可以被用户选中 // @author WangShuaiGe // @match https://ieltscat.xdf.cn/* // @icon https://g.csdnimg.cn/static/logo/favicon32.ico // @grant none // @license MIT // ==/UserScript== (function(){ 'use strict'; function handleElements() { const items = document.querySelectorAll(".option-item>span"); if (items.length === 0) return; items.forEach(item => { item.style.userSelect = "text"; item.style.cursor="text" item.addEventListener("mousedown", (e) => e.stopPropagation(), true); console.log("修改:", item); }); const items1 = document.querySelectorAll(".option-item"); items1.forEach(item => { item.style.padding="10px 20px" }); const items2= document.querySelectorAll(".collect-btn"); items2.forEach(item => { item.style.userSelect = "none" }); } const interval = setInterval(() => { if (document.querySelector(".option-item")) { handleElements(); clearInterval(interval); } }, 500); })()