mozilla/webextension-polyfill
View on GitHub ↗ ★ 3,067 JavaScript archived
A lightweight polyfill library for Promise-based WebExtension APIs in Chrome
22 mentions on Hacker News by 18 people: 1 story, 21 comments · first 2017-08-01 · latest 2025-06-22
20082026
-
Not yet! there are ways to do it with https://github.com/mozilla/webextension-polyfill but i want to focus on one thing at a time for now! BTW firefox was my main driver before starting develop for the web, then i realized it has a 5%…
comment by k1rd · 2025-06-22 · in Show HN: Kichan.ai Chrome extension to generate and inject userscripts -
…on Firefox [1] [2] but I fixed that _easily_ by getting the crx file, unpacking it, then adding the https://github.com/mozilla/webextension-polyfill to the extension to make it cross-browser. It's easy enough to make an extension work on…
comment by alin23 · 2025-01-14 · in I Switched to Firefox and Never Looked Back -
…(although you can find that in other comments I left under this post). The polyfill library itself: https://github.com/mozilla/webextension-polyfill Which if included allows you to swap out `chrome` callback based calls for promise based…
comment by creesch · 2024-08-21 · in Plasmo – A framework for building modern Chrome extensions -
…[1] https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web... [2] https://github.com/mozilla/webextension-polyfill [3] https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...
comment by creesch · 2024-08-21 · in Plasmo – A framework for building modern Chrome extensions -
…very little adjustment on firefox. It becomes even easier when you use mozilla's polyfill library https://github.com/mozilla/webextension-polyfill Then you can just target the promise based webextension syntax and as long as you still…
comment by creesch · 2024-07-23 · in Button Stealer -
…this extension to Firefox should be relatively straightforward using the webextension polyfill: https://github.com/mozilla/webextension-polyfill
comment by dedoussis · 2023-12-20 · in Show HN: Chrome Reaper -
Indeed I have issue here. Firefox maintain a library for unified extension API https://github.com/mozilla/webextension-polyfill Their type definition for HAR request isn't exported https://github.com/DefinitelyTyped/DefinitelyTyped/blob/mas…
comment by a_c · 2023-10-26 · in Show HN: OpenAPI DevTools – Chrome extension that generates an API spec -
…cool, bundle it with webextension-polyfill [0] and you can release it as a decent NPM package. [0] https://github.com/mozilla/webextension-polyfill
comment by Raed667 · 2022-07-05 · in Show HN: Typed React useStorage hook for Chrome extensions -
…be imperfect, and edge cases are abundant. [1]: https://www.w3.org/community/webextensions/ [2]: https://github.com/mozilla/webextension-polyfill
comment by coldsauce · 2022-06-03 · in Show HN: Plasmo – a framework for building modern Chrome extensions -
…It does get a bit trickier if you also want to incorporate TypeScript [1] or React however. [0] https://github.com/mozilla/webextension-polyfill [1] https://github.com/Lusito/webextension-polyfill-ts
comment by cercatrova · 2022-03-19 · in It’s Like GPT-3 but for Code – Fun, Fast, and Full of Flaws -
…of something like DefinePlugin[1] for webpack to include/exclude code based on build target. [0] https://github.com/mozilla/webextension-polyfill/ [1] https://github.com/webpack/docs/wiki/list-of-plugins#definep...
comment by klntsky · 2022-02-12 · in Ask HN: Browser-extension creators, how do you write for multiple browsers? -
…APIs to be promise based (and provides a nice helpful library for Chrome/Edge/Safari support: https://github.com/mozilla/webextension-polyfill ) which... doesn't work on their platform. Doubly ironic, since the result is that most FF…
comment by horsawlarway · 2021-09-25 · in Firefox Addons Unable to Update, Undisclosed AMO Issues -
Yes: https://github.com/mozilla/webextension-polyfill
comment by Vinnl · 2021-05-28 · in Manifest v3 Update -
…So you have to port your Chrome extension to use 'browser' and use the following polyfill: https://github.com/mozilla/webextension-polyfill Here's some incompatibilities between Chrome and Firefox to consider:…
comment by carl8 · 2021-01-05 · in How to convert existing web extensions for Safari -
For more information and tools, see https://youtu.be/6jgBM8twUIQ https://github.com/mozilla/webextension-polyfill
comment by gabrielsroka · 2020-11-26 · in Mozilla/web-ext: A command line tool to help build, run, and test web extensions -
…to bring the browser namespace into chrome if you want to use promises over function callbacks. https://github.com/mozilla/webextension-polyfill
comment by weaksauce · 2020-05-22 · in Things I wish I knew before making a paid extension (2019) -
…more work than I expected to be honest. I wish I had started originally using Mozilla's polyfill: https://github.com/mozilla/webextension-polyfill
comment by jsomau · 2020-03-22 · in Ask HN: What projects are you working on now? -
▲ 1
Ask HN: What do you use to facilitate creating browser extensions?story by proszkinasenne2 · 2020-02-10 · 0 comments
-
…= self.browser; } else { self.browser = self.chrome; } Instead of using a polyfill like that one https://github.com/mozilla/webextension-polyfill ?
comment by proszkinasenne2 · 2019-06-17 · in uBlock Origin 1.20 -
…Chrome but it was missing some important apis last I checked (sessions and optional permissions). https://github.com/mozilla/webextension-polyfill
comment by reblws · 2018-02-07 · in Show HN: An extension to turn your LinkedIn into a resume -
…to use the browser.* APIs on both Chrome and Firefox using Mozilla's web extensions polyfill. https://github.com/mozilla/webextension-polyfill The biggest challenge for me was addressing browser incompatibilities and Firefox bugs. This is…
comment by eejdoowad · 2017-08-07 · in Porting a Chrome Extension to Firefox -
…mozilla devs that port the browser namespace and promise based api calls over to chrome if needed. https://github.com/mozilla/webextension-polyfill
comment by weaksauce · 2017-08-01 · in Browser Extensions Standard