油猴脚本:视频播放控制工具 (Video Player Control Tool)
视频播放全屏锁屏防误触,同时提供视频控制(快进,暂停,后退)
Video playback full-screen lock screen to prevent accidental touches, while providing video controls (fast forward, pause, rewind)
欢迎访问Github并与我交流
Welcome to visit GitHub and communicate with me
Language / 语言
English
This Tampermonkey script aims to provide a convenient lock button for browser video playback in fullscreen mode, effectively preventing accidental screen touches and ensuring an uninterrupted viewing experience. In addition, a video playback control function (including pause, fast forward, rewind) is also provided. It's particularly useful for users watching videos on Windows tablets.
Features
- Display a gray circular lock button on the left side of the interface during browser video fullscreen playback.
- Clicking the button will lock the screen, preventing accidental clicks that may disrupt video playback; the button turns green.
- Click the button again to unlock the screen and restore touch functionality.
- The button automatically hides when exiting fullscreen video mode.
- Under full-screen conditions, the buttons will automatically disappear after 3 seconds of inactivity on the screen. They will reappear upon further interaction.
- Version 2.1 introduces video playback control tools: pause, fast forward, rewind (not currently compatible with Tencent Video).
Supported Websites
- Youku (youku.com)
- iQiyi (iqiyi.com)
- iQiyi International (iq.com)
- Tencent Video (v.qq.com) (Currently, there is no support for video playback pause, fast forward, and rewind control.)
- Tudou (tudou.com)
- YouTube (youtube.com)
- Bilibili (bilibili.com)
Installation instructions
- Install the Tampermonkey browser extension (if not already installed).
- Click here to install the Tampermonkey script.
- Visit any website that supports fullscreen video playback and start using the lock feature.
Usage guide
- When in full-screen mode, a gray circular button will appear on the left side.
- After clicking the button, it will turn green. At this point, the screen becomes locked. To unlock, please click the button again.
- Click the button in the upper right corner of the video to pause/play, fast forward, and rewind the video (image not displayed).
Contributions
Contributions and feedback are welcome! Please use GitHub Issues and Pull Requests for contributions.
中文
这款油猴脚本旨在为浏览器视频全屏播放时提供方便的锁屏按键,有效防止误触屏幕,提供持续的无干扰观看体验。此外,还提供了一个视频播放控制功能(包括暂停、快进、后退)。特别适用于使用Windows平板观看视频的用户。
特性
- 在浏览器视频全屏播放时,在界面左侧显示一个灰色圆形锁定屏幕按钮。
- 点击按钮将锁定屏幕,防止点击干扰视频播放,按钮变为绿色。
- 再次点击按钮解锁屏幕,恢复点击功能。
- 在退出视频全屏模式时,按钮自动隐藏。
- 在全屏条件下,屏幕无操作3秒后,将自动隐藏按钮。再次操作后,按钮出现。
- 2.1版本新增视频播放控制工具:暂停、快进、后退。
支持的网站
- 优酷网(youku.com)
- 爱奇艺(iqiyi.com)
- 爱奇艺国际版(iq.com)
- 腾讯视频(v.qq.com)(暂时没有适配视频播放暂停、快进、后退控制功能)
- 土豆网(tudou.com)
- YouTube(youtube.com)
- 哔哩哔哩(bilibili.com)
安装指南
- 安装油猴浏览器插件(如果尚未安装)。
- 点击此处安装油猴脚本。
- 进入任意支持全屏视频播放的网站,开始使用锁屏功能。
使用说明
- 点击该按钮后,该按键变成绿色。此时视频被锁定。需要解锁请重新点击该按键。
- 点击视频右上方的按键实现视频的暂停/播放,快进,后退(图片未显示)。
贡献
欢迎贡献代码和提供反馈!请通过GitHub的Issue和Pull Request进行。