Those who often download torrents have probably noticed that Firefox doesn’t work on many sites when setting the “Run automatically for all files of this type” checkbox in the “Open File” dialog box. This leads to the fact that every time trying to open a torrent file in the desired program automatically, for example from the same
rutracker.org , you have to click on the “OK” button:
Therefore, made a small extension that solves this problem.
You can download it from this link:
NormalOpenInDialog
Works with Firefox: 3.0 - 9. *
')
A few words about how the extension works.
A long time ago there is a
bug in Firefox (besides there are a lot of them there still on this topic) due to which the “Automatically execute for all files of this type” checkbox does not work. The essence of the bug is that if the
Content-Disposition header is present in
the downloadable file headers, this flag is ignored. Obviously, there is a simple solution to get rid of this bug - you need to delete this header. Actually this extension does. But by default it deletes this header only for torrent files.
If you want it to work for other extensions, then in
about: config you need to change the
normalopenindialog.ignoreExt parameter
by adding the necessary extensions, separating them with a vertical line. For example:
torrent | pdf | doc
In general, the
Content-Disposition header is used by Firefox when saving to generate the file name. Therefore, after installing the extension, if you try to save the torrent file, Firefox suggests instead of
[rutracker.org] .t1215826.torrent for this file name:
dl.php .
It is worth considering if there is a need to save torrent files or any other files that will be added to the
normalopenindialog.ignoreExt list.
Ps. A little later, when I’ll better understand the expansion, I want to completely redo the extension. So that it does not cut the headers, but intercepts the appearance of the dialog box "Open file" and itself pressed the "OK" button. In this case, it will work absolutely for all extensions.