xoltdoom1

THIS IS NOT MY REPOSITORY, I SIMPLY FORKED IT FOR MY OWN USE ON MY SITE.

Original Site Here

My Fork of the Site (Might not work in all web browsers.)

the heck is this

Doom, put into a browser favicon. Also rendered in the document itself so you can usefully see it.

y u do dis

Had to be the dude I forked it from lol. Someone else might have gotten it wrong. ~ Mordin Solus

dos box aint on browser how u do dat

JS-DOS renders to a canvas object, toDataURL converts canvas objects to a data URL, Favicons can be set to a dataURL. It’s just chaining it all together.

special thanks

Without the existence of Defender of the Favicon They probably wouldn’t have realised this was possible. Also to this StackOverflow answer, which sent them down the rabbit hole. This gist from Mathias Bynens also made it all way easier. And of course this wouldn’t be possible without JS-DOS.

disclaimer

Doom is owned by id Software; this repo contains the shareware version of Doom, compressed in .zip format. If you want to play the full version of Doom in your favicon, you can buy it from GOG here and then modify the .zip location referred to in the html file. Though that is probably not the best way to experience Doom.