mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
28 lines
938 B
JavaScript
28 lines
938 B
JavaScript
(() =>
|
|
{
|
|
return (settings, resources) =>
|
|
{
|
|
function showTitle()
|
|
{
|
|
const deadVideos = $(".fav-video-list>li.disabled").removeClass("disabled");
|
|
deadVideos.each((_, it) =>
|
|
{
|
|
const $it = $(it);
|
|
const aid = $it.attr("data-aid");
|
|
const title = $it.find("img").attr("alt");
|
|
$it.find("a.cover")
|
|
.attr("target", "_blank")
|
|
.attr("href", `//www.bilibili.com/video/av${aid}`);
|
|
$it.find("a.title")
|
|
.attr("title", title)
|
|
.attr("target", "_blank")
|
|
.attr("href", `//www.bilibili.com/video/av${aid}`)
|
|
.text(title);
|
|
});
|
|
}
|
|
SpinQuery.any(() => $(".fav-content"), () =>
|
|
{
|
|
Observer.childListSubtree(".fav-content", showTitle);
|
|
});
|
|
};
|
|
})(); |