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

Universal Picture-in-Picture

PiP button on video hover + keyboard shortcut (Alt+P)


點此查看下載連結位址https://update.greasyfork.org.cn/scripts/560554/Universal%20Picture-in-Picture.user.js

安装此脚本?
作者
TropicalFrog3
日安装量
0
总安装量
4
评分
0 0 0
版本
1.0.0
创建于
2025-12-28
更新于
2025-12-28
大小
11.9 KB
许可证
MIT
适用于
所有网站

Universal Picture-in-Picture

A Picture-in-Picture (PiP) button that appears on any web video.

Features

  • Floating button: Appears in the top-right corner of the video on hover
  • Keyboard shortcut: Alt+P to quickly toggle PiP
  • Smart detection: Automatically filters out ads
  • Customizable position: Drag and drop the button wherever you want
  • Remembered position: Your preferred position is saved between sessions
  • YouTube compatible: Works on YouTube and all other video sites
  • Auto-hide: Button disappears after 3 seconds

Usage

Floating button

  1. Hover over a video with your mouse
  2. A PiP button appears in the top-right corner
  3. Click it to activate Picture-in-Picture mode

Keyboard shortcut

  • Press Alt+P anytime to toggle PiP on the best detected video

Customize position

  • Move: Click and drag the button to your preferred position
  • Reset: Right-click the button to return to default position

Compatibility

Tested and working on:

  • YouTube
  • Twitch
  • Vimeo
  • Netflix
  • And most sites with HTML5 video players

Technical notes

  • The script uses native DOM methods (no innerHTML) to be compatible with YouTube's Trusted Types security policy
  • Button position is stored as a percentage to adapt to different video sizes
  • Videos that are too small (< 100px) or identified as ads are automatically ignored