Iwara Like/View Ratio Filter

智能处理 K/M 单位,当 (点赞数/观看数) 低于指定百分比时添加遮罩。

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

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

ئاپتورى
gladiatorresidue
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
14
باھا نومۇرى
0 0 0
نەشرى
1.1
قۇرۇلغان ۋاقتى
2025-12-15
يېڭىلانغان ۋاقتى
2025-12-15
Size
7.1 KB
ئىجازەتنامىسى
MIT
قوللايدىغىنى

简介

在 Iwara 浏览视频时,是否经常遇到封面党或质量参差不齐的视频? 本脚本旨在帮助你快速筛选高质量内容。它会自动计算列表中每个视频的 (点赞数 / 观看数) 比率。当该比率低于设定的阈值(默认 3%)时,脚本会为视频封面添加一个半透明的黑色遮罩,让你一眼识别出“低评分”视频。

核心功能

1. 🧠 智能数值解析 (Smart Unit Parsing)

Iwara 的数字显示格式不统一(例如 6.0K 观看 vs 401 点赞)。 本脚本内置了智能解析引擎,能够完美处理以下单位换算,确保计算绝对准确:

  • K (千): 自动识别 6.0K6000
  • M (百万): 自动识别 1.5M1500000
  • 纯数字: 自动识别 401401

2. 🛡️ 非侵入式设计 (Non-Intrusive)

  • 鼠标悬停自动消失: 当你的鼠标移到被遮挡的视频上时,遮罩会立即淡出,完全不会阻挡你查看封面或点击视频
  • 点击穿透: 遮罩层配置了 pointer-events: none,即使遮罩显示时,你也可以直接点击视频链接,没有任何操作阻碍。

3. ⚙️ 动态阈值配置

觉得默认的 3% 太严格或太宽松?

  • 你可以随时通过 油猴菜单 (Tampermonkey Menu) 修改阈值。
  • 修改后无需刷新页面,脚本会立即重新计算并更新当前列表。

4. 🔄 支持动态加载

无论是无限滚动加载更多视频,还是翻页,脚本都会利用 MutationObserver 自动监控并处理新出现的视频,无需手动刷新。


使用说明

  1. 安装脚本:点击安装即可生效。
  2. 浏览页面:打开 Iwara 视频列表页(如订阅页、分类页)。
  3. 观察效果
    • 如果你看到视频封面变暗,并显示类似 L/V: 0.8% 的字样,说明该视频的点赞率低于设定值。
    • 遮罩上会同时显示原始数据对比(如 👍401 / 👀50.0k),供你参考。
  4. 调整设置
    • 点击浏览器右上角的 Tampermonkey 扩展图标。
    • 在菜单中找到 “修改过滤阈值”
    • 输入你想要的百分比数值(例如输入 5 代表 5%)。

常见问题

Q: 为什么有些视频虽然观看数很高,但还是被遮住了? A: 脚本只看“点赞/观看”的比例。如果一个视频有 50k 播放,但只有 100 个赞(比例 0.2%),通常意味着内容可能不符合大多数人的口味(或仅仅是封面吸引人),因此会被脚本标记。

Q: 默认阈值是多少? A: 默认为 3%。这意味着每 100 次观看中,至少需要有 3 个点赞才不会被遮挡。你可以根据自己的喜好在菜单中调整。


更新日志

v1.1

  • 默认阈值调整为 3%。
  • 优化了设置存储逻辑。
  • 增加了对 K/M 单位的智能换算支持。
  • 遮罩层现在会显示具体的数值详情。

v1.0

  • 首个版本发布。

(脚本由 Gemini 协助生成,逻辑经人工验证)