3

Is there a way to enable the Chrome's default right click context menu in sites that overrides it creating their own context menu? (Google applications, Youtube...)

I find it very useful to be able to right click to inspect the element rather than having to go to F12, select the magnifying glass and find the element I want to inspect.

I've been checking some Chrome extension such as:

None of them seem to work in a basic example such as this one.

//context menu for orders table
$(document).on("contextmenu", "body", function (event) {
    //we won't show the default context menu
    event.preventDefault();

    $('#menu').dropdown('toggle')

    //showing it close to our cursor
    $('#menu').dropdown('toggle').css({
        top: (event.pageY) + "px",
        left: (event.pageX) + "px"
    });
});
Alvaro
  • 40,778
  • 30
  • 164
  • 336
  • Maybe it's only possible to clear the event handlers attached with jQuery: `delete $._data(document, "events").contextmenu`. This must be executed in the webpage context of course by injecting the code [as page script](http://stackoverflow.com/a/9517879/3959875) – wOxxOm Sep 08 '15 at 10:53
  • Enable right click works for me on that demo. – Daniel Herr Sep 08 '15 at 21:33
  • It works for me on the second right-click. I would sacrifice my first born for an extension that does this perfectly. –  Feb 07 '17 at 22:31
  • Tested it on the site that made me come here, which is an implementation of Drupal using CKE, and it doesn't work at all. :( –  Feb 07 '17 at 22:34

0 Answers0