Menu

#2 Handle links to CHM files

closed-accepted
nobody
None
5
2009-01-27
2008-10-20
No

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.)

Discussion

  • Jonathan Sambrook

     
  • Jonathan Sambrook

    The replacement file.

     
  • Jonathan Sambrook

    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

     
  • Ling Li

    Ling Li - 2009-01-27
    • status: open --> closed-accepted
     

Log in to post a comment.

MongoDB Logo MongoDB