MozillaZine

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

Discussion of features in Mozilla Firefox
dotcomian

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

Post Posted July 28th, 2003, 2:25 am

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...

shadytrees
Moderator

User avatar
 
Posts: 11743
Joined: November 30th, 2002, 6:41 am

Post Posted July 28th, 2003, 4:31 am

No, there isn't, but you can download Proxomitron (a proxy filter) which does have this feature.

Spewey
Folder@Home

User avatar
 
Posts: 5799
Joined: January 25th, 2003, 2:06 pm
Location: St. Paul, MinnesĀ°ta

Post Posted July 28th, 2003, 8:24 am

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

User avatar
 
Posts: 109
Joined: January 18th, 2003, 3:02 am

Post Posted July 28th, 2003, 2:13 pm

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

dotcomian

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

Post Posted July 28th, 2003, 7:04 pm

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?

shadytrees
Moderator

User avatar
 
Posts: 11743
Joined: November 30th, 2002, 6:41 am

Post Posted July 28th, 2003, 7:17 pm

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)

Post Posted July 28th, 2003, 7:27 pm


sag

User avatar
 
Posts: 386
Joined: November 19th, 2002, 8:56 pm

Post Posted July 28th, 2003, 9:50 pm

Yes, but it can't block disabling the context menu. My previous post on this is http://forums.mozillazine.org/viewtopic ... 119#115119

robzilla

User avatar
 
Posts: 109
Joined: January 18th, 2003, 3:02 am

Post Posted July 29th, 2003, 1:58 am

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

dotcomian

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

Post Posted July 29th, 2003, 7:46 pm

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

User avatar
 
Posts: 398
Joined: November 4th, 2002, 7:00 pm
Location: Mountain View, CA

Post Posted July 30th, 2003, 5:30 am

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!

dotcomian

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

Post Posted July 30th, 2003, 7:05 pm

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

Post Posted July 30th, 2003, 11:33 pm

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

Return to Firefox Features


Who is online

Users browsing this forum: No registered users and 2 guests