{"id":20818403,"url":"https://github.com/yize/xswitch","last_synced_at":"2025-05-16T15:09:45.175Z","repository":{"id":39176063,"uuid":"117045926","full_name":"yize/xswitch","owner":"yize","description":"A Chrome Extension for redirecting/forwarding request urls","archived":false,"fork":false,"pushed_at":"2022-11-01T08:46:23.000Z","size":12043,"stargazers_count":1020,"open_issues_count":34,"forks_count":125,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-12T14:55:54.488Z","etag":null,"topics":["chrome-extension","forwarding","proxy","redirect-urls","redirecting-requests"],"latest_commit_sha":null,"homepage":"https://chrome.google.com/webstore/detail/xswitch/idkjhjggpffolpidfkikidcokdkdaogg","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yize.png","metadata":{"files":{"readme":"readme.en_US.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-11T03:35:57.000Z","updated_at":"2025-04-03T07:33:37.000Z","dependencies_parsed_at":"2022-07-14T04:00:30.854Z","dependency_job_id":null,"html_url":"https://github.com/yize/xswitch","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yize%2Fxswitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yize%2Fxswitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yize%2Fxswitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yize%2Fxswitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yize","download_url":"https://codeload.github.com/yize/xswitch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254553959,"owners_count":22090417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","forwarding","proxy","redirect-urls","redirecting-requests"],"created_at":"2024-11-17T21:46:40.686Z","updated_at":"2025-05-16T15:09:40.160Z","avatar_url":"https://github.com/yize.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://chrome.google.com/webstore/detail/idkjhjggpffolpidfkikidcokdkdaogg\"\u003e\n    \u003cimg width=\"440\" src=\"https://img.alicdn.com/tfs/TB1yll4lyqAXuNjy1XdXXaYcVXa-880-560.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n[中文版](./readme.md)\n\n## XSwitch\n\n[![Chrome version][badge-cws]][link-cws] [![Chrome version][badge-cws-count]][link-cws] [![Build Status][badge-travis]][link-travis] [![Coverage Status][badge-coverage]][link-coverage] [![license][badge-license]][link-xswitch]\n\nA [Chrome Extension][link-cws] for redirecting/forwarding request urls.\n\n\u003ca href=\"https://chrome.google.com/webstore/detail/idkjhjggpffolpidfkikidcokdkdaogg\"\u003e\n  \u003cimg src=\"https://img.alicdn.com/tfs/TB1SNbynC_I8KJjy0FoXXaFnVXa-1672-1018.png\"\u003e\n\u003c/a\u003e\n\n## Features\n\n- [x] Redirect `request.url`\n- [x] Global switch control\n- [x] Disable browser cache\n- [x] JSON comments\n- [x] Rule suggestions\n- [x] CORS\n- [x] CORS \u0026 browser cache control\n- [x] Rules Grouping\n\n## Usage\n\n更多说明：[https://yuque.com/jiushen/blog/xswitch-readme](https://yuque.com/jiushen/blog/xswitch-readme)\n\nRules will be executed in order before all requests are initiated.\n\n```js\n{\n  // proxyRules\n  \"proxy\": [\n    [\n      \"//alinw.alicdn.com/platform/daily-test/isDaily.js\",\n      \"//alinw.alicdn.com/platform/daily-test/isDaily.json\"\n    ],\n    // string replace, global mode\n    [\n      \"alinw\",\n      \"g\"\n    ]\n    // replace all x.min to x\n    [\n      \".min\",\n      \"\"\n    ],\n    // use reg\n    [\n      \"(.*)/platform/daily-test/(.*).js$\",\n      \"http://127.0.0.1:3000/daily-test/$1.js\"\n    ],\n    // replace to inline JavaScript\n    [\n      \"https://alinw.alicdn.com/platform/daily-test/isDaily.js\",\n      \"data:text/javascript,window.__isDaily = true;\"\n    ]\n  ],\n  // urls that want CORS\n  \"cors\": [\n    \"cors.a.com\",\n    \"(.*).b.com\"\n  ]\n}\n```\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT) © [yize.shc](https://www.yuque.com/jiushen)\n\n[link-xswitch]: https://github.com/yize/xswitch\n[link-cws]: https://chrome.google.com/webstore/detail/xswitch/idkjhjggpffolpidfkikidcokdkdaogg\n[link-me]: https://github.com/Microsoft/monaco-editor\n[link-travis]: https://travis-ci.org/yize/xswitch\n[link-coverage]: https://coveralls.io/github/yize/xswitch?branch=master\n[badge-travis]: https://travis-ci.org/yize/xswitch.svg?branch=master\n[badge-coverage]: https://coveralls.io/repos/github/yize/xswitch/badge.svg?branch=master\n[badge-license]: https://img.shields.io/github/license/yize/xswitch.svg\n[badge-cws]: https://img.shields.io/chrome-web-store/v/idkjhjggpffolpidfkikidcokdkdaogg.svg?label=chrome\n[badge-cws-count]: https://img.shields.io/chrome-web-store/users/idkjhjggpffolpidfkikidcokdkdaogg.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyize%2Fxswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyize%2Fxswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyize%2Fxswitch/lists"}