FailSwitch is a Chrome extension that allows developers and QA teams to simulate network failures by selectively blocking requests based on URL patterns. It's useful for testing error handling, loading states, and offline scenarios β all without modifying server code.
- π Enable/disable network interception via popup
- π― Block requests based on URL patterns
- π§° Manage rules through an options page
- π§ DeclarativeNetRequest-based (Manifest V3)
- πΎ Fully local β no data leaves your browser
- Clone this repo or download it as a ZIP.
- Go to
chrome://extensions/in Chrome. - Enable Developer Mode.
- Click Load Unpacked and select the
extension/folder. - Click the FailSwitch icon to enable/disable blocking.