{"id":22025113,"url":"https://github.com/luckypuppy514/url-scheme-handler","last_synced_at":"2026-03-02T17:04:48.861Z","repository":{"id":264636812,"uuid":"893348833","full_name":"LuckyPuppy514/url-scheme-handler","owner":"LuckyPuppy514","description":"Add a custom URL scheme to the Windows application to allow it to be invoked by a browser","archived":false,"fork":false,"pushed_at":"2024-12-01T04:51:41.000Z","size":28,"stargazers_count":74,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T08:43:27.358Z","etag":null,"topics":["scheme","url","windows"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/LuckyPuppy514.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}},"created_at":"2024-11-24T07:39:23.000Z","updated_at":"2025-03-27T14:04:16.000Z","dependencies_parsed_at":"2024-11-25T16:03:52.867Z","dependency_job_id":null,"html_url":"https://github.com/LuckyPuppy514/url-scheme-handler","commit_stats":null,"previous_names":["luckypuppy514/url-scheme-handler"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuckyPuppy514%2Furl-scheme-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuckyPuppy514%2Furl-scheme-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuckyPuppy514%2Furl-scheme-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuckyPuppy514%2Furl-scheme-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuckyPuppy514","download_url":"https://codeload.github.com/LuckyPuppy514/url-scheme-handler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252851629,"owners_count":21814185,"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":["scheme","url","windows"],"created_at":"2024-11-30T07:14:08.468Z","updated_at":"2026-03-02T17:04:48.853Z","avatar_url":"https://github.com/LuckyPuppy514.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cp align=\"center\"\u003eURL Scheme Handler\u003cp\u003e\n\n为 Windows 应用添加自定义 URL Scheme 以便从浏览器调用\n\n## 🧱 下载\n\nReleases：[url-scheme-handler/releases](https://github.com/LuckyPuppy514/url-scheme-handler/releases)\n\n蓝奏云，密码 `5kl2`：[https://kutt.lckp.top/OdMR0G](https://kutt.lckp.top/OdMR0G)\n\n## ✍️ 使用\n\n1. 点击 `+ Add to Registry` 添加注册表\n2. 点击 `+` 添加应用\n3. 在左边输入框填写应用名称\n4. 在右边选择需要调用的应用\n\n![20241125202543](https://github.com/LuckyPuppy514/url-scheme-handler/blob/main/screenshot/20241125202543.jpg?raw=true)\n\n\u003e **注意：应用名称应与 external-player 中的名称保持一致（大小写也需一致）**\n\n![20250514203101](https://github.com/LuckyPuppy514/url-scheme-handler/blob/main/screenshot/20250514203101.jpg?raw=true)\n\n建议添加 `开启勾选框` 注册表，添加后首次运行可勾选是否自动允许运行，后续不用再弹窗确认\n\n开启勾选框：[Enable_ExternalProtocolDialog_ShowCheckbox.reg](https://github.com/LuckyPuppy514/url-scheme-handler/blob/main/reg/Enable_ExternalProtocolDialog_ShowCheckbox.reg)\n\n移除勾选框：[Remove_ExternalProtocolDialog_ShowCheckbox.reg](https://github.com/LuckyPuppy514/url-scheme-handler/blob/main/reg/Remove_ExternalProtocolDialog_ShowCheckbox.reg)\n\n蓝奏云，密码 `5kl2`：[https://kutt.lckp.top/OdMR0G](https://kutt.lckp.top/OdMR0G)\n\n## ✍️ 用法\n\n```text\nush://${app_name}?${gzip_args}\n```\n\n参考代码\n\n```text\n// @require                 https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-y/pako/2.0.4/pako.min.js\n```\n\n```javascript\nfunction compress(str) {\n    return btoa(String.fromCharCode(...pako.gzip(str)));\n};\n\nconst app_name = 'MPV';\nconst args = [\n    '\"https://example.com/example.mp4\"',\n    '--force-media-title=\"URL Scheme Handler\"'\n];\n\nwindow.open(`ush://${app_name}?${compress(args.join(' '))}`, '_self');\n```\n\n实际执行命令\n\n```bat\napp_path \"https://example.com/example.mp4\" --force-media-title=\"URL Scheme Handler\"\n```\n\n## 👏 相关仓库\n\n- [LuckyPuppy514/external-player](https://github.com/LuckyPuppy514/external-player)\n\n## 😘 如何贡献\n\n非常欢迎你的加入！[提一个 Issue](https://github.com/LuckyPuppy514/url-scheme-handler/issues/new) 或者提交一个 Pull Request。\n\n## 🃏 使用许可\n\n[MIT](https://github.com/LuckyPuppy514/url-scheme-handler/blob/main/LICENSE) © LuckyPuppy514\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckypuppy514%2Furl-scheme-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluckypuppy514%2Furl-scheme-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckypuppy514%2Furl-scheme-handler/lists"}