A Universal Script to Re-Enable the Selection and Copying

Enables select, right-click, copy and drag on pages that disable them.

当前为 2021-06-12 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
𝖢𝖸 𝖥𝗎𝗇𝗀
评分
0 0 0
版本
1.5.1
创建于
2021-06-06
更新于
2021-06-12
大小
7.9 KB
许可证
暂无
适用于

Description:
This is a most powerful script to let you copy and select without affecting the normal features of each site.

1) disables the ".preventDefault()" function for 'copy', 'contextmenu', 'select', 'selectstart', 'dragstart', 'beforecopy' events
2) disables the "return false" in HTML attributes 'oncopy', 'oncontextmenu', 'onselect', 'onselectstart', 'ondragstart', 'onbeforecopy'
3) disables the "returnValue" in javascript coding for 'copy', 'contextmenu', 'select', 'selectstart', 'dragstart', 'beforecopy' events
4) re-enable "pointer-events" for images
5) de-block "alert()" for mouse right click
6) css hack to re-enable the selection coloring if transparent coloring is applied
7) disables the ".preventDefault()" function for 'Ctrl-C' in 'mousedown' & 'mouseup' events if there is text selection


Similar features to the following:
> Absolute Enable Right Click & Copy - Force Enable Right Click & Copy & Highlight
> Allow Copy and Context Menu Continued - Disable (remove) copy text protection and allow copy for all sites
> 通殺大部分網站,可以解除禁止復制、剪切、選擇文本、右鍵菜單的限制。

Sample URLs for your testing:
https://jsfiddle.net/xLcv3o9z/1/ (old school style - hard coding "return false;" & "returnValue=false")
https://amigurumi.today/large-ami-cat-crochet-pattern/
https://www.peekme.cc/post/1220893
https://read.qidian.com/chapter/ORlSeSgZ6E_MQzCecGvf7A2/fpUeEW2LD3fwrjbX3WA1AA2
http://www.bimiacg.net/bangumi/bi/3486/
https://www.uta-net.com/
https://boke112.com/post/2281.html (https://jsfiddle.net/dgj5es6m/) (this site uses special hacks like ":not(input):not(textarea)::selection" and keyboard ctrl-C)