There are lots of interesting people on HN. Is there a browser extension or script (TamperMonkey?) that lets you create a tag for particular user that is rendered next to their name each time it occurs on the page? I believe Reddit had/has this feature but I haven't used it in a long time so I don't know.<p>Doesn't have to be fancy, just something that works. Can save data in localStorage.<p>EDIT: I use Firefox.
I haven't come across any, but its a good feature to have (and a fun coding challenge) so I put together this Tampermonkey script:<p><a href="https://github.com/lachlanmcdonald/hackernews-user-tags" rel="nofollow">https://github.com/lachlanmcdonald/hackernews-user-tags</a><p>(not thoroughly tested, so use at your own peril. HN runs in quirks mode and there is some nasty global namespaced JS. If you have any issues, do let me know)
<p><pre><code> // ==UserScript==
// @name HN brudgers
// @match https://news.ycombinator.com/*
// ==/UserScript==
for (let link of document.querySelectorAll('.hnuser')) {
if (link.innerText == 'brudgers' ) {
link.style.color = 'blue';
}
}
</code></pre>
Worth noting that this type of script is fragile.<p>Whenever HN changes it's HTML, CSS, Javascript, or code-generating code, it might stop working.