# DMG Mode: Turn Any Website Into a Game Boy

> A free Chrome extension that repaints any web page in four shades of pea-green, with chunky pixels and a pixel font. Open source, no data collected.

- Author: Zapski
- Date: 2026-11-09
- Category: dev

Every page on the modern web is a riot of colour: blue links, white cards, photographs with millions of shades in them. The Game Boy had four.

That wasn't a tragedy. It was the reason a Game Boy game looked like a Game Boy game. Artists learned to compose in four tones, and the best of them turned the little green screen into a window rather than a limitation. Which raises the obvious question: what if the rest of the internet had to obey the same rules?

So we built it. **DMG Mode** is a free, open-source Chrome extension that repaints whatever page you're looking at in the Game Boy's palette. Photographs crumble into chunky blocks, the text lands in a pixel font, and the whole web suddenly looks like it's running on hardware that shipped in 1989.

It's in the [Chrome Web Store](https://chromewebstore.google.com/detail/dmg-mode/cgaocdfkmcdijlogdejpffcpgjlffhib), the code is on [GitHub](https://github.com/Zapskii/dmg-mode), and there's a [demo page](https://labs.zapski.com/dmg-mode/) with more screenshots than any sensible extension needs.

# Four Shades, Three Palettes

The default is the original DMG pea-green: `#0f380f`, `#306230`, `#8bac0f` and `#9bbc0f`, the four tones every Game Boy owner can still name from memory. If that's too much nostalgia for a Tuesday afternoon, there's a Pocket grey palette that looks like the later grey-shell Game Boy Pocket, and a plain greyscale for when you want the vibe without the colour cast.

Brightness and contrast sliders let you pull the picture back towards legibility, and there's an invert option for the dark-themed sites that would otherwise turn into an unreadable slab of near-black. Images, video, canvases and CSS backgrounds get pixelated into blocks between 2 and 12 pixels wide, while the text itself stays sharp — more on that below.

The fonts are the other half of the trick. Pixelify Sans is the gentle option; Press Start 2P is the one that looks like a title screen and is, we admit, hard work for a long article. Icon fonts are deliberately skipped, because a pixelated Font Awesome glyph is just a smudge.

Toggling is one keypress: `Alt+Shift+G`. It can be rebound at `chrome://extensions/shortcuts` if that clashes with something you actually use.

# The Clever Bit

The obvious way to build this is to throw the page onto a `<canvas>` and post-process it. That's also the way that breaks every link, every text selection and every bit of scrolling you've ever enjoyed.

DMG Mode doesn't touch the page at all. It injects an inline SVG filter into the document and applies it as a `backdrop-filter` on a fixed, click-through overlay the size of your viewport. Everything behind that overlay gets the treatment, and everything in front of it — the page itself — keeps its layout, its scrolling and its hit targets completely intact.

The filter chain is three steps. A `feComponentTransfer` handles brightness, contrast and invert. A `feColorMatrix` throws away the colour and keeps luminance. Then a discrete `feComponentTransfer` snaps each channel to one of the four palette values, which is what gives you those hard, unapologetic bands instead of a smooth fade.

Because the overlay only covers the visible viewport, one long article costs the same as one short page: the GPU filters what's on screen and nothing else. Fixed and sticky headers come along for the ride, and iframes get recoloured too — including YouTube embeds, which is a strange but very satisfying sight.

The first version filtered the `<html>` element directly. Chrome coped fine on a short page and fell over on very tall ones, because it was trying to rasterise the entire document. The overlay was the fix.

# Install It

[Install it from the Chrome Web Store](https://chromewebstore.google.com/detail/dmg-mode/cgaocdfkmcdijlogdejpffcpgjlffhib), press `Alt+Shift+G`, and see what your most-visited site looks like when it has to make do with four colours.

The Game Boy's designers thought a small, mean screen could still be beautiful. Ten minutes of DMG Mode makes a pretty good case that they were right — and that most of the modern web has been wasting its palette.
