404: The Page That Gets Worse

Published: (April 3, 2026 at 08:24 AM EDT)
2 min read
Source: Dev.to

Source: Dev.to

Overview

This submission was created for the DEV April Fools Challenge. It’s a 404 page that gets “worse” the more you encounter it. Instead of simply helping you navigate back, the page changes its personality based on how many times you’ve visited it.

How It Works

  • Visit tracking – The page uses localStorage to count how many times a user lands on the 404 page.
  • Escalation
    • First visit – Normal 404 page.
    • Few visits – Subtle UI changes.
    • Many visits – The page starts behaving strangely and eventually becomes completely useless.

Themes & Personalities

The page employs a simple theme system using the data-theme attribute, allowing dynamic switching without hard‑coding styles.

ThemeDescription
DefaultStandard 404 look.
Romantic🎀 Random pink mode appears.
FlickerFlickering UI elements.
Random surprisesUnexpected messages, weird buttons, and sound effects.

Unpredictable Elements

  • Random messages appear on each load.
  • Weird buttons that do unexpected things.
  • Sound effects that may or may not play.
  • UI changes that are not the same on every visit.

Technical Stack

  • HTML – Structure of the page.
  • CSS – Theme system using data-theme.
  • JavaScriptlocalStorage handling and escalation logic.

Live Demo & Source

  • Live Site[link to live site]
  • Review the code[link to repository]

Closing Thoughts

This project doesn’t solve a real problem; it’s just a fun experiment in building something intentionally useless. It demonstrates how a simple 404 page can evolve into a quirky, escalating experience.


Anupam Thakur – on a journey of becoming a frontend developer

0 views
Back to Blog

Related posts

Read more »

The Login Portal That Actively Hates You

Overview A tongue‑in‑cheek “Premium Secure Portal” built for the DEV April Fools Challenge. It deliberately employs anti‑UX patterns to make authentication imp...

Time Spender v1

What I Built Time Spender v1 is the ultimate productivity anti‑tool. It is a web application designed with a single, highly optimized purpose: to waste exactly...

Execution Context

Bayangkan Execution Context seperti sebuah dapur. Sebelum kamu memulai memasak mengeksekusi kode, kamu perlu ruang kerja, peralatan variabel, dan resep function...