Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Override site specific JavaScript right click context menu with browser specific right click context menu

Is there a way in Mozilla Firefox, Internet Explorer and/or Google Chrome to override the site specific right context menu (launched via JavaScript) so that the browser context menu shows instead? I want to be able to use the browser add-on options in the context menu, but some sites don't allow this. If you have any experience with any of these browsers, please respond and I will up-vote you.

One example:

Open Google Mail and right click a message in your inbox.

like image 695
MacGyver Avatar asked Nov 14 '22 07:11

MacGyver


1 Answers

The site admins generally do this for security reasons. However, you can get around this easily if you know bit of HTML / JavaScript. Just tweak your 'mousedown' / 'click' handler. In case of jQuery, you might want to disable 'contextmenu' event.

There are some browser extensions to achieve this, according to http://www.techpanache.com/how-to/enable-right-click-menu-on-chrome-and-firefox/:

  • Allow Right Click fro Chrome
  • RightToClick for FireFox
like image 174
Varunkumar Nagarajan Avatar answered Nov 16 '22 02:11

Varunkumar Nagarajan