O'Reilly ePub Downloader (personal fork, v1.1.40.15)
====================================================

WHAT THIS IS
------------
An unofficial, self-hosted repair of the discontinued browser extension
"My Online Learning Downloader". The original was removed from the Chrome /
Edge stores and its author stopped maintaining it, so it silently broke.
This build re-points it at the still-live O'Reilly web endpoints and removes
the dead external calls.

SCOPE — PLEASE READ
-------------------
* Works for BOOKS (ePub) only. The book-download path is the one that has
  been tested and fixed. The inherited video/caption code paths are left
  untouched and are NOT verified.
* For PERSONAL USE ONLY, on content you already pay for with your own
  O'Reilly subscription, for offline reading.
* Do NOT redistribute, re-upload, share, or resell anything you download
  with this tool. Respect O'Reilly's Terms of Service.
* This is a fan repair of MPL-2.0 code. No warranty of any kind.

INSTALL (Edge / Chrome, Developer Mode)
---------------------------------------
1. Unzip this folder somewhere permanent.
2. Open  edge://extensions  (or  chrome://extensions ).
3. Toggle on "Developer mode" (top-right).
4. Click "Load unpacked" and select THIS folder (the one containing
   manifest.json).
5. You should now see "O'Reilly Downloader (自建版)".

USING IT
--------
1. Log in to https://learning.oreilly.com with a valid subscription.
2. Open any book page:  /library/view/<slug>/<ISBN>/
3. Click the extension's logo button on the page, wait, and the
   "<title>-<id>.epub" file lands in your Downloads folder.

IF SOMETHING LOOKS WRONG
------------------------
Open the browser Console (F12) on the O'Reilly page. This build logs with a
[OReillyDL] prefix. The first line should read:

    [OReillyDL] content script v1.1.40.15 LOADED | /library/view/...

IMPORTANT: after you reload / re-load the unpacked folder, you MUST hard
refresh the O'Reilly tab (Cmd/Ctrl + Shift + R). Reloading the extension does
not re-inject the script into already-open tabs, which makes it look like
your fix did nothing.

CREDITS / LICENSE
-----------------
Based on "My Online Learning Downloader" by My Chrome Extensions, Inc.
(MPL-2.0). Modified locally for personal use. Original donation/telemetry
endpoints removed.
