docs
spader
docs | spader | |
---|---|---|
1 | 1 | |
1,463 | 6 | |
- | - | |
10.0 | 0.0 | |
over 6 years ago | about 1 year ago | |
JavaScript | Ruby | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
docs
-
Ask HN: Browser-extension creators, how do you write for multiple browsers?
I used WebExtension polyfill[0] when adapting my FF addon to Chrome and admittedly all the intricate differences between APIs still costed me half a day of work.
I managed to have it done with only a few places where I branch on navigator.vendor, but If I wanted to ship different versions to AMO and CWS, I'd make use 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...
spader
-
Ask HN: Browser-extension creators, how do you write for multiple browsers?
For our browser extension, The Camelizer, I wrote Spader: https://github.com/cosmic-shovel/spader
It lets me use Ruby in my html/css/js files, and also sass in the css, letting use use one codebase for all target browsers.
Definitely a work in progress, and lacks the exciting auto-reload functionality of other similar projects, but it works for us. Issuing one build command and having an extension for all our target browsers is pretty nice.
What are some alternatives?
webextension-polyfill - A lightweight polyfill library for Promise-based WebExtension APIs in Chrome
Ka-Block - A Safari extension that blocks an artisanal selection of advertising domains.
web-ext - A command line tool to help build, run, and test web extensions
ExtPay - The JavaScript library for ExtensionPay.com — payments for your browser extensions, no server needed.
webextensions-examples - Example Firefox add-ons created using the WebExtensions API