5 ms·
In most cases, just adding "var chrome = browser;" to the top of each js files would make it work for firefox, which is just a copy of Chrome Extension APIs wit
by vdfs 3y ago
In most cases, just adding "var chrome = browser;" to the top of each js files would make it work for firefox, which is just a copy of Chrome Extension APIs with slight changes
- lapcat 3y agoFirefox add-ons actually recognize the "chrome" keyword.
- weaksauce 3y agothey actually have a js polyfill that lets you use promise based `browser` keyword in chrome too.
- judge2020 3y agoAccording to mdn[0], Firefox does not support onRuleMatchedDebug so just importing the code likely won't work. 0: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/onRuleMatchedDebug https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...
- deleted 3y ago[deleted]