News for hackers. Stuff that matters.
Re:For your next side project, make a browser extension by nassimsoftware on Sunday January 15, 2023 @03:01PM (#34392709)
If I want to build a cross platform browser extension is there an easier way then having to write it twice?
Re:For your next side project, make a browser extension by wongarsu on Sunday January 15, 2023 @03:07PM (#34392781)
Last time I wrote an extension (which is a while ago) the changes between the Chrome and Firefox version were minimal. And Edge takes unmodified Chrome extensions.

Obviously depends on the APIs you want, but a typical extension should be trivial to make compatible and package for both Chrome and Firefox.

Re:For your next side project, make a browser extension by lab on Sunday January 15, 2023 @08:41PM (#34395783)
* * *
Re:For your next side project, make a browser extension by insin on Monday January 16, 2023 @05:31AM (#34399136)
This _was_ easy the last time I created a new extension, as Firefox also supports the `chrome` namespace for extension APIs, but now that Chrome Web Store isn't accepting new Manifest V2 extensions, you'll at the very least have to have separate manifest files for MV2 and MV3 versions, and different implementations where relevant for MV2 and MV3 (depending on which features your extension needs - e.g. if your extension is really just a way to inject a content script into a page, you might just need separate manifest files).