Idea · Oct 1, 2026
Page Wrecker
A bookmarklet that turns any webpage into a destructible physics platformer: headings, images, and paragraphs become solid blocks you can run on, shoot, and knock over.
What it would do
Inspired by a Show HN game that converts webpages into destructible platformers, Page Wrecker is a single script you drop into the bookmarks bar. On activation it walks the visible DOM, collects bounding boxes for block-level elements (headings, images, buttons, paragraphs, table cells), and creates a matching static rigid body for each in a 2D physics world drawn on a transparent canvas overlay. A small character spawns at the top of the page; the player jumps between real page elements, and a projectile or ground-pound turns a hit element into a dynamic body that falls, while the original DOM node is hidden and its screenshot texture tumbles away. A score counts the 'mass' of the page destroyed, and a reset restores the page exactly. The weekend scope is one character, one weapon, and a scoring rule; extensions include element-type behaviors (links bounce, images shatter) and a shareable 'wreck replay'.
Key features
- DOM walker that converts visible block elements into physics bodies with matching bounds
- Canvas overlay with a playable character, jumping, and a single destructive action
- Hit elements detach and fall using a cached snapshot texture while the real node is hidden
- Destruction score by element area and type, with a one-click restore of the original page
- Runs fully client-side as a bookmarklet; nothing is sent anywhere