Convert Chrome Extension To Firefox

A specialized Rust-based CLI tool that can automatically detect Chrome-only APIs and provide shims for Firefox compatibility. 2. Update the manifest.json File

// Use this to support both chrome.* and browser.* function getBrowser() window.chrome; convert chrome extension to firefox

While Chrome has moved heavily toward Manifest V3, Firefox still offers robust support for Manifest V2, which may be more stable for certain background script functionalities. A specialized Rust-based CLI tool that can automatically

| Chrome API | Firefox Equivalent / Fix | |------------|--------------------------| | chrome.* | browser.* (Firefox supports both, but browser.* is promise-based) | | chrome.declarativeNetRequest | Limited; prefer webRequest + blocking (MV2) or adjust rules | | chrome.identity | browser.identity (similar) or web-ext OAuth redirect | | chrome.storage.local | Identical (supported) | | chrome.cookies | Identical | | chrome.tabs.query | Identical | | chrome.runtime.sendMessage | Works; cross-browser messaging via browser.runtime.sendMessage | | Chrome API | Firefox Equivalent / Fix