An open API service indexing awesome lists of open source software.

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.

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.