This is a chrome extension which adds a button under a youtube video, that let's you open it in VLC player. Since you can't open programs on a host machine using javascript in a browser, you need to use a custom protocol for that.
Clicking the button sends the youtube video link using the yttovlc protocol to Windows. Windows then runs the .bat or the .exe file, which then strips the link of the prepended protocol characters and runs VLC player with the link. The .bat and .exe are doing the same thing, so you can use either of them, however there is one difference. Both of the files are opening the command line and the command line is opened until VLC player is closed, but .exe opens it in background, which the .bat cannot do. In the .bat however you can change parameters for VLC player if you want. Default parameters are --qt-minimal-view --no-video-title-show
- Install "Youtube to VLC" Chrome extension.
- Download and merge the .reg file to create a yttovlc protocol. You can use either YTtoVLC_bat.reg or YTtoVLC_exe.reg
- (Optional) If your VLC installation is not in default folder, you need to edit the .reg file first.
- Download .bat or .exe depending on which .reg file you merged.
- (Optional) If you want to use .bat file, you can edit it to change the parameters with which to run VLC player.
- Move the .bat or .exe file to your VLC folder.
- (Optional) If your VLC installation is not in default folder, or you don't want the file to be in VLC folder, edit the .reg file and merge it again.