mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
JavaScript
function showTitle()
|
|
{
|
|
const deadVideos = $(".disabled[data-aid]").removeClass("disabled");
|
|
deadVideos.each((_, it) =>
|
|
{
|
|
const $it = $(it);
|
|
const aid = $it.attr("data-aid");
|
|
const title = $it.find("img").attr("alt");
|
|
const link = (() =>
|
|
{
|
|
if (settings.useBiliplusRedirect)
|
|
{
|
|
return `https://www.biliplus.com/video/av${aid}`;
|
|
}
|
|
else
|
|
{
|
|
return `//www.bilibili.com/video/av${aid}`;
|
|
}
|
|
})();
|
|
$it.find(".i-watchlater")
|
|
.css("display", "none");
|
|
$it.find("a.cover")
|
|
.attr("target", "_blank")
|
|
.attr("href", link);
|
|
$it.find("a.title")
|
|
.attr("title", title)
|
|
.attr("target", "_blank")
|
|
.attr("href", link)
|
|
.text(title);
|
|
});
|
|
}
|
|
// SpinQuery.any(() => $(".fav-content"), () =>
|
|
// {
|
|
// Observer.childListSubtree(".fav-content", showTitle);
|
|
// });
|
|
SpinQuery.any(() => $("#app>.s-space"), () =>
|
|
{
|
|
Observer.childListSubtree("#app>.s-space", showTitle);
|
|
}); |