Network Request Interceptor icon

Network Request Interceptor

Extension Actions

How to install Open in Chrome Web Store
CRX ID
pcgmfkjckpfjhicmbajcjnkfkeconohc
Description from extension meta

A network request interceptor designed for developers, integrated into the devtools NetLimit tab. It supports intercepting and…

Image from store
Network Request Interceptor
Description from store

## 🚀 Features
### 🔧 Dual Interception Mechanism
- 🔧 **Script Interception**: Deep interception of response and request bodies based on XMLHttpRequest and Fetch API
- 🔧**Declarative Interception**: High-performance system-level interception using Chrome's declarativeNetRequest API.
- 🎯 **Regular Expression Matching**: Supports regular expression matching of URL patterns
- âš¡ **Real-time effect:** Rule changes take effect immediately without requiring a page refresh.
- âš¡ **Import/Export**: Supports rule import and export in script interception mode, facilitating team collaboration.
- 💾 **Rule Persistence**: Interception rules are automatically saved to local storage.
- 💾 **Interception History**: Requests that were matched and blocked can be viewed in the interception history.
- 🔧**Internationalization Support**: Supports Simplified Chinese, Traditional Chinese, English, and Japanese

## 🎯 User Guide

1. Open Chrome Developer Tools
2. Switch to the "NetLimit" panel.
3. The "Request Records" tab on the left: Enabling records will list xhr/fetch requests when the page is refreshed, allowing you to quickly add "script interceptors"/"request interceptors".
4. Left-hand "Script Interception" tab: Add interception rules based on xhr/fetch:
5. Left-hand "Request Interception" tab: Add interception rules based on declarativeNetRequest:

- **URL Pattern**: Matches the target URL using regular expressions.
- **Request Method**: Select the HTTP method to intercept.
- **Response Status Code**: Set the status code for the mock response.
- **Response Headers**: Set response header information
- **Response Body**: Sets the response data in JSON format.

6. Once the rule is enabled, matching requests will be intercepted and a preset response will be returned.