Handle links to CHM files
Status: Beta
Brought to you by:
lonecatz
This patch (against 0.2.3) enables CHM Reader to handle links to files with the '.chm'. extension.
Local files (i.e 'file://') are handled directly. Files with other protocols (e.g. 'http://') are downloaded (via the FF cache) in to a temporary directory and then loaded as local files.
Shift + Ctrl + Click skips the CHM Reader extension, triggering a normal download instead.
The code is modified from the relevant section of the "PDF Download" extension. (Note that this does NOT imply that I've implemented a GUI - I haven't.)
The replacement file.
Attached is the whole overlay.js file (rather than the patch file).
Make a backup of the original file (in '../extensions/{6e098d65-7d2d-46d4-ada0-2f882a29f795}/chrome/content/').
Then copy or move this file in to place and restart the browser.
File Added: overlay.js