3 ms·
Is there some dynamic equivalent of document.querySelectorAll("section") JS-based DOM filtering, that listens to websites building new UI elements through dynam
by nyanpasu64 3y ago
Is there some dynamic equivalent of document.querySelectorAll("section") JS-based DOM filtering, that listens to websites building new UI elements through dynamic loading and applies the filter on newly added (or modified?) DOM elements (much like how CSS rules automatically cascade when HTML elements are added and removed)?
- ajayyy 3y agouBlock Origin filter type called has-text
- kevindamm 3y agoProbably you want MutationObserver: https://dom.spec.whatwg.org/#interface-mutationobserver https://dom.spec.whatwg.org/#interface-mutationobserver
- n_plus_1_acc 3y agoLook up MutationObserver