Ask HN: Any extension or script that lets you tag HN users?
Doesn't have to be fancy, just something that works. Can save data in localStorage.
EDIT: I use Firefox.
Doesn't have to be fancy, just something that works. Can save data in localStorage.
EDIT: I use Firefox.
https://github.com/lachlanmcdonald/hackernews-user-tags
(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)
The tooltip that pops up can be quite off sometimes in terms of position, but otherwise it seems to work really well!
You should do a Show HN for sure!
EDIT: you're now tagged as "tag-legend"
I fixed a number of issues around styling, positioning, and some conflicts with HN's own JavaScript:
https://github.com/lachlanmcdonald/hackernews-user-tags/blob...
(Good idea, I'll do a little more testing and post a Show HN.)
// ==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';
}
}
Worth noting that this type of script is fragile.Whenever HN changes it's HTML, CSS, Javascript, or code-generating code, it might stop working.