Created
February 5, 2026 18:10
-
-
Save rawnly/539aaeb002a5c30f449ea56570c2bdd3 to your computer and use it in GitHub Desktop.
redirecto chrome ext
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "0.0.1", | |
| "manifest_version": 3, | |
| "name": "redirecto", | |
| "description": "Redirects", | |
| "permissions": [ | |
| "declarativeNetRequest" | |
| ], | |
| "host_permissions": [ | |
| "*://*.npmjs.com/*" | |
| ], | |
| "declarative_net_request": { | |
| "rule_resources": [ | |
| { | |
| "id": "ruleset_1", | |
| "enabled": true, | |
| "path": "rules.json" | |
| } | |
| ] | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "id": 1, | |
| "priority": 1, | |
| "action": { | |
| "type": "redirect", | |
| "redirect": { | |
| "regexSubstitution": "https://npmx.dev/\\2" | |
| } | |
| }, | |
| "condition": { | |
| "regexFilter": "^https?://(www\\.)?npmjs\\.com/(.*)", | |
| "resourceTypes": [ | |
| "main_frame" | |
| ] | |
| } | |
| } | |
| ] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just "load unpacked"
https://developer.chrome.com/docs/extensions/get-started/tutorial/hello-world