# hn_hide_gpt.user.js -rw-r--r-- 588 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// ==UserScript==
// @name     HN - Hide GPT/LLM/AI
// @version  1
// @grant    none
// @include  https://news.ycombinator.com/*
// ==/UserScript==

document.querySelectorAll(".athing").forEach(e => {
	e.querySelectorAll("a").forEach(a => {
    if(a.innerText.search("GPT") > -1 || a.innerText.search("LLM") > -1 || a.innerText.search(" AI") > -1 || a.innerText.toLowerCase().search("language model") > -1) {
      console.log(a, a.innerText, e);
      e.style.display ="none";
      e.nextSibling.style.display = "none";
    }
  })
})