April 22, 2011, 11:56 a.m.
posted by jared
Fix Broken Pop-up Links
A broken pop up looks like this:
<a href="http://youngpup.net/" onclick="window.open(this.href); return false;"> go to youngpup.net </a>
Running the Hack
Before installing the script, create a file called testpopup.html with the following contents:
Now, install the user script (Tools Install This User Script) and refresh the test page. Hover over the link again, and you will see in the status bar that the link now points directly to the URL, as shown in Figure.
Fixed pop-up link
This means you can right-click the link and open it in a new tab, save the target page to your local computer, or print it. When you click the link directly, it still opens an annoying pop-up window, as the developer intended.
Hacking the Hack
Styled pop-up link