Force enable right-click (context menu) on JavaScripted page

Discussion of features in Mozilla Firefox
Post Reply
User avatar
dotcomian
Posts: 98
Joined: July 13th, 2003, 9:21 pm

Force enable right-click (context menu) on JavaScripted page

Post by dotcomian »

Fellas,

I don't know if someone brought up the issue or not...

Is there anyway that one can block javascript function that restricts right-click on some pages? It's satisfying to see that the builtin 'DOM' preference allow us to disable certain js functionailty like window resizing, status bar hiding, etc, but not on context menu restriction...
User avatar
shadytrees
Moderator
Posts: 11743
Joined: November 30th, 2002, 6:41 am

Post by shadytrees »

No, there isn't, but you can download Proxomitron (a proxy filter) which does have this feature.
User avatar
Spewey
Folder@Home
Posts: 5799
Joined: January 25th, 2003, 2:06 pm
Location: St. Paul, Minnes°ta

Post by Spewey »

I used to have a bookmarklet called "Zap Clicks" that sort of worked on this sometimes.
http://forums.mozillazine.org/viewtopic.php?t=7534

More Zap:
http://www.squarefree.com/bookmarklets/zap.html
robzilla
Posts: 109
Joined: January 18th, 2003, 3:02 am

Post by robzilla »

If you're using TBE, you can right-click on a tab, choose Permissions and uncheck Allow Javascript. This doesn't disable it permanently, though.

I've also found that on a lot of pages, FB context menu seems to work despite the right-click warning dialog that pops up.

Rob
User avatar
dotcomian
Posts: 98
Joined: July 13th, 2003, 9:21 pm

Post by dotcomian »

robzilla wrote:If you're using TBE, you can right-click on a tab, choose Permissions and uncheck Allow Javascript. This doesn't disable it permanently, though.

I've also found that on a lot of pages, FB context menu seems to work despite the right-click warning dialog that pops up.

Rob


Thanks for the responses.

I found that TBE allows saving status and permissions on pages, see if it worked out.

Rob, could you please elaborate on how one can still get the context menu?
User avatar
shadytrees
Moderator
Posts: 11743
Joined: November 30th, 2002, 6:41 am

Post by shadytrees »

Shot in the dark: web devs don't use the javascript correctly for disabling right click so it doesn't work.
Torisugari
Posts: 1634
Joined: November 4th, 2002, 8:34 pm
Location: Kyoto, Nippon (GMT +9)
Contact:

Post by Torisugari »

sag
Posts: 387
Joined: November 19th, 2002, 8:56 pm

Post by sag »

Yes, but it can't block disabling the context menu. My previous post on this is http://forums.mozillazine.org/viewtopic ... 119#115119
robzilla
Posts: 109
Joined: January 18th, 2003, 3:02 am

Post by robzilla »

Rob, could you please elaborate on how one can still get the context menu?


I think hao2lians response is correct. I was just saying that I seem to run across a lot of pages that have the "right-click restriction" javascript implemented incorrectly. So, even though you see the warning, it doesn't actually block you from using the context menu. I don't know anything about javascript, but it appears a lot of webmasters don't either.

Rob
User avatar
dotcomian
Posts: 98
Joined: July 13th, 2003, 9:21 pm

Post by dotcomian »

Thanks for the responses.

I've been trying all the possible method, and I came to a conclusion that the easiest solution is just to disable javascript; however there are sites that requires js to function properly, thus one cannot make the sacrifices. My best solution for me is to use TBE's Permission as suggested above, if one make the option correctly, permissions should be saved, and reused on each unique site. This is neat.

So, if the issue really is a bug, I hope someone can initiate the fix, and make more FB users happier.
Jesse
Posts: 398
Joined: November 4th, 2002, 7:00 pm
Location: Mountain View, CA
Contact:

Post by Jesse »

I just added a <a href="http://www.squarefree.com/bookmarklets/zap.html#restore_context_menu">"restore context menu" bookmarklet</a> to my <a href="http://www.squarefree.com/bookmarklets/zap.html">Zap Bookmarklets</a> page. dotcomian, I hope you re-enable JavaScript!
User avatar
dotcomian
Posts: 98
Joined: July 13th, 2003, 9:21 pm

Post by dotcomian »

Jesse wrote:I just added a <a href="http://www.squarefree.com/bookmarklets/zap.html#restore_context_menu">"restore context menu" bookmarklet</a> to my <a href="http://www.squarefree.com/bookmarklets/zap.html">Zap Bookmarklets</a> page. dotcomian, I hope you re-enable JavaScript!


Thanks Jesse, that's neat! another collection that goes to my bookmarks.
WeSaySo
Posts: 475
Joined: November 5th, 2002, 8:22 am
Location: Earth

Re: Force enable right-click (context menu) on JavaScripted

Post by WeSaySo »

dotcomian wrote:Is there anyway that one can block javascript function that restricts right-click on some pages? It's satisfying to see that the builtin 'DOM' preference allow us to disable certain js functionailty like window resizing, status bar hiding, etc, but not on context menu restriction...

You want Bug 86193. Please vote for it if you want that functionality, but avoid commenting unless you can provide code.
Ad astra
Post Reply