Pornhub Progress Bar Thumbnail Preview

Pornhub 视频进度条悬停缩略图预览

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Advertisement:

יוצר
burgess Leo
התקנות יומיות
1
סה"כ התקנות
2
דירוגים
0 0 0
גרסה
4.1
נוצר
17-06-2026
עודכן
18-06-2026
Size
15.6 קילו-בייט
רישיון
MIT
חל על

Pornhub 视频进度条悬停缩略图预览 —— 鼠标悬停在进度条上时,浮动显示对应时间点的视频帧预览。

功能

  • 🖱️ 鼠标悬停进度条任意位置,显示对应时间点的缩略图
  • 🕐 实时显示时间戳(M:SSH:MM:SS 格式)
  • 🖼️ 支持两种缩略图格式:单帧图片和雪碧图(sprite sheet)
  • 📱 支持触屏设备(touchmove / touchend)
  • 🖥️ 全屏模式下正常工作
  • 🔄 自动检测页面动态加载的视频

效果图

效果图

使用

打开任意 Pornhub / Pornhub Premium 视频页面,将鼠标悬停在播放进度条上即可看到缩略图预览。

配置

编辑脚本顶部的 CFG 对象:

选项 默认值 说明
previewWidth 200 预览窗口宽度(px)
previewHeight 112 预览窗口高度(px)
hoverDelay 10 悬停延迟(ms),避免快速划过时频繁请求
debug false 开启调试日志

支持的站点

  • *.pornhub.com/view_video.php*
  • *.pornhubpremium.com/view_video.php*

原理

脚本从 Pornhub 页面的 flashvars_* 全局变量中提取缩略图数据,根据 URL 格式自动选择渲染模式:

  • 单帧模式 — 通过 urlPattern 模板按需加载独立缩略图
  • 雪碧图模式 — 从 sprite sheet 大图中裁剪对应帧区域绘制到 Canvas

进度条元素通过 .mgp_seekbar / .mgp_progressWrapper 等选择器自动定位。

License

MIT