Dev question - Changing webpage with addon
Sorry if this is the wrong place to ask this but i couldnt find any other support website. (For addons)
I am working on making an addon and one of the things i'd like to do is add content into a textarea automatically.
I thought this would work: self.port.on("replacePage", function(message) {
document.body.innerHTML = "<textarea>" + content + "</textarea>";
});
But it doesnt. -or i dont know how to use it.
Could anyone help, or help me find a place to get help? Thanks
Chosen solution
This is the site you're looking for: https://discourse.mozilla-community.org/c/add-ons
Read this answer in context 👍 1All Replies (1)
Chosen Solution
This is the site you're looking for: https://discourse.mozilla-community.org/c/add-ons