Selection and Copying Restorer (Universal)

右クリックを解除し、コピー、切り取り、テキスト選択、コンテキストメニュー、テキストのコピー、テキストの選択、画像の右クリックなどの制限を解除します。機能の強化:Altキーでハイパーリンクテキストの選択ができます。

2023/05/21時点のページです。最新版はこちら。

作者のサイトでサポートを受ける。または、このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
𝖢𝖸 𝖥𝗎𝗇𝗀
評価
0 0 0
バージョン
1.9.0.1
作成日
2021/06/06
更新日
2023/05/21
ライセンス
不明
対象サイト
すべてのサイト

Remove web limits; Allow Copy

Description:

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

Some China sites are deliberately designed to block the copying feature, like Badiu Wenku. This script is not that powerful to deblock such anti-feature. You might consider to try this script to get the site content.

Google Map Photos are using div background image css and canvas painting. Both of them are not supported in this userscript. You can try other userscript to download the images, such as Image Downloader

  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


Extra Feature: (額外功能:)

  1. Enhanced build-in Alt Text Selection [inactive by default, recommended] - 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",並且選取區變成粉紅色。)
  2. Hover on Image [inactive by default] - Image Copying: deblock the hover element above the image element, clickable background image
  3. Repetitive AuxClick Prevention [inactive by default, recommended] - Omit the repeated aux click event


Similar features to the following:



Sample URLs for your testing:



Allow Copying:



Testing:




Remarks:

  • It is the intention that keyup, keydown, and blur events are kept at its own performance and functionality
  • You shall use "Right-Click-Copy" to copy the text for the following situtations:
    1. "return false" is set in onkeydown &/or onkeyup (Ctrl-C)
    2. Copy Text is replaced by the text you don't want when you press Ctrl-C (copy event)
  • You shall use "Alt-Click" to select the text for the following situtations:
    1. mousedown is disabled
    2. mouseup/click is linked with the change of location.href
  • Not working for <input Value="test" onSelect="blur();">