@hraness/sponge 0.6.8 → 0.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/capture/worker.js +154 -152
- package/dist/contracts/index.d.ts +2 -0
- package/dist/src/acquisition/capture.d.ts +4 -0
- package/dist/src/acquisition/capture.js +8 -2
- package/dist/src/acquisition/child-request.d.ts +5 -0
- package/dist/src/acquisition/normalize.js +3 -0
- package/dist/src/app/article.d.ts +2 -0
- package/dist/src/app/article.js +14 -3
- package/dist/src/browser/bridge.d.ts +48 -0
- package/dist/src/browser/bridge.js +90 -0
- package/dist/src/browser/host.d.ts +10 -0
- package/dist/src/browser/host.js +147 -0
- package/dist/src/browser/setup.d.ts +26 -0
- package/dist/src/browser/setup.js +103 -0
- package/dist/src/capture/types.d.ts +1 -1
- package/dist/src/cli/commands.js +84 -12
- package/dist/src/errors.d.ts +1 -0
- package/dist/src/errors.js +2 -0
- package/dist/src/pdf/handler.js +1 -3
- package/dist/src/store/queue.d.ts +2 -2
- package/dist/src/store/queue.js +7 -4
- package/dist/src/store/types.d.ts +5 -2
- package/dist/src/worker/basic.js +15 -0
- package/extension/background.js +180 -0
- package/extension/manifest.json +25 -0
- package/extension/popup.html +85 -0
- package/extension/popup.js +39 -0
- package/native/runtime-manifest.json +5 -5
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -57,6 +57,32 @@ a CAPTCHA, and gives wrong DNS answers to some public resolvers, so Sponge does
|
|
|
57
57
|
fetch from it. To use one of its copies, open it in a browser and save it as a PDF;
|
|
58
58
|
then `sponge add FILE.pdf` keeps it.
|
|
59
59
|
|
|
60
|
+
### Signed-in pages through your browser
|
|
61
|
+
|
|
62
|
+
The Sponge extension lets captures use the sign-ins you already have in Chrome
|
|
63
|
+
(or Brave, Edge, Arc, Vivaldi, Chromium). Sponge asks the extension for a page;
|
|
64
|
+
the extension loads it inside your browser and hands back only the page. Sponge
|
|
65
|
+
never reads cookies, passwords or the browser's profile.
|
|
66
|
+
|
|
67
|
+
1. `sponge browser setup` registers Sponge with each installed browser.
|
|
68
|
+
2. In `chrome://extensions`, turn on Developer mode, choose "Load unpacked" and
|
|
69
|
+
pick the `extension/` folder that `setup` prints.
|
|
70
|
+
3. `sponge browser status` (or `sponge doctor`) should say `connected`.
|
|
71
|
+
|
|
72
|
+
Once the extension is connected, a page that comes back thin from the public web
|
|
73
|
+
is tried again through the browser: first a plain fetch with your cookies, then a
|
|
74
|
+
muted background tab that runs the page's scripts and closes afterwards.
|
|
75
|
+
`refresh ITEM --browser` (or `add URL --browser`) skips the public web and reads
|
|
76
|
+
only through the browser. Its popup and right-click menu save the current page or
|
|
77
|
+
a link. If no browser is connected, a `--browser` job fails as `browser-offline`
|
|
78
|
+
and can be retried.
|
|
79
|
+
|
|
80
|
+
Pages captured through the browser start private. Any program running as you can
|
|
81
|
+
ask the extension for a page through Sponge's local socket, the same reach it
|
|
82
|
+
already has over your files. Turning off "Let Sponge load pages" in the popup
|
|
83
|
+
stops all background captures. `sponge browser remove` unregisters Sponge from
|
|
84
|
+
every browser.
|
|
85
|
+
|
|
60
86
|
Images use `sponge-asset:SHA256` references. `asset ITEM SHA256 > image.png`
|
|
61
87
|
retrieves verified bytes offline; `asset ITEM SHA256 --json` returns its metadata.
|
|
62
88
|
Unresolved remote images become unavailable markers, and captures retain partial
|