Automatically redirect to mpv player when playing online video.
- install auto-play-in-mpv:
pipx install auto-play-in-mpv
, start asapim
. - install tampermonkey in your browser
- install the script from greasyfork
- just click a video from supported sites.
Note that this is just my config example. You may need to change some settings.
It's better to start the websocket server automatically at startup.
- On general platforms: please use my another script user-startup-py!
- On NixOS: Add this to your
configuration.nix
systemd.user.services.apim = { enable = true; description = "Open online video in local mpv player"; script = "~/.local/bin/apim"; wantedBy = [ "default.target" ]; path = with pkgs; [ mpv yt-dlp kdePackages.kwallet ]; }; # do not forget to add your current user to some groups users.users.<your_user_name> = { isNormalUser = true; extraGroups = [ "wheel" "networkmanager" "video" "render" "audio" ]; };
- bilibili (video, live)
- youtube
- auto start
- fix behavior on youtube
MIT