Enable Copy Paste and Right Click

This script forcefully removes all JavaScript restrictions to enable text selection, copy-paste (Ctrl+C, Ctrl+V), and right-click (context menu) on restrictive websites.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
ScriptNinja
日安装量
0
总安装量
9
评分
0 0 0
版本
1.0.0
创建于
2025-11-03
更新于
2025-11-03
大小
3.1 KB
许可证
MIT
适用于
所有网站

🛠️ What This Script Does

Enable Copy Paste and Right Click is a robust userscript designed to universally override JavaScript and CSS restrictions that block basic browser functionality on many websites.

It ensures that you maintain control over your browser's core features, even on overly restrictive sites.

It includes the following features:

  • Restores Copy, Cut, and Paste Functionality Overrides common event listeners (oncopy, onpaste, oncut) to ensure standard keyboard shortcuts (Ctrl+C/V/X) work.

  • 🖱️ Re-enables Right Click (Context Menu) Blocks scripts that disable the right-click menu (oncontextmenu), allowing you to save images, open links, and use browser developer tools.

  • 🖊️ Forces Text Selection/Highlighting Injects powerful CSS styles to override user-select: none and related properties, allowing you to highlight and select text effortlessly.


📦 How to Use

  1. Install a Userscript Manager

  2. Install This Script Click the Install button on this page after you have a userscript manager.

  3. Browse Any Website Navigate to virtually any website (@match *://*/*) — the script runs automatically.

  4. Enjoy Unrestricted Access You can now copy text, right-click, and use the context menu on pages that previously blocked these actions.


🧠 Technical Notes

  • Runs at document-start and multiple times with a timeout to catch and disable scripts that load at any point during page loading.
  • Uses e.stopImmediatePropagation() during the Capturing Phase to intercept blocking events before they can execute.
  • Fully client-side, lightweight, fast, and does not collect any user data.

Feel free to fork, modify, or contribute — script licensed under MIT.