DEV Community

Discussion on: I made a browser extension to hide reactions and notifications on Dev.to 💆

Collapse
 
moopet profile image
Ben Sinclair

There's always drilling down through tags searching innerText for a pattern. I did that on Quora to get rid of some of their junk panels before. It's expensive on an infinite-loading page, so what I was doing was adding a class (or attribute, I forget) to everything after processing so it wouldn't have to search again when the DOM got updated. I don't have that code anymore but it's relatively straightforward, just kludgey.