极客时间油猴脚本 Posted on 2023-03-24 Views: 用途一个Tampermonkey脚本,用于破解极客时间HTML页面,使其允许选择复制文本 油猴插件安装https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?utm_source=chrome-ntp-icon 安装后需要右击图标进入插件配置页面,选中Allow access to file URLs 脚本123456789101112131415161718// ==UserScript==// @name 极客时间允许复制// @namespace https://www.yourdomain.com/// @version 1.0// @description 极客时间允许复制// @author yourname// @match file:///path/to*// @icon https://www.google.com/s2/favicons?sz=64&domain=undefined.// @run-at document-body// ==/UserScript==(function() { 'use strict'; var eles = document.getElementsByTagName('*'); for (var i = 0; i < eles.length; i++) { eles[i].style.userSelect = 'text'; }})(); 注意将@match 修改为本机路径