News for hackers. Stuff that matters.
Re:Show HN: HN Avatars in 357 bytes by INTPenis on Monday March 14, 2022 @05:46AM (#30670351)
Hah! I got a really cool little icon that looks almost like the cassette tape pirate logo of Piratbyrån back in the day. I have old t-shirts with that logo.

MAKE. THIS. PERMANENT!

On the functional side, this really helps you see who is who in a long threaded discussion. Your eye is much quicker at following the little color icons than their names.

Re:Show HN: HN Avatars in 357 bytes by zicxor on Monday March 14, 2022 @04:46PM (#30678033)
I made a chrome extension of this! So it won't disappear when you refresh the page: https://github.com/ekofi/hn_avatar_ext/
Re:Show HN: HN Avatars in 357 bytes by riidom on Monday March 14, 2022 @08:49PM (#30680480)
Works great, thanks
Re:Show HN: HN Avatars in 357 bytes by zicxor on Wednesday March 23, 2022 @04:51PM (#30783187)
You are welcome :)
Re:Show HN: HN Avatars in 357 bytes by WithinReason on Monday March 14, 2022 @07:22AM (#30671030)
> Hah! I got a really cool little icon that looks almost like the cassette tape pirate logo of Piratbyrån back in the day.

I think it's a skeleton holding his arms up!

edit: Looks like I'm some green bug-monster

Re:Show HN: HN Avatars in 357 bytes by bertman on Monday March 14, 2022 @07:11AM (#30670935)
>MAKE. THIS. PERMANENT!

I second this. (Also I wanted to see what my avatar looks like, sry)

Re:Show HN: HN Avatars in 357 bytes by gaetgu on Monday March 14, 2022 @11:33AM (#30673620)
Truly unacceptable. (I look like an alien head!)
Re:Show HN: HN Avatars in 357 bytes by ChrisClark on Monday March 14, 2022 @02:08PM (#30675821)
But Space Invaders is a classic!
Re:Show HN: HN Avatars in 357 bytes by amanzi on Monday March 14, 2022 @08:30PM (#30680310)
Only commenting so I can see my avatar...
Re:Show HN: HN Avatars in 357 bytes by riidom on Monday March 14, 2022 @08:36PM (#30680356)
How dare you, you cyan flower vase on wheels :) I'm a spiky small yellow watchtower, yay.
Re:Show HN: HN Avatars in 357 bytes by jimmydorry on Monday March 14, 2022 @10:33PM (#30681101)
And me? A green butterfly?
Re:Show HN: HN Avatars in 357 bytes by riidom on Tuesday March 15, 2022 @05:22AM (#30683230)
Yup. Or a trophy/ a goblet maybe? Not sure if green stands for 1st, 2nd or 3rd price though, up to you to decide :)
Re:Show HN: HN Avatars in 357 bytes by arispen on Tuesday March 15, 2022 @06:05AM (#30683489)
hi everyone :) I am a happy jumping frog :)
Re:Show HN: HN Avatars in 357 bytes by cugs on Tuesday March 15, 2022 @05:41PM (#30692154)
Commenting to see mine. Edit: Excellent! It's a blob.
Re:Show HN: HN Avatars in 357 bytes by 2fast4you on Wednesday March 16, 2022 @12:17PM (#30700709)
Let's see what mine is Edit: I love it! A little bug :)
Re:Show HN: HN Avatars in 357 bytes by stemlord on Wednesday March 16, 2022 @10:54PM (#30707118)
Looks like Shrek's forehead. Posting for my own avatar reveal...
Re:Show HN: HN Avatars in 357 bytes by ashishwt on Friday March 18, 2022 @07:50AM (#30720973)
I am an inverted android?
Re:Show HN: HN Avatars in 357 bytes by simcop2387 on Monday March 14, 2022 @12:48PM (#30674706)
This should be pretty easy to make into a userscript if browsers still support that. I haven't checked on that in half a decade or so

also i wanted to see mine too

Re:Show HN: HN Avatars in 357 bytes by romellem on Monday March 14, 2022 @12:29PM (#30674449)
This is fun, and can easily be added as a userscript. I might look to do that a little later.
Re:Show HN: HN Avatars in 357 bytes by notsound on Monday March 14, 2022 @12:41PM (#30674615)
// ==UserScript== // @name HN icons // @namespace https://news.ycombinator.com/* // @version 0.1 // @description try to take over the world! // @author some people on HN // @match https://news.ycombinator.com/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // ==/UserScript==

(function() { // Initial concept is from: https://news.ycombinator.com/item?id=30668137 (tomxor) // The script we are using is from: https://news.ycombinator.com/item?id=30670079 (onion2k) 'use strict'; let observer = new IntersectionObserver( (entries) => { entries.forEach((entry, i) => { if (entry.isIntersecting) { const p = 2; const c = document.createElement('canvas'); const x = c.getContext('2d'); c.width = 18; c.height = 14; const s = entry.target.innerText; const r = 1;

            if (s) {
            for (
                let s = entry.target.innerText, r = 1, i = 28 + s.length;
                i--;

            ) {
                // xorshift32
                (r ^= r << 13), (r ^= r >>> 17), (r ^= r << 5);
                const X = i & 3,
                Y = i >> 2;
                if (i >= 28) {
                // seed state
                r += s.charCodeAt(i - 28);
                x.fillStyle =
                    '#' + ((r >> 8) & 0xffffff).toString(16).padStart(0, 6);
                } else {
                // draw pixel
                if (r >>> 29 > (X * X) / 3 + Y / 2)
                    x.fillRect(p * 3 + p * X, p * Y, p, p),
                    x.fillRect(p * 3 - p * X, p * Y, p, p);
                }
            }
            }

            entry.target.prepend(c);
        } else {
            if (entry.target.firstChild.tagName === 'CANVAS')
            entry.target.firstChild.remove();
        }
        });
    },
    { rootMargin: '0px 0px 0px 0px' }
    );

    document.querySelectorAll('.hnuser').forEach((user) => {
    observer.observe(user);
    });
})();
Re:Show HN: HN Avatars in 357 bytes by mkoryak on Monday March 14, 2022 @02:14PM (#30675915)
the header formatting is broken. You should make a think on pastebin instead
Re:Show HN: HN Avatars in 357 bytes by notsound on Tuesday March 15, 2022 @04:49PM (#30691478)
Re:Show HN: HN Avatars in 357 bytes by dormento on Tuesday March 15, 2022 @05:51PM (#30692281)
Works a treat. Thanks, weird semaphore thing!
Re:Show HN: HN Avatars in 357 bytes by david927 on Monday March 14, 2022 @10:56AM (#30673164)
How dare you! Edit: ooooh, mine's a beetle!
Re:Show HN: HN Avatars in 357 bytes by SamBam on Monday March 14, 2022 @10:46AM (#30673035)
Perhaps I'm a little fighter jet from an 8-bit arcade?
Re:Show HN: HN Avatars in 357 bytes by trevorhinesley on Monday March 14, 2022 @11:33AM (#30673626)
Or a guy with a tophat! Dig it.
Re:Show HN: HN Avatars in 357 bytes by the_doctah on Monday March 14, 2022 @11:22PM (#30681353)
Yours reminds me of the Wild Hunt from The Witcher, at least the crown
Re:Show HN: HN Avatars in 357 bytes by deutschew on Monday March 14, 2022 @11:20AM (#30673451)
i love it, its very cute, reminds me of the old MSX
Re:Show HN: HN Avatars in 357 bytes by MisterSandman on Monday March 14, 2022 @10:02AM (#30672562)
I do feel like HN needs avatars of some kind... just don't know if they should be customizable or fixed (like this one).
Re:Show HN: HN Avatars in 357 bytes by Duralias on Monday March 14, 2022 @10:49AM (#30673095)
With how pretty much every platform has "avatars", that the user can customize, I think it would be fun just getting one assigned to you.

Edit: Huh, I got an alien house. Reminds me of some game.

Re:Show HN: HN Avatars in 357 bytes by INTPenis on Monday March 14, 2022 @10:07AM (#30672611)
Definitely not customizable, that's chaos.

Unique, fixed little color doodads make it easier to see who's who in a thread.

Re:Show HN: HN Avatars in 357 bytes by sexangel on Tuesday March 15, 2022 @02:17AM (#30682170)
I'm for the fixed avatars. We are all born with certain unchangeable aspects.
Re:Show HN: HN Avatars in 357 bytes by MisterSandman on Tuesday March 15, 2022 @09:36AM (#30685059)
Hey man, we were just discussing avatars, not trying to create an existential crisis.
Re:Show HN: HN Avatars in 357 bytes by MisterSandman on Monday March 14, 2022 @10:02AM (#30672567)
Looks like I got blue transformer/reinhardt
Re:Show HN: HN Avatars in 357 bytes by Cthulhu_ on Monday March 14, 2022 @06:40AM (#30670736)
It should be fairly straightforward to turn this into a browser addon, give users a choice and offload the people behind HN.
Re:Show HN: HN Avatars in 357 bytes by danuker on Monday March 14, 2022 @06:54AM (#30670817)
Or even easier to make a userscript: https://openuserjs.org/
Re:Show HN: HN Avatars in 357 bytes by libele on Monday March 14, 2022 @11:12AM (#30673365)

  // ==UserScript==
  // @name        HN Avatars in 357 bytes
  // @description Annotated avatars on all HN comments.
  // @author      tomxor (https://news.ycombinator.com/user?id=tomxor)
  // @namespace   https://news.ycombinator.com/item?id=30668137
  // @include     https://news.ycombinator.com/item*
  // @include     https://news.ycombinator.com/user*
  // @grant       none
  // @version     1.0.0
  // ==/UserScript==

  [js goes here]
Re:Show HN: HN Avatars in 357 bytes by libele on Tuesday March 15, 2022 @05:08PM (#30691738)
Re:Show HN: HN Avatars in 357 bytes by edmcnulty101 on Monday March 14, 2022 @08:03AM (#30671393)
What is a user script?
Re:Show HN: HN Avatars in 357 bytes by danuker on Monday March 14, 2022 @08:17AM (#30671498)
A JavaScript script injected into a website by the user (as opposed to the website).
Re:Show HN: HN Avatars in 357 bytes by hybridtupel on Monday March 14, 2022 @09:50AM (#30672421)
I see what you did there ;)
Re:Show HN: HN Avatars in 357 bytes by samelawrence on Monday March 14, 2022 @09:26AM (#30672155)
Could we just add it to HN Special? https://github.com/gabrielecirulli/hn-special
Re:Show HN: HN Avatars in 357 bytes by rb666 on Monday March 14, 2022 @11:34AM (#30673637)
Doesn't work on FF does it?
Re:Show HN: HN Avatars in 357 bytes by throwaddzuzxd on Monday March 14, 2022 @12:50PM (#30674744)
Trying mine.
Re:Show HN: HN Avatars in 357 bytes by dvergeylen on Tuesday March 15, 2022 @10:09AM (#30685475)
Trying mine as well
Re:Show HN: HN Avatars in 357 bytes by lebed2045 on Wednesday March 16, 2022 @09:36PM (#30706522)
Trying mine.
Re:Show HN: HN Avatars in 357 bytes by solenlyser on Monday March 14, 2022 @05:09PM (#30678368)
can't resist, trying mine...
Re:Show HN: HN Avatars in 357 bytes by smusamashah on Monday March 14, 2022 @01:06PM (#30674996)
Trying mine.
Re:Show HN: HN Avatars in 357 bytes by __david__ on Monday March 14, 2022 @02:01PM (#30675733)
Trying mine…
Re:Show HN: HN Avatars in 357 bytes by colinprince on Monday March 14, 2022 @03:03PM (#30676691)
ok trying
Re:Show HN: HN Avatars in 357 bytes by imran0 on Monday March 14, 2022 @03:12PM (#30676831)
mine as well
Re:Show HN: HN Avatars in 357 bytes by kfirstri on Monday March 14, 2022 @05:04PM (#30678283)
mine toooo
Re:Show HN: HN Avatars in 357 bytes by jimkleiber on Monday March 14, 2022 @07:03PM (#30679674)
me too

edit: ooo, i'm a...green house?

Re:Show HN: HN Avatars in 357 bytes by mdrzn on Tuesday March 15, 2022 @11:36AM (#30686623)
me too
Re:Show HN: HN Avatars in 357 bytes by t3ssel on Tuesday March 15, 2022 @12:19PM (#30687203)
me too too

edit: oh that was unexpected

Re:Show HN: HN Avatars in 357 bytes by ashirviskas on Friday March 18, 2022 @05:42PM (#30727918)
Test 421

edit: A bell? A thicc rocket..? Neat.

Re:Show HN: HN Avatars in 357 bytes by hwers on Monday March 14, 2022 @05:48AM (#30670361)
I'm gonna go ahead and vote no on this.
Re:Show HN: HN Avatars in 357 bytes by INTPenis on Monday March 14, 2022 @09:00AM (#30671886)
But your avatar looks like a Ninja Turtle with shades on. You should be enjoying this. :)
Re:Show HN: HN Avatars in 357 bytes by neogodless on Monday March 14, 2022 @10:08AM (#30672619)
Wow, I thought it was a green camper van!
Re:Show HN: HN Avatars in 357 bytes by k4rli on Monday March 14, 2022 @09:27AM (#30672158)
Likely still traumatized by existence of new reddit UI. Old appears to be better.
Re:Show HN: HN Avatars in 357 bytes by hwers on Monday March 14, 2022 @02:38PM (#30676260)
I just find pfps visually distracting and enjoy HNs stance as one of the few remaining sites keeping an old school look. I feel like it would affect the tone of the site and negatively affect the quality of the conversation.
Re:Show HN: HN Avatars in 357 bytes by qorrect on Monday March 14, 2022 @09:54AM (#30672467)
You got Cthulu!
Re:Show HN: HN Avatars in 357 bytes by gaetgu on Monday March 14, 2022 @11:36AM (#30673673)
And I think yours is an upside-down helicopter!
Re:Show HN: HN Avatars in 357 bytes by emi2k01 on Monday March 14, 2022 @11:52AM (#30673921)
It almost looks like a minimalist wolverine! [1]

[1]: https://i.pinimg.com/736x/2b/e7/cb/2be7cb420de47ac68e1345f4a...