3 ms·
I made a bookmarklet for that back when ChatGTP was introduced - https://news.ycombinator.com/item?id=33890678 https://news.ycombinator.com/item?id=33890678. It
by charles_f 9mo ago
I made a bookmarklet for that back when ChatGTP was introduced - https://news.ycombinator.com/item?id=33890678 https://news.ycombinator.com/item?id=33890678. It needs updating, but the gist should still work.
javascript:(function() {function match(text) {return text.match(/((chat\s?g[pt]{2})|claude|llm|gen\s?ai|((^|\s)ai(\s|$))|anthropic|mistral|gemini|open\s?ai|prompt\sengineer|prompt\sinject)/i)}; if (document.getElementsByClassName("comment-tree").length) { Array.from(document.getElementsByClassName("comtr")).filter(elt => match(elt.innerText)).forEach(e => e.parentNode.removeChild(e)); } else { Array.from(document.getElementsByTagName("a")).filter(elt => match(elt.innerText)).forEach(a => { const tr = a.parentNode.parentNode.parentNode; const table = tr.parentNode; const details = tr.nextSibling; const spacer = details?.nextSibling; table.removeChild(tr); if (details) table.removeChild(details); if (spacer)table.removeChild(spacer);});}})();