It would be neat if the code also applied to the username in the top right so I didn't have to make a spammy comment to see what it gives me. ;)
Show HN: HN Avatars in 357 bytes
11–20 of 536 posts
Re: Show HN: HN Avatars in 357 bytes
#12Wow 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 :)
Re: Show HN: HN Avatars in 357 bytes
#13Re: Show HN: HN Avatars in 357 bytes
#14Wow 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 :)
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
#15huh. is this something we can control?
Re: Show HN: HN Avatars in 357 bytes
#16Re: Show HN: HN Avatars in 357 bytes
#17Re: Show HN: HN Avatars in 357 bytes
#18huh. 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
#19Wow 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 :)
Re: Show HN: HN Avatars in 357 bytes
#20Setting it as
javascript:;void(0);
can make it useful as a boomarklet :)