Hey all,

I'm coding a Firefox extension and I'm running into a problem. I've added a simple extra selection when you right click in the browser and I want it to execute some JS code.

That JS code is always going to be the same until I update the add-on with new JS code (meaning all the users will have to update their add-ons for it to work).

I want to make it more dynamic. I want it to execute JS code that is remotely hosted ex.

Code JavaScript:
oncommand="some_function_in_a_remotely_hosted_JS_file"

Of course, I can always just make the Javascript import from a remote host but then it won't quite be dynamic, and if something has changed on the remote host, then you need to restart the browser for it to reload the "new" JS code.

Can anyone point me in the right direction? Thanks a lot!