snakension – a browser extension for playing snake when you’re offline

play snake when your internet dies with this extension, planning to add more games!

ever lost your internet connection and wished you had something to do? that’s what snakension is for. it’s a browser extension that gives you the classic snake game right in your browser, and it automatically notifies you to play when you go offline.

snakension preview

what it does

snakension is straightforward. it sits in your browser extensions and lets you play snake whenever you want. the neat part is that it detects when you lose your internet connection and sends you a notification suggesting you play the game while you wait for your connection to come back.

the extension saves your high score locally, so you can keep track of your best performance. the game itself is clean and responsive with smooth controls.

offline notification

how to install it

since this isn’t on the chrome web store yet, you’ll need to install it manually. here’s how:

  1. download the zip file from the latest release
  2. unzip the file somewhere on your computer
  3. open your browser’s extensions page:
    • chrome: chrome://extensions/
    • edge: edge://extensions/
    • brave: brave://extensions/
  4. enable developer mode (usually a toggle in the top right)
  5. click “load unpacked”
  6. select the unzipped snakension folder

that’s it. the extension will now appear in your toolbar.

features

  • offline detection that sends notifications when you lose internet
  • saves your high score
  • responsive controls for smooth gameplay
  • clean, simple interface
  • works on chrome, edge, and brave

the tech

it’s built with vanilla javascript, html, and css. no frameworks, no dependencies. the game logic is classic snake – you move around collecting food, growing longer, and trying not to crash into yourself or the walls.

the background script handles the offline detection by listening to the browser’s connection status. when it detects you’ve gone offline, it triggers a notification that opens the game.

open source

the whole thing is open source under the mit license. you can check out the code, fork it, modify it, or contribute on github.

if you’re interested in building browser extensions or just want a simple game to play when your internet drops, give it a try.

visit the project page

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

Medical Device Manufacturers Redefine Quality Amid Digital, Regulatory and Supply Chain Pressures

Next Post

How I accidentally start SDD by failing at prompts for six months

Related Posts