B站动态首页鼠标悬停完整标题和简介显示

在B站动态页(t.bilibili.com)鼠标悬停标题/简介一小段时间后,显示完整标题/简介,不用点进视频就能知道主要内容。具有高优先级样式以避免冲突。

作者
Smetona
日安装量
0
总安装量
4
评分
0 0 0
版本
2.0.0
创建于
2025-08-08
更新于
2025-08-12
大小
6.7 KB
许可证
MIT
适用于

📝 简介 (Introduction)

你是否也曾为B站动态页(t.bilibili.com)上那些因过长而被截断的视频标题感到烦恼?光标悬停上去也只显示同样不完整的内容。这个脚本就是为了解决这个小小的痛点而生。

Have you ever been annoyed by video titles on Bilibili's dynamic feed (t.bilibili.com) that are truncated because they are too long? This script was born to solve this small but frustrating problem.


✨ 功能 (Features)

  • 延迟显示:鼠标在视频标题上悬停一小段时间后(默认500毫秒),才会显示完整的标题提示框(Tooltip),避免了在快速浏览时恼人的闪烁。
  • 智能跟随:提示框会紧跟您的鼠标光标。
  • 样式精美:提示框拥有简洁、带阴影的UI样式。
  • 超高兼容性:使用了非常“健壮”的CSS样式,拥有最高的z-index层级和强制可见性,能有效避免被B站页面原有样式或其他脚本/插件所覆盖或隐藏,确保在各种环境下都能正常显示。
  • 轻量高效:代码简洁,不影响页面性能,并且在鼠标移开后会彻底清除自身,不留任何残余。

  • Delayed Display: The tooltip with the full title only appears after hovering over a title for a short period (default: 500ms), preventing annoying flickering during quick Browse.

  • Smart Tracking: The tooltip follows your mouse cursor.

  • Polished UI: Features a clean UI with a subtle shadow.

  • Highly Compatible: Uses robust CSS with the maximum z-index and forced visibility to prevent being hidden or overlapped by Bilibili's native styles or other scripts/extensions.

  • Lightweight & Efficient: Clean code that doesn't impact page performance and removes itself completely on mouse-out.


🔧 自定义 (Customization)

您可以直接在脚本代码中修改延迟时间。找到下面这行代码,将 500 修改为您喜欢的毫秒数即可。 You can easily edit the delay time within the script's code. Find the following line and change 500 to your desired value in milliseconds.

const HOVER_DELAY = 500;

💬反馈 (Feedback)

如果您有任何问题或建议,欢迎在本页面进行反馈。 If you have any questions or suggestions, feel free to leave feedback on this page.