6 ms·
>MAKE. THIS. PERMANENT! I second this. (Also I wanted to see what my avatar looks like, sry)
by bertman 5y ago
>MAKE. THIS. PERMANENT!
I second this. (Also I wanted to see what my avatar looks like, sry)
- david927 5y agoHow dare you! Edit: ooooh, mine's a beetle!
- gaetgu 5y agoTruly unacceptable. (I look like an alien head!)
- ChrisClark 5y agoBut Space Invaders is a classic!
- amanzi 5y agoOnly commenting so I can see my avatar...
- riidom 5y agoHow dare you, you cyan flower vase on wheels :) I'm a spiky small yellow watchtower, yay.
- jimmydorry 5y agoAnd me? A green butterfly?
- romellem 5y agoThis is fun, and can easily be added as a userscript. I might look to do that a little later.
- notsound 5y ago// ==UserScript== // @name HN icons // @namespace https://news.ycombinator.com/ https://news.ycombinator.com/* // @version 0.1 // @description try to take over the world! // @author some people on HN // @match https://news.ycombinator.com/ 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 https://news.ycombinator.com/item?id=30668137 (tomxor) // The script we are using is from: https://news.ycombinator.com/item?id=30670079 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); }); })();
- mkoryak 5y ago
- simcop2387 5y agoThis 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