No description
| firefox | ||
| images | ||
| safaribooks | ||
| scripts | ||
| .gitignore | ||
| background.js | ||
| content.js | ||
| index.css | ||
| index.html | ||
| index.js | ||
| manifest.json | ||
| offscreen.html | ||
| offscreen.js | ||
| README.md | ||
Reilly SafariBooks Downloader (Chrome, Edge & Firefox)
This extension ports the safaribooks.py script into a browser workflow so you can download EPUBs directly from learning.oreilly.com in Chrome, Edge, or Firefox.
Installation (Chrome or Edge)
- Clone / download this repository to your computer and note the folder path (e.g.
C:\Users\joey\Projects\reilly-extension). - Open the browser's extensions page:
- Chrome:
chrome://extensions/ - Edge:
edge://extensions/
- Chrome:
- Enable Developer mode (toggle in the top-right corner).
- Click Load unpacked and select this project folder.
- The "Reilly SafariBooks Downloader" icon should appear in the toolbar.
Installation (Firefox)
The packaged .xpi is unsigned, so the Firefox release channel blocks it. Pick the approach that matches your setup:
-
Temporary load (any Firefox build)
- Open
about:debugging#/runtime/this-firefox. - Click Load Temporary Add-on... and select
firefox-extension.xpi. - Keep the tab open while testing; Firefox unloads temporary add-ons after a restart.
- Open
-
Persistent install for testing (Firefox Developer Edition or Nightly)
- Switch to Developer Edition or Nightly—only these builds allow signing to be disabled.
- In
about:config, setxpinstall.signatures.requiredtofalse. - Open
about:addons, click the gear icon, and choose Install Add-on From File.... - Pick
firefox-extension.xpi, confirm the prompts, then flip the preference back totruewhen you return to normal browsing.
-
Permanent install on Firefox Release
- Sign the add-on through Mozilla’s Add-on Developer Hub (https://addons.mozilla.org/developers/) or
web-ext sign. - Use the signed
.xpithat Mozilla returns; only signed builds will install on stable Firefox.
- Sign the add-on through Mozilla’s Add-on Developer Hub (https://addons.mozilla.org/developers/) or
Usage
- Log into learning.oreilly.com in the same browser profile.
- Open any book page (URL containing
/library/view/). - Open the extension popup:
- The book ID is auto-detected and pre-filled when possible.
- Adjust theme or Kindle tweaks if desired.
- Click Verify Session & Download. The EPUB saves using the title, author, and ID.
- A “Download EPUB” button is also injected beside the book title (and as a floating action button) on each book page for quick access.
Notes
- The extension uses your authenticated cookies; ensure you are signed in before downloading.
- If an image fetch fails, the downloader logs each attempt and tries alternate URLs.
- Placeholder icons live in the
images/directory—swap them out with custom artwork if you prefer.