https://github.com/danielwpz/chrome-request-interceptor
Chrome extension to intercept HTTP requests and return custom JSON responses.
https://github.com/danielwpz/chrome-request-interceptor
Last synced: 11 months ago
JSON representation
Chrome extension to intercept HTTP requests and return custom JSON responses.
- Host: GitHub
- URL: https://github.com/danielwpz/chrome-request-interceptor
- Owner: danielwpz
- License: mit
- Created: 2025-08-04T12:07:29.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-04T12:09:11.000Z (11 months ago)
- Last Synced: 2025-08-04T16:44:10.871Z (11 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chrome Request Interceptor Extension
Intercept HTTP requests and return custom JSON responses. Bypasses all CSP restrictions and website limitations.
**Perfect for bypassing some website restrictions like VPN blocks, geo-blocking, etc.**
## Quick Start
### Build & Install
```bash
pnpm install
```
1. Open `chrome://extensions/`
2. Enable "Developer mode"
3. Click "Load unpacked" → select this directory
### Usage
1. Click extension icon in toolbar
2. Click "Add Rule"
3. Set HTTP method, URL pattern, and JSON response
4. Save - rules apply immediately across all tabs
### Example
- **Method**: GET
- **URL Pattern**: `api.example.com/status`
- **Response**: `{"status": "ok"}`
### Use Cases
- **Bypass VPN detection**: Intercept VPN check endpoints
- **Geo-blocking**: Mock location-based API responses
- **Rate limiting**: Override rate limit headers/responses
- **API mocking**: Return custom data for development
## How It Works
Uses aggressive injection via `chrome.scripting.executeScript` to bypass ALL CSP restrictions and website security measures. Injects into every tab automatically.
## Permissions
- `storage`, `activeTab`, `scripting`, `tabs`
- `host_permissions` for `*://*/*`
## Troubleshooting
- Check browser console for `🔥 INJECTION COMPLETE` messages
- Reload extension if needed
- Works on any website except `chrome://` pages