So this is my current jquery code, which I would like in vanilla js.
var elems = [];
$("*").not('script, style, iframe').each(function() {
elems.push($(this)[0]);
});
the closest alternative I found was
document.getElementsByTagName("*")
but that still has iframe, style, and script tags, which I don't want in my array.
Also, I can't just remove them by their tag name specifically, as they might have an id or a class associated with them.