How chung10kr/page-wrecker works
Page Wrecker is a Chrome extension that overlays destructive effects on the current webpage without changing its underlying content. The main workflow is choosing a weapon or score-game action in the popup, injecting the page runtime, and sending it a command. The runtime handles weapon interactions and visual effects, with additional ant, scoring, language, and sound capabilities. The sampled runtime is a single large file; feature nodes therefore identify responsibilities within that file, not independently verified modules. Other links follow the README where source excerpts do not show the wiring.
Main entry points: content.js Overlay runtime · popup.js Popup controls · popup.html Popup UI · sounds Sound effects
Components 14
Extension interface
- Popup controls
popup.js - Popup UI
popup.html
Page runtime
- Overlay runtime
content.js
Gameplay systems
- Weapon actions
content.js - Canvas effects
content.js - Ants
content.js - Score game
content.js - Language settings
content.js
Bundled assets
- Sound effects
sounds - Weapon sounds
sounds - Weapon icons
icons
Other components
- User
- Chrome APIs
- Current webpage
Connections 14
- User → Popup UI: opens
README.md - Popup UI → Popup controls: handles controls
popup.js - Popup controls → Chrome APIs: queries and injects
popup.js - Popup controls → Overlay runtime: sends commands
popup.js - Chrome APIs → Overlay runtime: injects
- Overlay runtime → Current webpage: overlays
README.md - Overlay runtime → Weapon actions: handles
README.md - Weapon actions → Canvas effects: draws
README.md - Weapon actions → Ants: hits ants
README.md - Overlay runtime → Score game: runs
README.md - Overlay runtime → Language settings: applies
content.js - Overlay runtime → Sound effects: plays
README.md - Sound effects → Weapon sounds: uses
README.md - Popup controls → Weapon icons: displays