3 ms·
Slightly off topic but a hobby I've picked up recently is breaking web based "no copy/paste" schemes. Usually people map onmousedown,click,oncontextmenu, etc.
by wh-uws 14y ago
Slightly off topic but a hobby I've picked up recently is breaking web based "no copy/paste" schemes.
Usually people map onmousedown,click,oncontextmenu, etc. events or some permutation there of to return false and have an alert that say's something to the effect of "no copying!"
You can easily defeat those by mapping whichever function to null on your javascript console. ie:
document.oncontextmenu = null
The Gwan guy's solution threw me off a bit because I was looking for another javascript version to no avail.
In an interesting twist they've actually used css. That is every vendor permutation of.
user-select: none;
To disable that use your favorite developer tools and remove those styles from whichever element you want to copy..
- pokoleo 14y agoBuild + Release a browser extension - I'd download it.
- loungin 14y agoDo you have Firebug for Firefox (press F12 to bring it up) or the Developer Tools (Ctrl-J) for Chrome? They make it trivial to toggle/edit CSS attributes on webpages. In GWAN's case (using Firefox) the rule was: p, h1, h2, h3, h4, ul, ol, legend, label { -moz-user-select: -moz-none; }
- chc 14y agoThere are already quite a few out there. Search your favorite browser's extension archive for something along the lines of "enable right click." (For example, Firefox has RightToClick.)