Live data from Hacker News

Show HN: HN Avatars in 357 bytes

news.ycombinator.com

11–20 of 536 posts

Re: Show HN: HN Avatars in 357 bytes

#12
post #6

Wow this is really great! Noob question, but let's say I wanted to permanently load this JS in my browser? How would I achieve that? Grease monkey? Extension? Thanks :)

Should be really easy with grease monkey. I simply pasted the snippet into a new script and enabled it for this site. Works perfectly out of the box.

Re: Show HN: HN Avatars in 357 bytes

#14
post #6

Wow this is really great! Noob question, but let's say I wanted to permanently load this JS in my browser? How would I achieve that? Grease monkey? Extension? Thanks :)

There's a Wikipedia page greasemonkey-like things: https://en.wikipedia.org/wiki/Userscript_manager

Might try this one: https://chrome.google.com/webstore/detail/violentmonkey/jinj... I just installed it and it seems to work well.

Re: Show HN: HN Avatars in 357 bytes

#15

huh. is this something we can control?

In a way, yes. But from the way you phrased it, it sounds like you believe it is a HN feature, which it isn't. It's javascript running in your browser that dynamically generates the avatar via canvas2d and adds it wherever it finds the .hnuser class.

Re: Show HN: HN Avatars in 357 bytes

#18

huh. is this something we can control?

In a way, yes. But from the way you phrased it, it sounds like you believe it is a HN feature, which it isn't. It's javascript running in your browser that dynamically generates the avatar via canvas2d and adds it wherever it finds the .hnuser class.

ahh I see. Thank you.
Post reply on HN