Script Summary: Prevents Firefox from opening blank javascript pages when using middle click, and tries to parse the javascript code to find the actually linked page or picture (when possible)
Version: 1.2
One of the most annoying things on the web are JavaScript-based image galleries. Often, you can’t middle-click single images in order to open them in background tabs, because Firefox will open a blank javascript tab.
This is what JavaScript Middle Click Fixer, a Greasemonkey extension for Firefox, tries to fix.
If the thumbnail image contains a JavaScript command (onclick or href=”javascript:…”), this extension reads the linked picture from the code (when possible), and opens it in a new tab.
If a linked image is not found, this extension forces the browser to use the same tab, so the JavaScript code runs properly.
Requires Firefox 4 and Greasemonkey or Scriptish.



