你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/427575-selection-and-copying-restorer-universal,源站連結 點此以跳轉

A Universal Script to Re-Enable the Selection and Copying

Enables select, right-click, copy and drag on pages that disable them. Enhanced Feature: Alt Key HyperLink Text Selection

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



點此查看下載連結位址https://update.greasyfork.org.cn/scripts/427575/942232/Selection%20and%20Copying%20Restorer%20%28Universal%29.user.js

安装此脚本?
作者
𝖢𝖸 𝖥𝗎𝗇𝗀
评分
0 0 0
版本
1.7.7.2
创建于
2021-06-06
更新于
2021-06-19
大小
14.6 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 and "returnValue=false" for 'Ctrl-C' in 'mousedown' & 'mouseup' events if there is text selection
  8. allowing the clipboard data replacement in 'copy' events
    • if a non-empty string with text/plain is set.
    • original selection text will be shown in console.log(...) if it is also a non-empty string


Stared Feature: (特色功能:)

  1. Enhanced build-in alt text selection - You can now copy the link / button text using Alt-click; the cursor will change from "pointer" to "text", and the selection shall be in pink color.
    (增強內置Alt文字選取 - 針對超連結及按鈕文字,按Alt+Click後,鼠標會由"pointer"變成了"text",並且選取區變成粉紅色。)


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:



Allow Copying:



Testing:



known issues:

  • this script is intentionally not to disable "return false" in keydown & keyup (Ctrl-C) to avoid performance issue; you should still be able to copy the text using right click.
  • "preventDefault()", "returnValue=false", "return false" in mousedown would not be disabled (due to avoid conflict to the normal features)
  • not working for <input Value="test" onSelect="blur();">