Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a GreaseMonkey script to disable the JavaScript-disabling of copy-paste in Firefox (3.0)? Or should I just run NoScript or some other extension on any site that attempts this (other things might break...)?

[rant] Absolutely the worst "clever" use of JavaScript. Fortunately Safari is more usable and ignores the JavaScript hack that disables copy-paste. Who at Mozilla thought that was acceptable whatsoever? For shame. By the way, which browser added this "feature" first, IE? [/rant]

share|improve this question
3  
you better not be copying and pasting any of this content, mister! –  Jeff Atwood Aug 14 '09 at 23:58
1  
Sadly the people who do this probably don't have content anyone would want to steal any way. –  Jared Updike Aug 15 '09 at 0:07
    
If it's pictures you're trying to copy, a nice print screen does the job. Sometimes, I'll copy a web page window to clipboard, crop the image I want in Photoshop, and then email it to the webmaster =D. For text, though, I guess you might need something else. –  oscilatingcretin Aug 18 '11 at 18:55
add comment

6 Answers 6

up vote 2 down vote accepted

The Anti-Disabler script on diveintogreasemonkey.org works if you replace document. with document.wrappedJSObject.

share|improve this answer
add comment

Just disable the following option in Firefox's Javascript settings (it won't disable the warnings, as they are Javascript messages, but the context menu cannot be disabled by the web pages anymore):

enter image description here

share|improve this answer
1  
There are some web-app sites where I want to have the their custom context menus. It's annoying to have to turn this on and off. A per-site way of blacklisting sites is needed. –  Sam Hasler Aug 15 '09 at 13:40
add comment

I don't often toot my own horn. I actually was searching if anyone had a better method than my script:

http://userscripts.org/scripts/show/131063

Ultimately, I'd like there be an option within the browser that blocks javascript entries to onpaste events.

share|improve this answer
add comment

Haven't tried it:

Taking Back the Browser: Re-enable Context Menus on Sites That Disable Them

but it's a possible lead.

share|improve this answer
    
The Greasemonkey script on that page didn't work on the one site I tried it on. –  Sam Hasler Aug 15 '09 at 13:38
    
To be specific, it won't defeat the script on this page: jsbin.com/icozi –  Sam Hasler Aug 15 '09 at 14:02
add comment

How about the good-old NoScript option with firefox?
I tried the site on the your answer and was allowed to right-click and save.
Then, I opened javascript block for the site and was blocked right-click!

share|improve this answer
add comment

You may want to go to about:config and set dom.event.clipboardevents.enabled to false. This stopped the problems I was having with pages interfering with my clipboard.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.