您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Enhance page interaction by removing copy-paste restrictions and bypassing screen switch detection
// ==UserScript== // @name Enhanced Page Interaction // @namespace http://tampermonkey.net/ // @version 1.1 // @description Enhance page interaction by removing copy-paste restrictions and bypassing screen switch detection // @author You // @match *://*/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; document.addEventListener('copy', function(e) { e.stopPropagation(); }, true); document.addEventListener('cut', function(e) { e.stopPropagation(); }, true); document.addEventListener('paste', function(e) { e.stopPropagation(); }, true); Object.defineProperty(document, 'hidden', { value: false, writable: false }); Object.defineProperty(document, 'visibilityState', { value: 'visible', writable: false }); window.addEventListener('blur', function() { window.focus(); }); window.addEventListener('focus', function() { document.title = 'On Class!'; }); })();