A JavaScript snippet that turns a GitHub profile Contribution Graph into a playable breakout-style game.
- Open a GitHub profile page with a visible Contribution Graph.
- Open Chrome DevTools.
- Paste the snippet into the Console and press Enter.
- Move the paddle with the mouse or keyboard:
- Arrow Left / Arrow Right
- H / L
- Blocks are built from the Contribution Graph cells.
- Darker green blocks require more hits (1–4).
- Catch falling items to:
- Add a ball
- Extend the paddle
- Shrink the paddle
- Clear all blocks to win.
- Lose all balls to get game over.
- If the graph is missing, a message is shown and the game does not start.
- If the graph has no blocks, a message is shown and the game does not start.
- The last input source used (mouse or keyboard) takes control.
MIT.