Remove disablePictureInPicture

Removes the disablePictureInPicture attribute to enable Picture-in-Picture on all videos. Ensures the native PiP button is visible where possible.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
Opus-X
Denně instalací
0
Celkem instalací
3
Hodnocení
0 0 0
Verze
1.01
Vytvořeno
21. 12. 2025
Aktualizováno
21. 12. 2025
Size
4,8 KB
Licence
MIT
Spustit na
všech stránkách

Remove disablePictureInPicture

Description:

Automatically removes the disablePictureInPicture attribute from <video> elements, enabling native Picture-in-Picture (PiP) mode on websites that intentionally block it (e.g., Disney+, Max, Crunchyroll). The script activates only on pages containing video elements and ensures the browser’s built-in PiP button is visible where supported.

Key Features:

  • Removes both the boolean property and HTML attribute disablePictureInPicture.
  • Enables standard video controls (controls=true) to reveal the native PiP button (especially in Chrome/Edge).
  • Runs early (document-start) and uses MutationObserver for dynamically loaded videos (perfect for Netflix, Disney+, etc.).
  • Activates only on pages with videos – efficient and lightweight.
  • Fully compatible with Greasemonkey, Tampermonkey, and Violentmonkey.
  • No permissions or external resources required.