Porting a Chrome Extension to Firefox Add-on
While Chrome and Firefox are two very different browsers, Chrome Extension and Firefox Add-on are now more similar than ever. Therefore, it is possible to transplant a Chrome extension to a Firefox Add-on and publish it to the Mozilla store with minor changes. This post is about how I transplanted my YouTube Comment Language Filter to Firefox.
Checking the Chrome incompatibilities
First, Firefox can run commands with the chrome namespace, such as chrome.tabs.onUpdated. However, a few codes still exist that Firefox cannot run. Firefox offers a handy website to check the chrome incompatibilities.