mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Show dead video titles in channals
This commit is contained in:
parent
fc7a8bd643
commit
7d40df315a
@ -237,7 +237,7 @@
|
||||
### 直播间勋章快速切换
|
||||
在直播区(live.bilibili.com)中, 可从`附加功能`中直接切换勋章和头衔.
|
||||
### 显示失效视频信息
|
||||
在空间的收藏夹中, 为已失效视频恢复标题和封面. 也可以使用`失效视频重定向`转到BiliPlus观看.
|
||||
在空间的收藏夹和频道中, 为已失效视频恢复标题和封面. 也可以使用`失效视频重定向`转到BiliPlus观看.
|
||||
|
||||
## 触摸
|
||||
### 顶栏
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
min/default-danmaku-settings.min.js
vendored
2
min/default-danmaku-settings.min.js
vendored
@ -1 +1 @@
|
||||
(()=>{return(e,t)=>{async function i(e,t){const i=await SpinQuery.select(()=>document.querySelector(e));if(!i){return}i.checked=t;raiseEvent(i,"change")}if(!e.enableDanmaku){i(".bilibili-player-video-danmaku-switch>input",false)}if(e.rememberDanmakuSettings){const i={subtitlesPreserve:".bilibili-player-video-danmaku-setting-left-preventshade input",smartMask:".bilibili-player-video-danmaku-setting-left-danmaku-mask input"};async function n(){const n=await SpinQuery.select(()=>document.querySelector(".bilibili-player-video-danmaku-setting"));if(!n){reutrn}await loadLazyPanel(".bilibili-player-video-danmaku-setting");setTimeout(()=>t.removeStyle("defaultDanmakuSettingsStyle"),300);for(const[t,n]of Object.entries(e.danmakuSettings)){const e=await SpinQuery.select(()=>document.querySelector(i[t]));if(e!==null&&e.checked!==undefined&&e.checked!==n){e.click()}}}async function a(){for(const t in e.danmakuSettings){const n=await SpinQuery.select(()=>document.querySelector(i[t]));if(!n){return}n.addEventListener("click",()=>{e.danmakuSettings[t]=n.checked;saveSettings(e)})}}n();a()}}})();
|
||||
(()=>{return(e,t)=>{async function i(e,t){const i=await SpinQuery.select(()=>document.querySelector(e));if(!i){return}i.checked=t;raiseEvent(i,"change")}if(!e.enableDanmaku){i(".bilibili-player-video-danmaku-switch>input",false)}if(e.rememberDanmakuSettings){const i={subtitlesPreserve:".bilibili-player-video-danmaku-setting-left-preventshade input",smartMask:".bilibili-player-video-danmaku-setting-left-danmaku-mask input"};async function n(){const n=await SpinQuery.select(()=>document.querySelector(".bilibili-player-video-danmaku-setting"));if(!n){return}await loadLazyPanel(".bilibili-player-video-danmaku-setting");setTimeout(()=>t.removeStyle("defaultDanmakuSettingsStyle"),300);for(const[t,n]of Object.entries(e.danmakuSettings)){const e=await SpinQuery.select(()=>document.querySelector(i[t]));if(e!==null&&e.checked!==undefined&&e.checked!==n){e.click()}}}async function a(){for(const t in e.danmakuSettings){const n=await SpinQuery.select(()=>document.querySelector(i[t]));if(!n){return}n.addEventListener("click",()=>{e.danmakuSettings[t]=n.checked;saveSettings(e)})}}n();a()}}})();
|
||||
2
min/settings-tooltip.min.js
vendored
2
min/settings-tooltip.min.js
vendored
File diff suppressed because one or more lines are too long
2
min/show-dead-video-title.min.js
vendored
2
min/show-dead-video-title.min.js
vendored
@ -1 +1 @@
|
||||
(()=>{return(t,e)=>{function i(){const e=$(".fav-video-list>li.disabled").removeClass("disabled");e.each((e,i)=>{const a=$(i);const r=a.attr("data-aid");const n=a.find("img").attr("alt");const l=(()=>{if(t.useBiliplusRedirect){return`https://www.biliplus.com/video/av${r}`}else{return`//www.bilibili.com/video/av${r}`}})();a.find(".i-watchlater").css("display","none");a.find("a.cover").attr("target","_blank").attr("href",l);a.find("a.title").attr("title",n).attr("target","_blank").attr("href",l).text(n)})}SpinQuery.any(()=>$(".fav-content"),()=>{Observer.childListSubtree(".fav-content",i)})}})();
|
||||
(()=>{return(t,e)=>{function i(){const e=$(".fav-video-list>li.disabled,.video-list>li.disabled").removeClass("disabled");e.each((e,i)=>{const a=$(i);const r=a.attr("data-aid");const s=a.find("img").attr("alt");const n=(()=>{if(t.useBiliplusRedirect){return`https://www.biliplus.com/video/av${r}`}else{return`//www.bilibili.com/video/av${r}`}})();a.find(".i-watchlater").css("display","none");a.find("a.cover").attr("target","_blank").attr("href",n);a.find("a.title").attr("title",s).attr("target","_blank").attr("href",n).text(s)})}SpinQuery.any(()=>$(".fav-content"),()=>{Observer.childListSubtree(".fav-content",i)});SpinQuery.any(()=>$("#app>.s-space"),()=>{Observer.childListSubtree("#app>.s-space",i)})}})();
|
||||
@ -58,7 +58,7 @@
|
||||
hideTopSearch: `将搜索框的推荐词替换为<span>搜索</span>.`,
|
||||
fullTweetsTitle: `在顶栏的动态预览框中, 总是展开完整的标题.`,
|
||||
fullPageTitle: `在视频选集列表中, 总是展开完整的标题.`,
|
||||
showDeadVideoTitle: `在空间的收藏夹中, 为已失效视频恢复标题和封面.`,
|
||||
showDeadVideoTitle: `在空间的收藏夹和频道中, 为已失效视频恢复标题和封面.`,
|
||||
useBiliplusRedirect: `将失效视频重定向到BiliPlus.`,
|
||||
touchNavBar: `删除顶栏右侧的一级链接(从<span>大会员</span>到<span>历史</span>), 以方便触屏设备快速预览信息. 被删除的链接可从各预览中的<span>查看更多</span>进入.`,
|
||||
comboLike: `为素质三连(长按点赞)启用触摸支持.`,
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
{
|
||||
function showTitle()
|
||||
{
|
||||
const deadVideos = $(".fav-video-list>li.disabled").removeClass("disabled");
|
||||
const deadVideos = $(".fav-video-list>li.disabled,.video-list>li.disabled").removeClass("disabled");
|
||||
deadVideos.each((_, it) =>
|
||||
{
|
||||
const $it = $(it);
|
||||
@ -37,5 +37,9 @@
|
||||
{
|
||||
Observer.childListSubtree(".fav-content", showTitle);
|
||||
});
|
||||
SpinQuery.any(() => $("#app>.s-space"), () =>
|
||||
{
|
||||
Observer.childListSubtree("#app>.s-space", showTitle);
|
||||
});
|
||||
};
|
||||
})();
|
||||
@ -34,7 +34,7 @@
|
||||
const panel = await SpinQuery.select(() => document.querySelector(".bilibili-player-video-danmaku-setting"));
|
||||
if (!panel)
|
||||
{
|
||||
reutrn;
|
||||
return;
|
||||
}
|
||||
await loadLazyPanel(".bilibili-player-video-danmaku-setting");
|
||||
// bilibili will hides the panel after 200ms delay
|
||||
|
||||
Loading…
Reference in New Issue
Block a user