Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


According 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/Web...


Firefox add-ons actually recognize the "chrome" keyword.


they actually have a js polyfill that lets you use promise based `browser` keyword in chrome too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: