Porting Addon to Other Browsers

I wrote a stupid little addon, and once I make a minor update, I am going to start looking at porting it to Opera/Chrome/etc.

It just adds some context menus, and access the clipboard contents and selected text.

It does not appear to be effected by Chrome’s implementation of Manifest v.3, so I was wondering how people handle maintaining different versions for different browsers.

Some questions:

  • What are the changes that need to be made typically?
  • Is there a way to make it run on different browsers, but still operate from the same code base?
  • Should I have a separate GitHub page for the source code (MIT license)?
  • What is likely to bite me in the butt when I try to do this?

If push comes to shove, I just do FF, but if it is not too much effort, I will look at porting.

This article may help in spotting some of the main issues: