https://github.com/simeg/chrome-back-blocker
Prevents the browser back button from navigating away on matched pages.
https://github.com/simeg/chrome-back-blocker
chrome synology
Last synced: 6 days ago
JSON representation
Prevents the browser back button from navigating away on matched pages.
- Host: GitHub
- URL: https://github.com/simeg/chrome-back-blocker
- Owner: simeg
- License: mit
- Created: 2025-07-14T17:58:20.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-07-14T18:00:02.000Z (11 months ago)
- Last Synced: 2025-08-19T10:43:24.419Z (10 months ago)
- Topics: chrome, synology
- Language: JavaScript
- Homepage:
- Size: 1.31 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Disable Back Button Extension
This lightweight Chrome extension prevents the browser's Back button from navigating away from the current page.
## ๐ง Features
- Stops accidental navigations using the Back button for specified websites (see `manifest.json`)
- Injects a script on specified HTTP/HTTPS pages
- Useful for web dashboards, apps, or local UIs like Synology DSM
## ๐งช How to Use
1. Clone or download this repository
2. Open `chrome://extensions` in Chrome
3. Enable **Developer Mode** (top right corner)
4. Click **"Load unpacked"** (top left corner) and select the project folder
## ๐ How It Works
The extension injects a small script that:
- Adds a dummy history state
- Replaces the back navigation with another pushState, keeping the user on the page
## ๐ Permissions
- No special permissions needed.
- Runs only as a content script on HTTP/HTTPS URLs.
## ๐ License
MIT โ use, modify, and share freely.