Skip to content
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

Run as a browser extension #51

Open
seffs opened this issue Jan 19, 2023 · 1 comment
Open

Run as a browser extension #51

seffs opened this issue Jan 19, 2023 · 1 comment

Comments

@seffs
Copy link

seffs commented Jan 19, 2023

Hi there!

Would it be possible to make a browser extension out of this? I've tried some JS and HTML injectors without success. There might be a reason for this given that there is no add-on out there that does this, but as a non-webdev I have no clue why.

@chase-moskal
Copy link
Owner

hello 👋
i think this should be possible.

if you want direct access to google libwebp's build, it is here: https://github.com/chase-moskal/webp-hero/tree/master/libwebp/dist

  • it's available as a commonjs module
  • it's also available as an es module
  • both are ASM builds, so they should be quite compatible

for all of webp-hero's code, you can browse the files available in the npm package here: https://unpkg.com/browse/[email protected]/

  • there's a commonjs distribution and also es modules
  • these include the webp machine and other polyfilling features

there should be some details in the webp-hero readme about importing these modules directly, which is the strategy i imagine your extension would want to take (although i've never actually made a browser extension, i'm unfamiliar with how that works).

let me know if you have any questions, and keep me posted about your progress 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants