This is a Tampermonkey script that enables a mini-player for YouTube videos. When you scroll down, the video will appear in a floating window, allowing you to browse comments or other content while keeping the video in view.
- Automatically switches to a mini-player when scrolling down.
- The mini-player is draggable.
- Restores the original player when scrolling back up.
- Works seamlessly with YouTube's existing features.
- Install the Tampermonkey extension on your browser.
- Copy the script from this repository.
- Open Tampermonkey, click the "Add Script" tab, and paste the code into the editor.
- Save the script and refresh the YouTube page.
- Open a YouTube video page.
- Scroll down, and the mini-player will appear in the bottom-right corner.
- Drag or resize the mini-player as needed.
- Scroll back up to restore the original player.
-
Q: Why is the mini-player not appearing?
A: Ensure Tampermonkey is enabled and the script is installed correctly. Refresh the page if necessary. -
Q: How do I uninstall the script?
A: Open Tampermonkey, find the script in the dashboard, and delete it.
This project is licensed under the MIT License.
这是一个 Tampermonkey 脚本,用于为 YouTube 添加小窗播放功能。当您向下滚动页面时,视频会以悬浮窗口的形式显示,方便您在观看视频的同时浏览评论或其他内容。
- 向下滚动时自动切换到小窗播放模式。
- 小窗支持拖动。
- 向上滚动时恢复原始播放器。
- 与 YouTube 的现有功能无缝兼容。
- 在浏览器中安装 Tampermonkey 插件。
- 从本仓库复制脚本代码。
- 打开 Tampermonkey,点击“添加脚本”选项卡,将代码粘贴到编辑器中。
- 保存脚本并刷新 YouTube 页面。
- 打开 YouTube 视频页面。
- 向下滚动,小窗播放器会出现在右下角。
- 根据需要拖动或调整小窗大小。
- 向上滚动以恢复原始播放器。
-
问:为什么小窗播放器没有出现?
答:请确保 Tampermonkey 已启用且脚本已正确安装。如有必要,请刷新页面。 -
问:如何卸载脚本?
答:打开 Tampermonkey,在仪表盘中找到脚本并删除。
本项目遵循 MIT 许可证。