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/
Works with
| Application | Versions |
|---|---|
| Firefox | 0.8 - 1.5.0.* |
Install
Install Now (11 KB)
Release history
1.0 - 2005-06-29
- New defaults (including Gmail attachments)
- Prevents some more false positives
0.9 - 2004-12-16
-
Now overrides
targets. - Support regexp for URLs/URIs.
0.8 - 2004-11-06
- Stopped dot in the file extension being parsed as a regexp wildcard
0.7 - 2004-10-07
- Fixed another bug with regexp matching
- Now handles image links (and more)
0.6 - 2004-09-06
- Fixed bug with regexp matching
0.5 - 2004-08-31
- Modify button now works in Settings UI
- Firefox 1.0PR Compatibility
0.4 - 2004-07-16
- Settings UI (thanks to TheOneKEA)
0.3 - 2004-05-04
- Support for Regular Expressions (thanks to MonkeeSage)
0.2 - 2004-03-16
- Now case insensitive for filenames and targets
- Improved algorithm, no longer requires the page to be fully loaded
0.1 - 2004-03-12
- Original release
Credits
Contributors to the development of this extension:
- MonkeeSage
- TheOneKEA (kakadu@gmail.com)