Remove nodes fetched using document.querySelectorAll

Find html nodes using document.querySelectorAll and remove them.

var nodes = document.querySelectorAll('.someSelector');
nodes.forEach(node => node.parentNode.removeChild(node));
View this page on GitHub.
Posted .

Comments

Leave a Reply