New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use SingleFile API outside of extension context? #773
Comments
|
You should be able to run SingleFile on your server as a CLI tool by following the documentation here: https://github.com/gildas-lormeau/SingleFile/tree/master/cli. You could also modify the existing puppeteer code used by the CLI tool here: https://github.com/gildas-lormeau/SingleFile/blob/master/cli/back-ends/puppeteer.js. Basically the |
Thanks for your prompt reply.
|
|
|
The answer in the linked thread did the trick, thanks @gildas-lormeau, and brilliant work. Is there a reason why certain parts of the page can't be saved as consistently in comparison to when I'm using the extension directly? e.g. |
|
@ababushkin The reason is that I provided the minimum thing to do to use SingleFile outside an extension context. In order to handle custom elements with a shadow root (e.g. |
Is your feature request related to a problem? Please describe.
I'm trying to use SingleFile on my server but I can't seems to get it to work. Do you know how I could get it to work on my server? I could use puppeteer as the browser.
Describe the solution you'd like
Something simple like
The text was updated successfully, but these errors were encountered: