
Browser trick Doom ports


Doom running in Favicon
Normally, a favicon is static, just a fixed image. However, modern browsers allow dynamic favicons. This means JavaScript can continuously update the favicon image (by generating a new canvas, drawing on it, and setting it as the new favicon).

Doom running inside a TrueType font
It’s a DOOM-style raycaster where the font’s TrueType hinting bytecode does all the 3D wall rendering - JavaScript just handles input and paints pixels The whole font is 6,580 bytes. 13 functions. No WebGL, no Canvas API for the math - just the hinting instruction set that was designed for adjusting serif widths in the 90s Live demo (Chrome/Edge): https://4rh1t3ct0r7.github.io/ttf-doom/ Press Tab for debug mode - you can watch the font-variation-settings axes update as you move around

Google search bar

Captcha Doom
Verify you are human by playing Doom and killing at least 3 enemies (on a nightmare difficulty).

Doom Bookmarklet
DOOM original C (1997) wrapped in Rust, compiled to Wasm, embedded in TypeScript which is transpired to JS, polyfilled, minified, wrapped in some scaffolding, and saved to the bookmarks/favourites bar of a browser.