English | 中文
A powerful Chrome Manifest V3 extension for silent network request capturing and analysis. It uses a dual-layer interception architecture to bypass webRequest API limitations and capture complete request/response bodies.
🤖 Note: This project is entirely AI-generated
All files in this repository, including this README, documentation, source code, and configurations, are generated by AI assistants.
-
Complete Request/Response Capture
- Captures full request and response bodies (including XMLHttpRequest and Fetch API)
- Automatic parsing of JSON, HTML, XML, and text formats
- Protection against large response bodies (default 5MB limit)
-
Dual-Layer Interception Architecture
- Page context interceptor for full data access
- Content script bridge for Chrome extension communication
- Bypasses Manifest V3 webRequest API limitations
-
Powerful Rules System
- Capture Rules: Define URL regex patterns to selectively capture requests
- Block Rules: Block requests matching specific patterns using declarativeNetRequest API
- Modify Rules: Modify request/response in real-time
- Modify request body (JSON merge/replace, text replace)
- Modify query parameters (add/update/delete)
- Modify request headers (add/update/delete)
- Modify response body (JSON merge/replace, text replace)
- Modify response headers (add/update/delete)
- Priority-based rule matching (top-to-bottom execution order)
- Enable/disable rules on-demand
-
Advanced Filtering & Search
- Multi-scope search (URL, request body, response body)
- Filter by HTTP methods (GET, POST, PUT, DELETE, etc.)
- Filter by status codes (2xx, 3xx, 4xx, 5xx)
- Filter by capture rules (see which rule matched each request)
- Slow request filter (requests over 1 second)
- Exclude static resources (images, CSS, JS, fonts)
-
Rich Request Analysis
- View request/response headers
- Inspect request/response bodies
- Track request timing and duration
- JSON syntax highlighting with formatted/raw views
- Display matched capture rule for each request
- Show modification details for modified requests
-
User-Friendly Interface
- Quick control popup with real-time status
- Detailed request viewer with advanced search and filters
- Comprehensive settings page with rules management
- Drag-and-drop rule priority adjustment
- Multi-language support (English, 简体中文)
-
Clone this repository:
git clone https://github.com/yourusername/request-helper.git cd request-helper -
Build the extension:
npm run build
-
Load in Chrome:
- Open
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked"
- Select the
dist/folder
- Open
- Click the RequestHelper icon in Chrome toolbar
- Click "Start Capture" to begin capturing requests
- Browse any website or trigger network requests
- Click "View Requests" to inspect captured data
- Click "Stop Capture" when done
In the Settings page, navigate to the Capture Rules tab to:
- Add Rules: Click "Add Rule" to create new capture/block/modify rules
- Configure Rule Type: Choose from:
- URL Regex: Match requests by URL pattern (e.g.,
https://api\.example\.com/.*)
- URL Regex: Match requests by URL pattern (e.g.,
- Set Actions:
- Capture: Capture and record matching requests
- Block: Block matching requests from being sent
- Modify: Modify request/response data in real-time
- Manage Priority: Use ↑↓ buttons to adjust rule order (higher rules have priority)
- Toggle Rules: Enable/disable rules without deleting them
Note: When no rules are defined, no requests will be captured.
RequestHelper supports powerful request/response modification:
-
Request Body Modification:
- JSON Merge: Merge new fields into existing JSON
- JSON Replace: Completely replace request body with new JSON
- Text Replace: Find and replace text patterns
-
Query Parameter Modification:
- Add or update query parameters
- Delete specific query parameters
-
Header Modification:
- Add/update request or response headers
- Delete specific headers
-
Response Body Modification:
- Same JSON merge/replace/text replace capabilities as request body
- Modify API responses before they reach the web page
The Request Viewer provides advanced filtering:
- Multi-Scope Search: Search across URL, request body, or response body
- Method Filter: Filter by HTTP methods (GET, POST, PUT, DELETE, etc.)
- Status Code Filter: Filter by status code ranges (2xx, 3xx, 4xx, 5xx)
- Rule Filter: Filter by which capture rule matched the request
- Slow Request Filter: Show only requests that took over 1 second
- Clear All: Quick button to clear all captured requests
The Request Viewer provides:
- Detailed request/response headers and bodies
- JSON syntax highlighting with formatted/raw toggle
- Matched capture rule display
- Modification details for modified requests
- Request timing and duration
- One-click copy for headers/bodies
- Request source indicator (webRequest, content-script, or merged)
RequestHelper is designed with privacy in mind:
- 100% Local Processing: All request capturing and analysis happens entirely on your local machine
- No Data Collection: We do not collect, store, or transmit any of your data to external servers
- No Analytics: No usage tracking, analytics, or telemetry of any kind
- No External Dependencies: The extension works completely offline once installed
- Your Data Stays Yours: All captured requests are stored locally in your browser's storage and never leave your device
You have full control over your data and can clear it at any time through the extension interface.
Contributions are welcome! Please see our Contributing Guide for details on how to get started.
⚠️ Important: This project is entirely AI-written, and we require all contributions to use AI-generated code as well.
MIT License - see LICENSE file for details
- Built with modern Chrome Extension Manifest V3 APIs and best practices for network request interception
- Testing powered by JSONPlaceholder - a free fake REST API for testing and prototyping
If you encounter any issues or have questions, please open an issue on GitHub.
For detailed information on reporting issues, please refer to our Contributing Guide.
Note: This extension requires Chrome 88+ for full Manifest V3 support.