Tag Archives: chrome

3 cool tools for Chrome

All of them a must have:


Context menu disable with JQuery

I have found a ton of tutorials teaching how to disable the context menu on browsers and in all of them I have found one flaw:

Does not work with Opera

It’s an anoying situation that got me thinking and searching for a solution through most part of the day and with no luck.

The function is simple:

$(document).ready(function()
{
$(document).bind(“contextmenu”, function(e)
{
return false;
});
});

and it works with (tested):

and it does not work with (tested)

After a lot of research I have found why it does not work with Opera:

Opera (9.5) has an option to allow scripts to detect right-clicks, but it is disabled by default. Furthermore, Opera still doesn’t allow JavaScript to disable the browser’s default context menu which causes a usability conflict.

You can try to disable by disabling the mousedown event filtering only for Opera, but I do suggest a lot testing on this.

To complete just an extra note: this function does not bind the documents inside an iframe, so in this case you should complete the function by disabling the context menu in the iframe document as well.


Google Chrome first impression

I have just downloaded the Google Chrome browser and the first impression that I have is that it is insane fast. So to keep this short, some pros and cons.

 

Pros:

– Keep a visual history of the last links that you have been

– It’s insane fast

– Don’t have the menus up giving more space to browse

– I havent got any bugs so far

Cons:

– It’s not 100% CSS compliant, so you might need to check this browser as well when developing your websites

– The Chrome Inspector does not let you edit (Firebug still better)


%d bloggers like this: