Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vdfs
on Aug 14, 2023
|
parent
|
context
|
favorite
| on:
Show HN: Little Rat – Chrome extension monitors ne...
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
judge2020
on Aug 14, 2023
|
next
[–]
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...
lapcat
on Aug 14, 2023
|
prev
[–]
Firefox add-ons actually recognize the "chrome" keyword.
weaksauce
on Aug 14, 2023
|
parent
[–]
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: