您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Open media in html in ONE click!
# Custom URL protocol
Use local player to open file from browser in ONE click!
# Setup
* Compile [cup.c](./cup.c) or [cup.exe](./cup.exe) and put in System PATH;
* Install [Tampermonkey](http://tampermonkey.net/) extension to browser and add [addurl.js](./addurl.js) to it;
* Prepare a tool for the URL
* Registry the custome url protocol by [install.cmd](./install.cmd);
* Finally enjoy you life!
# Example
```
install.cmd mpv
install.cmd /u mpv
```
URL: mpv:http://example.com/samp.mp4
will be convert to a system command
mpv http://example.com/samp.mp4
click in browser then the file will be open.
