Thursday, 21 December 2017

javascript - Restore my browser's middle-click behaviour

Some sites do annoying things with JavaScript, like replace the default behaviour of the browser to open a new tab on middle click, with code such as:


 onclick="window.location.href='http://stackoverflow.com'; return false;">
Stack Overflow


Is there any way I can give control back to my browser so that I'm the one that decides when a new tab gets opened or not? Right now I have to resort to either right clicking on the link and selecting Open link in new tab, or middle clicking on my browser's Back button after being rudely navigated away.

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...