# hn_hide_gpt.user.js -rw-r--r-- 800 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// ==UserScript==
// @name     HN - Hide GPT/LLM/AI
// @version  2
// @grant    none
// @include  https://news.ycombinator.com/*
// @exclude  https://news.ycombinator.com/item*
// ==/UserScript==

const words = [
  "gpt", "llm", " ai", "ai ", /\.ai/, "language model", "deep learning", "machine learning",
  "veo3", "claude", "copilot", /multimodal.*model/, "mcp", "vibe"
];


document.querySelectorAll(".athing").forEach(e => {
	e.querySelectorAll("a").forEach(a => {
    var txt = a.innerText.toLowerCase();
    for (w of words) {
    	if (txt.search(w) > -1) {
        console.log(a, a.innerText, e, w);
        e.style.display ="none";
        if (e.nextSibling) {
          e.nextSibling.style.display = "none";
        }
      }
    }
  })
})