2 ms·
You could turn this little JavaScript snippet into a Chrome extension that runs only on https://news.ycombinator.com/show https://news.ycombinator.com/show pret
by tedmiston 11y ago
You could turn this little JavaScript snippet into a Chrome extension that runs only on https://news.ycombinator.com/show https://news.ycombinator.com/show pretty easily.
First inject jQuery (or similar):
var s = document.createElement("script");
s.src = "//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.head.appendChild(s);
Then remove Show HN from titles:
$("td.title > a").each(function(){ this.text = this.text.replace("Show HN: ", "") });