JavSS

为 javdb、javbus 添加视频缩略图,菜单栏可直接按番号查询

ของเมื่อวันที่ 20-07-2025 ดู เวอร์ชันล่าสุด

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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!)

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!)

ผู้เขียน
vortexecho
คะแนน
0 0 0
เวอร์ชัน
2.0
สร้างเมื่อ
06-07-2025
อัปเดตเมื่อ
20-07-2025
Size
19.5 กิโลไบต์
สัญญาอนุญาต
MIT
ปรับใช้กับ

JavSS

  • javdb movie-list 宽度 100%
  • javdb movie-list 方向键滚动与翻页
  • 导航栏和扩展菜单栏可直接按番号查找缩略图

// @connect * 是因为要跨域查找图片地址,需要允许全部

其他网站可添加到 @match 使用菜单栏搜索

配置

  • TIMEOUT = 5000 超时时间为 5000ms(5s),即每次 XHR 请求超过 5s 直接跳过,使用下一个图源进行查找,所以需要根据自己的代理速度设置。值太低会导致能获取到缩略图但很快被跳过,值太高可能会导致卡在 DNS 解析或服务器未响应时间过长,例如配置为 5s 时,一个有两个 stage 的图源会耗时 10s 才跳到第二个图源查找

  • DEBUG_MODE = true 时会测试所有图源以及耗时,结果输出在开发者工具控制台,方便调整图源的查找顺序

XXXX-XXX
    Source javstore
   ⏳ 耗时: 1234.20ms (1.2s)
    Source javbee
   ⏳ 耗时: 4735.10ms (4.7s)
    Source 3xplanet
   ⏳ 耗时: 1910.40ms (1.9s)
  • IMAGE_SOURCES 为缩略图源,会按顺序查找并显示第一个找到的缩略图,有其他图源也可以反馈添加

  • SITE_CONFIGS 为各种 CSS 选择器,番号、跳转链接插入位置、图片插入位置等选择器

图源

  • javstore 速度快
  • javbee 资源全,但速度慢
  • 3xplanet 有验证问题,一段时间内需要先点击图片跳转一次
  • javstore old 图源在搜索旧番号时使用,需要的话可以取消注释

补充

localStorage 存储按源(Origin)隔离,不同的网站无法访问到相同番号的缓存地址

如果有需要所有网站访问同一缓存,可以在 // ==UserScript== 里面添加:

// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_deleteValue

并替换脚本中的三处:

  • localStorage.getItem --> GM_getValue
  • localStorage.setItem --> GM_setValue
  • localStorage.removeItem --> GM_deleteValue