Greasy Fork is available in English.

Play with MPV

Play videos and songs on the website via mpv-handler

These are versions of this script where the code was updated. Show all versions.

  • v2024.05.12 2024-06-03

    style: add prettier tags

  • v2024.05.12 2024-05-12

    release: 2024.05.12

  • v2024.05.11 2024-05-11

    release: 2024.05.11

  • v2024.04.22.3 2024-04-22

    release: 2024.04.22.3

  • v2024.04.22.2 2024-04-22

    2024.04.22.2

  • v2024.04.22.1 2024-04-22

    release: 2024.04.22.1

  • v2024.04.22 2024-04-22

    refactor: remove useless quote

    release: 2024.04.22

  • v2023.10.14 2023-10-14

    release: 2023.10.14

    Rename some options:

    • Prefer Video Quality
      • best -> default
    • Prefer Video Codec
      • any -> default

    The "default" will using options in the mpv.conf or default options of the mpv.

    And add check for these two options, replace to "default" if you're using old options name. It doesn't change the saved settings, until users click the "Save" button.

    fix #16

  • v2023.07.04 2023-07-04

    release: 2023.07.04

    Add kick.com

  • v2023.05.20 2023-05-20 release: 2023.05.20 Hide icon when video is playing in fullscreen, even if url is changed (a.k.a. YouTube fullscreen PJAX)
  • v2023.05.10 2023-05-10 release: 2023.05.10
  • v2023.02.11 2023-02-11 feat: delete shortcut function The modifier key Alt doesn't work properly on Microsoft Edge. And Ctrl or Shift are useful (for most browsers, to open in a new tab or a new window) Remove shortcut function until find a suitable key.
  • v2023.02.10.2 2023-02-10 release: 2023.02.10.2 Fix event.target.href is undefined
  • v2023.02.10.1 2023-02-10 release: 2023.02.10.1 Remove useless function GM_openInTab
  • v2023.02.10.1 2023-02-10 release: 2023.02.10.1 Remove useless function GM_openInTab
  • v2023.02.10.1 2023-02-10 release: 2023.02.10.1 Remove useless function GM_openInTab
  • v2023.02.10 2023-02-10 release: 2023.02.10 Add a shortcut, hold "Alt" and click on any link to play that link directly. close #14
  • v2023.01.23 2023-02-05 feat: remote useless .gitattributes
  • v2023.01.23 2023-01-23 release: 2023.01.23
  • v2023.01.18.1 2023-01-18 docs: update README.md
  • v2023.01.18.1 2023-01-18 release: 2023.01.18.1 update style for GM_config. use select element instead of radio.
  • v2023.01.18 2023-01-18 release: 2023.01.18 update css for GM_config
  • v2023.01.17 2023-01-17 release: 2023.01.17
  • v2022.11.11.3 2022-11-11 release: 2022.11.11.3 fix beta.crunchyroll.com
  • v2022.11.11.2 2022-11-11 release: 2022.11.11.2 fix click button doesn't open mpv-handler on crunchyroll.com
  • v2022.11.11.1 2022-11-11 release: 2022.11.11.1 Add support for Crunchyroll Close #8
  • v2022.11.11 2022-11-11 release: 2022.11.11
  • v2022.10.29 2022-10-29 release: v2020.10.29 mpv-handler v0.2.17
  • v2022.04.18 2022-04-18 release: v2022.04.18 Notify mpv-handler updates only once
  • v2022.04.17 2022-04-17 release: v2022.04.17 update mpv-handler version
  • v2022.03.24 2022-03-24 release: v2022.03.24
  • v2022.03.09 2022-03-24 ADD youtube shorts (#11)
  • v2022.03.09 2022-03-09 20220309
  • v2021.09.21 2022-03-09 @match for m.youtube.com (#10)
  • v2021.09.21 2021-09-21 fix: kio convert "domain" part in url to lowercase A simple magic
  • v2021.09.21 2021-09-21 fix: kio convert "domain" part in url to lowercase A simple magic
  • v2021.07.24.1 2021-07-24 Imported from URL
  • v2021.07.24 2021-07-24 relase: v2021.07.24
  • v2021.04.24 2021-04-24 fix: reset to defaults not work Save settings before close setting iframe
  • v2021.03.24 2021-03-24 feat: mpv-handler v0.1.8
  • v2021.03.02 2021-03-23 Imported from URL
  • v2021.03.02 2021-03-02 play-with-mpv-handler: 2021.03.02 Change label "Use Cookies" to "Try Pass Cookies", README: update all
  • v2021.02.26 2021-02-26 play-with-mpv-handler: 2021.02.26 Correct the URL format `mpv-handler` update to v0.1.7
  • v2021.02.25 2021-02-25 play-with-mpv-handler: 2021.02.25 Fix element ID conflict with youtube.
  • v2021.02.24 2021-02-24 play-with-mpv-handler: 2021.02.24 Note: settings will be reset. Format some code style.
  • v2021.02.22.2 2021-02-22 play-with-mpv-handler: 2021.02.22.2 mpv-handler update
  • v2021.02.22.1 2021-02-22 play-with-mpv-handler: 2021.02.22.1 mpv-handler update
  • v2021.02.22 2021-02-22 play-with-mpv-handler: 2021.02.22 Add `Use Cookies` options, support pass cookies to youtube-dl. For advanced users to view mebmer-only videos.
  • v2021.02.19 2021-02-19 play-with-mpv-handler: 2021.02.19 YouTube: match playlist url
  • v2021.02.17 2021-02-17 play-with-mpv-handler: 2021.02.17 Case-insensitive regex
  • v2021.02.16 2021-02-16 play-with-mpv-handler: 2021.02.16 Fix bilibili url match
  • v2021.02.09.1 2021-02-09 play-with-mpv-handler: 2021.02.09.1 Add new site support: - clips.twitch.tv
  • v2021.02.09 2021-02-09 play-with-mpv-handler: 2021.02.09 Add new site support: - twitch.tv
  • v2021.01.26 2021-01-26 play-with-mpv-handler: 2021.01.26 Hide button when video is fullscreen
  • v2021.01.14.2 2021-01-14 play-with-mpv-handler: 2021.01.14.2 update compatible infomation
  • v2021.01.14.2 2021-01-14 play-with-mpv-handler: 2021.01.14.2 update compatible infomation
  • v2021.01.14.1 2021-01-14 play-with-mpv-handler: update compatible info
  • v2021.01.14.1 2021-01-14 play-with-mpv-handler: 2020.01.14.1 Fix show scrollbar at firefox
  • v2021.01.14 2021-01-14 play-with-mpv-handler: 2020.01.14 Add incompatible infomation
  • v2021.01.01 2020-12-31 userscript: 2021.01.01 Change GM_config iframe CSS: Fix scrollbar is displayed incorrectly at some OS. Center elements in iframe., Merge pull request #6 from akiirui/css userscript: 2021.01.01
  • v2020.12.30 2020-12-30 userscript: 2020.12.30 Optimiz CSS
  • v2020.12.29.2 2020-12-29 userscript: 2020.12.29.2 Fix greasyfork not allow @require URL
  • v2020.12.27.2 2020-12-27 userscript: 2020.12.27.2 Click notification to check updates.
  • v2020.12.27.1 2020-12-27 mpv-handler: v0.1.1 simpify code add simple args parser add function to print version
  • v2020.12.27 2020-12-27 userscript: 2020.12.27 new function to notify mpv-handler updates
  • v2020.11.19 2020-11-19 userscript: 2020.11.19 Feature Add: - Pause video on site when click play-with-mpv. Bugfix: - Open protocol handler in iframe To fix some sites player is broken, such as www.bilibili.com: Player are stoped buffer when open handler at context, until refrush the page.
  • v2020.11.18.1 2020-11-18 2020.11.18.1: Simplify code
  • v2020.11.18 2020-11-18 2020.11.18: fix @match for YouTube YouTube using PJAX all of the site At version 2020.11.17.x, script only match *://www.youtube.com/watch* So, userscript not match for https://www.youtube.com/ Then, usercript not running. And PJAX pages not re-trigger the @match again.
  • v2020.11.17.2 2020-11-17 play-with-mpv-handler.js: 2020.11.17.2 Fix youtube @match PATH
  • v2020.11.17.1 2020-11-17 Imported from URL
  • v2020.11.17 2020-11-17