4 ms·
const boringPeople = [/* omitted */] Array.from(document.querySelectorAll('.hnuser')) .filter(elem => boringPeople.some(person => elem.textContent
by LAC-Tech 3y ago
const boringPeople = [/* omitted */]
Array.from(document.querySelectorAll('.hnuser'))
.filter(elem => boringPeople.some(person => elem.textContent === person))
.map(elem => elem.parentElement.parentElement.parentElement.parentElement)
.forEach(elem => elem.remove())
This worked to block the actual comment but not the whole thread.