Hacker News new | ask | show | jobs
by utopiah 173 days ago
> HN with a hard rule against AI posts.

Greasemonkey / Tampermonkey / User Scripts with

Array.from( document.querySelectorAll(".submission>.title") ).filter( e => e.innerText.includes("AI") ).map( e => e.parentElement.style.opacity = .1)

Edit: WTH... how am I getting downvoted for suggesting an actual optional solution? Please clarify.

1 comments

Notably this doesn't match the current thread.
Expand e.innerText.includes("AI") with an array of whatever terms you prefer.
Could always run the posts through a LLM to decide which are about AI :-p