你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/559690-remove-disablepictureinpicture,源站連結 點此以跳轉

Remove disablePictureInPicture

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



點此查看下載連結位址https://update.greasyfork.org.cn/scripts/559690/Remove%20disablePictureInPicture.user.js

安装此脚本?
作者
Opus-X
日安装量
0
总安装量
7
评分
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.