Cusser.net

Navigation

Extensions

Disable Targets For Downloads 1.0

Release date: 2005-06-29

Warning: this extension is obsolete

This extension was created in order to block new tabs and windows from being created when certain links were clicked on. The error is actually caused by webmasters, but was not detected and corrected by Firefox. As of Firefox 2.0, these extra tabs and windows are closed once the download begins.

The solution in Firefox 2.0 is a much better all-round fix than this extension ever was, so my advice would be to upgrade to Firefox 2.0 as soon as possible.

What it does

Disable Targets For Downloads eliminates a common error incurred by many webmasters, which ultimately causes blank windows to be opened when you try to download a binary file.

Details

When you click a link, it's target attribute is removed for these specific file extensions:
.zip .rar .exe .tar .jar .xpi .gzip .gz .ace .bin .doc .xls .mdb .ppt .iso .7z .cab .arj .lzh .uue

Gmail and vBulletin attachments are also handled by default.

You can also customise this extension to add or remove extensions by using the provided extension settings dialog. If you prefer, you can also access these settings by typing about:config into the address bar, finding the "disabletarget.extensions" preference, and changing the value. There must be a space between each extension that you add, but the extensions can be any length needed. Note: dont insert the dot ( . ) before any additions.

Advanced

This extension allows you to use regular expressions to match extensions and URLs/URIs in hyperlinks. This is useful for websites or forums that use non-standard download links, such as php redirects.

For example, the following strings are included by default for matching forum attachment links:
php\?act=Attach&type=post&id=.*
php\?attachmentid=.*

In addition, you can now match any part of an entire URL or URI by including your regexp between forward slashes ("/"). This means that you can now use this extension to prevent Gmail attachments and suchlike from spawning a blank window. Example:
/mail\/\?view=att&disp=attd/

Install

This extension is compatible with...

Application Versions Install Link
Firefox 0.8 - 1.5.0.* Install (11 KB)

Release history

If you are using an old version of Firefox, the latest version of this extension may not be compatible.
Previous versions are listed below for your convenience, along with the change history and compatibility details.

1.0 - 2005-06-29 [ Firefox 0.8 - 1.5.0.* ]

0.9 - 2004-12-16 [ Firefox 0.8 - 1.0+ ]

0.8 - 2004-11-06 [ Firefox 0.8 - 1.0 ]

0.7 - 2004-10-07 [ Firefox 0.8 - 1.0 ]

0.6 - 2004-09-06 [ Firefox 0.8 - 0.10 ]

0.5 - 2004-08-31 [ Firefox 0.8 - 0.10 ]

0.4.1 - 2004-07-16 [ Firefox 0.8 - 0.9 ]

0.3 - 2004-05-04 [ Firefox 0.8 - 0.9 ]

Credits

Contributors to the development of this extension: