{"id":51694311,"url":"https://github.com/webdiscus/request-conditions-chrome-plugin","last_synced_at":"2026-07-16T04:03:54.497Z","repository":{"id":371094045,"uuid":"1297723098","full_name":"webdiscus/request-conditions-chrome-plugin","owner":"webdiscus","description":"Chrome extension to block, redirect, and modify browser requests","archived":false,"fork":false,"pushed_at":"2026-07-13T08:38:57.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-07-13T10:20:05.610Z","etag":null,"topics":["chrome-extension","conditions","network","requests","rules"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdiscus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-11T19:19:51.000Z","updated_at":"2026-07-13T08:42:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/webdiscus/request-conditions-chrome-plugin","commit_stats":null,"previous_names":["webdiscus/request-conditions-chrome-plugin"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/webdiscus/request-conditions-chrome-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdiscus%2Frequest-conditions-chrome-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdiscus%2Frequest-conditions-chrome-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdiscus%2Frequest-conditions-chrome-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdiscus%2Frequest-conditions-chrome-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdiscus","download_url":"https://codeload.github.com/webdiscus/request-conditions-chrome-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdiscus%2Frequest-conditions-chrome-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35529739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome-extension","conditions","network","requests","rules"],"created_at":"2026-07-16T04:03:50.752Z","updated_at":"2026-07-16T04:03:54.489Z","avatar_url":"https://github.com/webdiscus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Request Conditions - Plugin for Chromium browsers\n\nRequest Conditions lets you create rules for browser requests on selected domains. \nUse it to block unwanted network calls, redirect matching URLs, modify request or response headers, \nand test how web apps behave when specific resources fail to load.\n\nIt is useful for API development, frontend debugging, failure testing, \nand cleaning up noisy network behavior on sites you use.\n\n## What you can do\n\n- Block matching requests\n- Redirect matching URLs\n- Modify request and response headers\n- Apply rules only on domains you choose\n- Target specific resource types, such as scripts, stylesheets, images, media, documents, WebSocket, and API requests\n- Test missing resources and partial loading failures\n- Override headers for local development and debugging\n- Export and import your rule configuration as JSON\n\n## Installation\n\n1. Download this repository as ZIP or clone it locally.\n2. Open `chrome://extensions` in a Chromium browser.\n3. Enable **Developer mode**.\n4. Click **Load unpacked**.\n5. Select the `src` directory from this project.\n6. Set up the extension configuration in [Getting started](#getting-started).\n\n## Common use cases\n\n### Debug web apps and APIs\n\nCreate rules for specific endpoints, scripts, stylesheets, images, media files, or JSON responses.\nThis helps you test fallback states, loading errors, broken dependencies, and edge cases that are hard to reproduce otherwise.\n\n### Control unwanted requests\n\nBlock noisy or unnecessary requests on selected domains, such as tracking calls, statistics endpoints, \nheavy dynamic content, or other resources you do not want the page to load.\n\n### Adjust headers\n\nUse built-in presets or custom header rules to change request and response behavior while developing or testing.\n\nHeader rules can target either requests or responses, so you can adjust what the browser sends and what the page receives.\n\nCommon examples:\n\n- Set `Access-Control-Allow-Origin` to test a frontend before backend CORS is fully configured\n- Remove `Content-Security-Policy` or `X-Frame-Options` while debugging iframe, embedding, or script behavior\n- Override `Authorization` to test different users, roles, or tokens without changing application code\n- Set a custom `User-Agent` to check browser, device, or API-specific behavior\n- Set `Cache-Control: no-store` to avoid stale responses during active API debugging\n- Send feature-flag headers, such as `X-Feature-Flags`, to force experimental backend paths\n- Add or remove custom request or response headers for project-specific workflows\n\n## Getting started\n\nOpen the extension settings and configure the domains where your rules should be active.\n\n### Activation domains\n\nAdd one hostname per line:\n\n```text\nexample.com\ndev.example.com\n```\n\nRules are applied only on activation domains. Subdomains are included automatically, so `example.com` also covers `api.example.com`.\n\n### URL pattern\n\nEach rule uses an [RE2 URL pattern](https://github.com/google/re2/wiki/Syntax) to match browser requests.\n\nMatch all API requests on a domain:\n\n```text\n^https?://.*\\.example\\.com/api/.*$\n```\n\nMatch JavaScript files:\n\n```text\n^https?://.*\\.example\\.com/.*\\.js$\n```\n\nMatch images from a CDN path:\n\n```text\n^https?://cdn\\.example\\.com/images/.*$\n```\n\n### Action\n\nChoose what should happen when a request matches the pattern:\n\n- `block` stops the matching request\n- `redirect` sends the request to another URL\n- `modifyHeaders` changes request or response headers\n\nUse `block` to test missing files, failed API calls, or unwanted dynamic loading.\\\nUse `redirect` to point a request to a local or test endpoint.\\\nUse `modifyHeaders` for CORS, authorization, cache, feature flags, or custom header workflows.\n\n### Resource types\n\nLimit a rule to the types of resources you want to affect, such as scripts, stylesheets, \nimages, media, documents, WebSocket, or API requests.\n\nFor example, you can block only images from a CDN, only JavaScript files, \nor only API requests matching a specific path.\n\n### Priority and saving\n\nThe first rule in the list has the highest priority.\n\nReorder rules when you need one rule to take precedence over another. \nSave the configuration after editing domains, rules, actions, or resource types.\n\nThe popup shows whether Request Conditions is active on the current tab.\n\n## Import and export\n\nUse **Export JSON** to save your configuration.\n\nUse **Import JSON** to replace the current configuration with a previously exported file.\n\n## License\n\n[ISC License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdiscus%2Frequest-conditions-chrome-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdiscus%2Frequest-conditions-chrome-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdiscus%2Frequest-conditions-chrome-plugin/lists"}