mirror of
https://github.com/thegeneralist01/archivr
synced 2026-07-22 03:05:32 +02:00
single-file's initUserScriptHandler (in single-file-bootstrap.js) listens for 'single-file-user-script-init' and only then installs _singleFile_waitForUserScript. Without that dispatch our scripts' 'single-file-on-before-capture-request' listeners were never reached, so neither strip-scripts nor reader-mode Readability applied. Dispatch the init event at the top of strip-scripts (always present) and redundantly in READER_MODE_SCRIPT. Verified end-to-end: artifact for run_b3181d6d276e4e56a1a6c356ef9bbe8f has meta content="applied", max-width:680px CSS, 0 script tags. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||