Description:
This is a most powerful script to let you copy and select without affecting the normal features of each site.
- disables the
.preventDefault()
function for 'copy', 'contextmenu', 'select', 'selectstart', 'dragstart', 'beforecopy' events - disables the
return false
in HTML attributes 'oncopy', 'oncontextmenu', 'onselect', 'onselectstart', 'ondragstart', 'onbeforecopy' - disables the
returnValue
in javascript coding for 'copy', 'contextmenu', 'select', 'selectstart', 'dragstart', 'beforecopy' events - re-enable "pointer-events" for images
- de-block
alert()
for mouse right click - css hack to re-enable the selection coloring if transparent coloring is applied
- disables the
.preventDefault()
function and "returnValue=false" for 'Ctrl-C' in 'mousedown' & 'mouseup' events if there is text selection - 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
- Image Copying: deblock the hover element above the image element, clickable background image
Stared Feature: (特色功能:)
- 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:
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:
- "return false" is set in
onkeydown
&/or onkeyup
(Ctrl-C) - 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:mousedown
is disabledmouseup
/click
is linked with the change of location.href
Not working for <input Value="test" onSelect="blur();">