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.

  • v2025.03.20 20.03.2025 Imported from URL
  • v2024.09.27 20.03.2025 Imported from URL
  • v2024.08.11.1 20.03.2025 Imported from URL
  • v2024.09.27 27.09.2024

    fix: firefox blank window

  • v2024.09.23 23.09.2024

    release: 2024.09.23

    Change match method, drop regex.

  • v2024.09.23 23.09.2024

    release: 2024.09.23

    Change match method, drop regex.

  • v2024.08.22 22.08.2024

    release: v2024.08.22

    support bilibili bangumi

  • v2024.08.22 22.08.2024

    release: v2024.08.22

    support bilibili bangumi

  • v2024.08.11.1 11.08.2024

    fix: remove useless variable

  • v2024.08.11 11.08.2024

    fix: TrustedHTML once more

  • v2024.08.11 11.08.2024

    fix: TrustedHTML once more

  • v2024.08.09 09.08.2024

    fix: youtube TrustHtml

  • v2024.06.15 15.06.2024

    release: 2024.06.15.1

    Fix tagged template

  • v2024.06.15 15.06.2024

    release: 2024.06.15.1

    Fix tagged template

  • v2024.06.15 15.06.2024

    release: 2024.06.15

    Fix ReferenceError

  • v2024.05.12 03.06.2024

    style: add prettier tags

  • v2024.05.12 12.05.2024

    release: 2024.05.12

  • v2024.05.11 11.05.2024

    release: 2024.05.11

  • v2024.04.22.3 22.04.2024

    release: 2024.04.22.3

  • v2024.04.22.2 22.04.2024

    2024.04.22.2

  • v2024.04.22.1 22.04.2024

    release: 2024.04.22.1

  • v2024.04.22 22.04.2024

    refactor: remove useless quote

    release: 2024.04.22

  • v2023.10.14 14.10.2023

    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 04.07.2023

    release: 2023.07.04

    Add kick.com

  • v2023.05.20 20.05.2023 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 10.05.2023 release: 2023.05.10
  • v2023.02.11 11.02.2023 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 10.02.2023 release: 2023.02.10.2 Fix event.target.href is undefined
  • v2023.02.10.1 10.02.2023 release: 2023.02.10.1 Remove useless function GM_openInTab
  • v2023.02.10.1 10.02.2023 release: 2023.02.10.1 Remove useless function GM_openInTab
  • v2023.02.10.1 10.02.2023 release: 2023.02.10.1 Remove useless function GM_openInTab
  • v2023.02.10 10.02.2023 release: 2023.02.10 Add a shortcut, hold "Alt" and click on any link to play that link directly. close #14
  • v2023.01.23 05.02.2023 feat: remote useless .gitattributes
  • v2023.01.23 23.01.2023 release: 2023.01.23
  • v2023.01.18.1 18.01.2023 docs: update README.md
  • v2023.01.18.1 18.01.2023 release: 2023.01.18.1 update style for GM_config. use select element instead of radio.
  • v2023.01.18 18.01.2023 release: 2023.01.18 update css for GM_config
  • v2023.01.17 17.01.2023 release: 2023.01.17
  • v2022.11.11.3 11.11.2022 release: 2022.11.11.3 fix beta.crunchyroll.com
  • v2022.11.11.2 11.11.2022 release: 2022.11.11.2 fix click button doesn't open mpv-handler on crunchyroll.com
  • v2022.11.11.1 11.11.2022 release: 2022.11.11.1 Add support for Crunchyroll Close #8
  • v2022.11.11 11.11.2022 release: 2022.11.11
  • v2022.10.29 29.10.2022 release: v2020.10.29 mpv-handler v0.2.17
  • v2022.04.18 18.04.2022 release: v2022.04.18 Notify mpv-handler updates only once
  • v2022.04.17 17.04.2022 release: v2022.04.17 update mpv-handler version
  • v2022.03.24 24.03.2022 release: v2022.03.24
  • v2022.03.09 24.03.2022 ADD youtube shorts (#11)
  • v2022.03.09 09.03.2022 20220309
  • v2021.09.21 09.03.2022 @match for m.youtube.com (#10)
  • v2021.09.21 21.09.2021 fix: kio convert "domain" part in url to lowercase A simple magic
  • v2021.09.21 21.09.2021 fix: kio convert "domain" part in url to lowercase A simple magic
  • v2021.07.24.1 24.07.2021 Imported from URL
  • v2021.07.24 24.07.2021 relase: v2021.07.24
  • v2021.04.24 24.04.2021 fix: reset to defaults not work Save settings before close setting iframe
  • v2021.03.24 24.03.2021 feat: mpv-handler v0.1.8
  • v2021.03.02 23.03.2021 Imported from URL
  • v2021.03.02 02.03.2021 play-with-mpv-handler: 2021.03.02 Change label "Use Cookies" to "Try Pass Cookies", README: update all
  • v2021.02.26 26.02.2021 play-with-mpv-handler: 2021.02.26 Correct the URL format `mpv-handler` update to v0.1.7
  • v2021.02.25 25.02.2021 play-with-mpv-handler: 2021.02.25 Fix element ID conflict with youtube.
  • v2021.02.24 24.02.2021 play-with-mpv-handler: 2021.02.24 Note: settings will be reset. Format some code style.
  • v2021.02.22.2 22.02.2021 play-with-mpv-handler: 2021.02.22.2 mpv-handler update
  • v2021.02.22.1 22.02.2021 play-with-mpv-handler: 2021.02.22.1 mpv-handler update
  • v2021.02.22 22.02.2021 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 19.02.2021 play-with-mpv-handler: 2021.02.19 YouTube: match playlist url
  • v2021.02.17 17.02.2021 play-with-mpv-handler: 2021.02.17 Case-insensitive regex
  • v2021.02.16 16.02.2021 play-with-mpv-handler: 2021.02.16 Fix bilibili url match
  • v2021.02.09.1 09.02.2021 play-with-mpv-handler: 2021.02.09.1 Add new site support: - clips.twitch.tv
  • v2021.02.09 09.02.2021 play-with-mpv-handler: 2021.02.09 Add new site support: - twitch.tv
  • v2021.01.26 26.01.2021 play-with-mpv-handler: 2021.01.26 Hide button when video is fullscreen
  • v2021.01.14.2 14.01.2021 play-with-mpv-handler: 2021.01.14.2 update compatible infomation
  • v2021.01.14.2 14.01.2021 play-with-mpv-handler: 2021.01.14.2 update compatible infomation
  • v2021.01.14.1 14.01.2021 play-with-mpv-handler: update compatible info
  • v2021.01.14.1 14.01.2021 play-with-mpv-handler: 2020.01.14.1 Fix show scrollbar at firefox
  • v2021.01.14 14.01.2021 play-with-mpv-handler: 2020.01.14 Add incompatible infomation
  • v2021.01.01 31.12.2020 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 30.12.2020 userscript: 2020.12.30 Optimiz CSS
  • v2020.12.29.2 29.12.2020 userscript: 2020.12.29.2 Fix greasyfork not allow @require URL
  • v2020.12.27.2 27.12.2020 userscript: 2020.12.27.2 Click notification to check updates.
  • v2020.12.27.1 27.12.2020 mpv-handler: v0.1.1 simpify code add simple args parser add function to print version
  • v2020.12.27 27.12.2020 userscript: 2020.12.27 new function to notify mpv-handler updates
  • v2020.11.19 19.11.2020 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 18.11.2020 2020.11.18.1: Simplify code
  • v2020.11.18 18.11.2020 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 17.11.2020 play-with-mpv-handler.js: 2020.11.17.2 Fix youtube @match PATH
  • v2020.11.17.1 17.11.2020 Imported from URL
  • v2020.11.17 17.11.2020