GreaseMonkey rules
Up to today, I couldn’t get the whole ‘greasemonkey hype’… I just couldn’t see what was so good about a couple of hacks, most of which were available as extensions before GM showed up.
Today, I have seen the light. Toying around with a fresh installation of Firefox, I wasn’t afraid of losing my entire firefox profile, so I decided to install GM and give it a try..
I installed a ton of user scripts, some of which I found nice, some totally useless..
But… I found one that totally rocks. I got the Disable Targets For Downloads from rhyley.org user script and modified it so it fixes the gmail attachment download link, makes it not open a new window (tab). I think it’s totally useless to open a new tab which won’t ever show a page, but will just open a download dialog (or whatever the web browser is configured to do with a new download.
If you’re the do-it-yourself type, install the script I mentioned above and then modify the 25th line of the code to read:
if ((l[i].href.indexOf("."+d[k])!=-1) || (l[i].href.indexOf("view=att&disp=attd")!=-1)) {
that should do it.
If JavaScript frightens you, you can just download my version directly. It’s only modification is the specified line and the comments to reflect what I’ve done with it. Here it is.






