Load Js File from data folder in Firefox Extension

2019-09-20 15:39发布

问题:

So I have this firefox extension that changes user default search and open new tab in a bootstrapped.js

But I need to load a javascript file /data/sc.js how can I add that to the boostrapped.js. Any help will be appreciated.

回答1:

There are many different ways to load scripts in addons. MDN page covering them