Lurker News
Paste the following into the console of any HN page - for annotated avatars on all HN comments. (self contained code)

  for(u of document.querySelectorAll('.hnuser'))for(u.prepend(c=document.createElement('canvas')),x=c.getContext('2d'),c.width=18,c.height=14,s=u.innerText,r=1,i=28+s.length;i--;i<28?r>>>29>X*X/3+Y/2&&x.fillRect(6+2*X,2*Y,2,2)&x.fillRect(6-2*X,2*Y,2,2):r+=s.charCodeAt(i-28,x.fillStyle='#'+(r>>8&0xFFFFFF).toString(16)))r^=r<<13,r^=r>>>17,r^=r<<5,X=i&3,Y=i>>2

Comments (493) 108 threads

Show all comments

Showing thread 4 of 108

alainchabat208 replies#
Reply here if you just want to see how your username looks like, so we avoid noise and keep that Show HN on the top. comments are really interesting
subinvarghesein1 reply#
Same here :D
Nic0#
Nice!
kukkukb#
It's me!
matsemann#
I like the idea, hope someone makes a userscript. Edit: my yellow avatar was a bit hard to see, though
Magellanic1 reply#
.
davidbarker#
Yours looks like a spy.
davidbarker#
I'm curious!
insaneoxt#
Bippity boppity this avatar is my property
severine#
Thanks!
albybisy#
:)
lwn#
Hello!
orang2tang1 reply#
test
balivandi#
what is this - a spaceship?
imnitishng1 reply#
I'm guessing mine is orange in color!!
imnitishng1 reply#
F
biztos#
Mine will be the orange one because I look good in orange.

[Edit: F!]

varamocs#
test
hawski#
Or change document.querySelectorAll('.hnuser') at the beginning to document.querySelectorAll('.hnuser, #me') so it will also show up beside your name when logged in at the top.
spiffotron#
please be good... edit: its a turnip
jrwr1 reply#
I wonder what mine will end up being
jragoon1 reply#
That's definitely a UFO
winkeltripel#
Yours is also a UFO.
Bockit#
Test post please ignore!
wccrawford#
Thanks! Wanting to see what mine would look like. :)

Continue this thread — 191 more replies