0
I am developing my first Webextension(Firefox Add-on) and is working properly.
However, I’m in trouble when part of the site is browsed without giving refresh. That is, the extension does not work because it only works when you refresh or finish the page request.
My code is practically that:
node = document.getElementsByClassName("exemplo")[0];
if (node.parentNode) {
node.parentNode.removeChild(node);
}
I don’t know if there is any way or function to make the site call this code whenever change its state even not making a new request.