Last active
December 6, 2025 10:24
-
-
Save Dobby233Liu/cb70b479d0127f000860f416a93053c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Card full title | |
| // @namespace https://dobby233liu.neocities.org | |
| // @version v1.0.2 | |
| // @description Present full card title on hover | |
| // @author Liu Wenyuan | |
| // @match https://t.bilibili.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| "use strict"; | |
| const CARD_TITLE_QUERY = [ | |
| ".bili-dyn-card-article__title", ".bili-dyn-card-common__title", ".bili-dyn-card-courses__title", | |
| ".bili-dyn-card-live__title", ".bili-dyn-card-medialist__title", ".bili-dyn-card-music__title", | |
| ".bili-dyn-card-pgc__title", ".bili-dyn-card-subscription__title", ".bili-dyn-card-video__title", | |
| ".bili-dyn-card-ugc__detail__title", ".bili-dyn-card-reserve__title", ".bili-dyn-card-match__subTitle", | |
| ".bili-dyn-card-match__title", ".dyn-card-opus__title", | |
| ".bili-dyn-search-trendings .trending-list .trending .text" | |
| ].join(","); | |
| document.addEventListener("mouseover", function(ev) { | |
| if (!(ev.target && ev.target.matches(CARD_TITLE_QUERY))) { | |
| return; | |
| } | |
| if (!ev.target.title) { | |
| ev.target.title = ev.target.innerText; | |
| } | |
| }); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment