Remove disablePictureInPicture

移除 disablePictureInPicture 属性,使所有视频支持画中画。尽量确保原生画中画按钮可见。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Opus-X
日安装量
0
总安装量
3
评分
0 0 0
版本
1.01
创建于
2025-12-21
更新于
2025-12-21
大小
4.8 KB
许可证
MIT
适用于
所有网站

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.