Skip to main content

Replace Chrome's offline dinosaur with a real game — snake, asteroids, pong and more.

Project description

offlinex

Replace Chrome's offline dinosaur with a real game — from your terminal.

   ___  ___ ___ _    ___ _  _ _____  __
  / _ \| __| __| |  |_ _| \| | __\ \/ /
 | (_) | _|| _|| |__ | || .` | _| >  <
  \___/|_| |_| |____|___|_|\_|___/_/\_\

offlinex is a zero-dependency Python CLI that patches Chrome's built-in offline page and replaces the dinosaur with a fully playable HTML5 game. One command. Fully reversible.


Install

pip install offlinex

Usage

# See available games
offlinex list

# Install a game
offlinex install --game snake
offlinex install --game asteroids
offlinex install --game pong

# Check what's installed
offlinex status

# Restore the original dinosaur
offlinex restore

After installing, go offline in Chrome (or visit chrome://dino/) to play.

Games

Game Description Controls
snake Classic grid crawler Arrow keys / WASD
asteroids Space rock blaster Arrows to move, Space to shoot
pong 1v1 vs CPU paddle duel Arrow Up/Down or W/S

How it works

offlinex locates Chrome's offline.html resource file on your system, backs up the original, and writes a self-contained HTML5 game in its place. All game assets are bundled — no internet required (obviously).

To undo: offlinex restore brings the dinosaur back instantly.

Platform support

Platform Status
Windows 10/11
macOS
Linux

Manual target

If auto-detection fails, specify the path manually:

offlinex install --game snake --target "/path/to/offline.html"

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

offlinex-1.0.4-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file offlinex-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: offlinex-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for offlinex-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4e1900b1d9342652705cf8da5e66e8712e46d8a133a0f30ee2fe0489511a0129
MD5 815f3f0d399ce82b44b4f0848276bca8
BLAKE2b-256 661ff20c2e45afec2ee29fef595a25ec72ca03a0238b1059907f41a0b9370272

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page