Re:More than 1 in 5 Show HN posts are now AI-related, get > ...
by FridgeSeal on Sunday July 06, 2025 @05:33PM
(#44484261)
Is your plugin public? Some friends and I were lamenting the AI-ification of HN, so is use anything that filtered it down in a heartbeat.
[ Parent
| on HN ]
Re:More than 1 in 5 Show HN posts are now AI-related, get > ...
by mrweasel on Monday July 07, 2025 @02:30AM
(#44487324)
No, but here's the tiny bit of code I just use. Improve as you please.
bad-ai.js
const bad_words = [ " ai", "ai ", "a.i.", "openai", "llm", "agentic", "claude", "large language models", "apple intelligence" ]
var elements = document.body.getElementsByClassName("titleline");
for (var i = 0; i < elements.length; i++){ var element = elements[i]; var text = element.children[0].text.toLowerCase();
bad_words.forEach(word => {
if( text.indexOf(word) > -1 ){
console.log("Bad-AI remove: " + text)
element.parentElement.parentElement.nextSibling.style.display = "none";
element.parentElement.parentElement.style.display = "none";
}
});
}manifest.json
{ "manifest_version": 2, "name": "No-Hacker-AI", "version": "1.0",
"description": "Hide stories on HackerNews, if they mention AI technologies.",
"icons": {
"96": "icons/bad-ai.png"
},
"content_scripts": [
{
"matches": ["*://news.ycombinator.com/*"],
"js": ["bad-ai.js"]
}
]
}