Picture-in-Picture Anything EN
Borys Melnyk · Firefox
Native Picture-in-Picture mode for anything, not just videos.
简介
An extension that allows you to use Picture-in-Picture mode on any element of any website.
This extension allows you to place any web page element into an Always-on-Top window, similar to video Picture-in-Picture mode, but now for any element.
It utilises a new Document Picture-in-Picture API (https://developer.chrome.com/docs/web-platform/document-picture-in-picture) and works natively in Firefox for desktop. Whether you want to have a video with proper controls and subtitles on top of your screen or an article that you are taking inspiration from before your eyes, this extension will help you.
Please note, however, that some pages will not behave correctly when their elements are in PiP mode.
How to use:
Press a keyboard shortcut (Ctrl-Shift-P on Mac OS, ALT-Shift-P on Windows)
or
Click on the extension icon in the toolbar
or
Right-click on the page and select "Picture-in-Picture Anything" to open the Element Selection Overlay
Select an element by clicking the left mouse button on it.
Holding a Shift button when selecting an element will open a Precise Selection Panel. There, you can navigate the element tree and select precisely an element you want.
Pressing ESC before selecting an element will close the window.
Sometimes, you may want to play around with the element you choose to achieve the desired effect (selecting either a parent or child element may help you if an element doesn't behave correctly).
Please let me know if something needs to be fixed or if you have ideas for improvement.
Github repository:
https://github.com/boryssey/picture-in-picture-anything
Picture-in-Picture Anything 是做什么的
Picture-in-Picture Anything 是一款面向 Firefox 的开发者工具类扩展,主要用来调试页面、查看样式与请求、测试接口、辅助前端开发。官方对它的介绍是:Native Picture-in-Picture mode for anything, not just videos.在Firefox 附加组件商店(AMO)上,它当前版本 1.1.0,评分 5(1 人评价),约 93 名用户。
适合什么人用
从功能定位看,Picture-in-Picture Anything 更适合前端工程师、测试与需要经常查看页面结构的用户。如果你平时只是偶尔遇到相关需求,用浏览器自带功能也能凑合;但如果这件事每天都发生,装一个专门处理它的扩展通常比手动操作省事得多。
怎么安装 Picture-in-Picture Anything
- 打开Firefox 附加组件商店(AMO)上的官方页面;
- 点「添加到浏览器」并确认权限提示;
- 装好后在扩展列表里固定图标,方便随时开关。
本站只做索引与介绍,安装包来自官方商店。如果商店页面提示当前地区不可用,说明该扩展未在你所在区域上架。
常见问题
Picture-in-Picture Anything 是免费的吗?
Picture-in-Picture Anything 在Firefox 附加组件商店(AMO)免费提供下载。它是浏览器扩展,装上就能直接用,不需要注册账号。
Picture-in-Picture Anything 安全吗?
它只申请了 0 项权限,范围比较克制,没有申请「读取所有网站数据」这种大权限。
Picture-in-Picture Anything 支持哪些浏览器?
当前收录的版本来自Firefox 附加组件商店(AMO),适用于 Firefox。同一个扩展在其他商店可能有对应版本,但功能与版本号不一定相同。
怎么卸载 Picture-in-Picture Anything?
在扩展管理页找到 Picture-in-Picture Anything,点移除即可。它在本地保存的设置会一起清掉,不会残留数据。
权限清单 来自 manifest.json 原文
接口权限 4
activeTabcontextMenusscriptingstorage