firefox addon - Use Remote Content Script File/Javascript in Page-Mod -
is there way use remote javascript file content script page-mod api?
i trying build simple addons own use automate repetitive stuff. because pages modding change time time, , need updating "content script" javascript accordingly, nice if had edit on server , addon/extension work again without editing , repacking xpi. i'm pretty sure able hack accomplish this, if there easy way i'm ears :)
the content script should never remote script, security vulnerability. content script can insert remote script web page:
var pagemod = require("page-mod"); pagemod.pagemod({ include: "...", contentscript: 'var script = document.createelement("script");'+ 'script.src = "...";'+ 'document.body.appendchild(script);' });
Comments
Post a Comment