Installing the Bookmarklet

Installing the bookmarklet takes a small bit of work, but you'll only have to do this once. The process has two steps. First you'll create a bookmark for this page, then you'll edit the URL of the saved bookmark so that it contains only the JavaScript code which makes up the bookmarklet.

Bookmark this page:

  1. In Safari, add a bookmark to this page by tapping the plus (+) button on the bottom toolbar.
  2. Pick the "Add Bookmark" choice from the dialog that appears.
  3. Choose an easy to remember folder to store the bookmark and tap the Save button.

Edit the saved bookmark:

Now you'll edit the bookmark you just created to remove this page's URL from the beginning, leaving only the Javascript behind.

  1. Tap the Bookmarks icon on the bottom toolbar.
  2. Navigate to the folder where you saved your bookmark and tap the Edit button.
  3. Tap on the row for your new bookmark in order to edit its properties.
  4. Edit the URL for the bookmark to remove everything up to and including the question mark. The new bookmark URL must start with "javascript:"
  5. Tap the "back" button in the top navigation bar and top Done to exit edit mode.

Using the Bookmarklet

That's it! Your bookmarklet is now ready to use. In order to use it, first go to a page which contains one or more PDB or Mobi links. Tap the bookmark icon on the Safari toolbar and select the bookmarklet you just created.

When you trigger the bookmarklet, all supported links on the page will be converted into a form which BookShelf can download. The links won't look any different, but if you follow a link to a PDB file, Safari will close and BookShelf will open in its place. The file you selected will be downloaded to a new folder in BookShelf and be ready to read.

You can try it out with the following link:

Unintended Consequences: Five Years Under the DMCA

If you follow the above link before triggering the bookmarklet, Safari will complain that it cannot download this file. After triggering the bookmarklet, the link should open in Safari and download.

Thanks to,, and robotechmaster from the forums for the trail of breadcrumbs that lead to this idea!

Start Here:
Quick Start Help

Start Shelf Server

New in BookShelf 2.0:
Download Books without using ShelfServer

iTunes iconClick to Install BookShelf with iTunes or AppStore

Latest News

[All News]

Generated from site version 2548M on 2009-Dec-08 21:55:19-0500.