Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
U

url-scheme-handler

> 编程语言
Open source

Add a custom URL scheme to the Windows application to allow it to be invoked by a browser

186 stars0 likes1 views
WebsiteGitHub

About

Add a custom URL scheme to the Windows application to allow it to be invoked by a browser

URL Scheme Handler

为 Windows 应用添加自定义 URL Scheme 以便从浏览器调用

下载

Releases:url-scheme-handler/releases

蓝奏云,密码 5kl2:https://kutt.lckp.top/OdMR0G

✍️ 使用

  1. 点击 + Add to Registry 添加注册表
  2. 点击 + 添加应用
  3. 在左边输入框填写应用名称
  4. 在右边选择需要调用的应用

注意:应用名称应与 external-player 中的名称保持一致(大小写也需一致)

建议添加 开启勾选框 注册表,添加后首次运行可勾选是否自动允许运行,后续不用再弹窗确认

开启勾选框:Enable_ExternalProtocolDialog_ShowCheckbox.reg

移除勾选框:Remove_ExternalProtocolDialog_ShowCheckbox.reg

蓝奏云,密码 5kl2:https://kutt.lckp.top/OdMR0G

✍️ 用法

ush://${app_name}?${gzip_args}

参考代码

// @require                 https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-y/pako/2.0.4/pako.min.js
javascript
function compress(str) {
    return btoa(String.fromCharCode(...pako.gzip(str)));
};

const app_name = 'MPV';
const args = [
    '"https://example.com/example.mp4"',
    '--force-media-title="URL Scheme Handler"'
];

window.open(`ush://${app_name}?${compress(args.join(' '))}`, '_self');

实际执行命令

bat
app_path "https://example.com/example.mp4" --force-media-title="URL Scheme Handler"

相关仓库

  • LuckyPuppy514/external-player

如何贡献

非常欢迎你的加入!提一个 Issue 或者提交一个 Pull Request。

使用许可

MIT © LuckyPuppy514

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustschemeurlwindows

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言