mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Add support for watchlater redirect
This commit is contained in:
parent
8c5832c418
commit
d14a5e3fb9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
min/custom-navbar.min.js
vendored
2
min/custom-navbar.min.js
vendored
File diff suppressed because one or more lines are too long
@ -548,8 +548,13 @@ class WatchlaterList extends VideoList
|
||||
{
|
||||
return json.data.list.slice(0, 6).map(item =>
|
||||
{
|
||||
const pages = item.pages.map(it => it.cid);
|
||||
const page = item.cid === 0 ? 1 : pages.indexOf(item.cid) + 1;
|
||||
const href = settings.watchLaterRedirect ?
|
||||
`https://www.bilibili.com/video/av${item.aid}?p=${page}` :
|
||||
`https://www.bilibili.com/watchlater/#/av${item.aid}/p${page}`;
|
||||
return /*html*/`<li>
|
||||
<a target="_blank" href="https://www.bilibili.com/video/av${item.aid}">${item.title}</a>
|
||||
<a target="_blank" href="${href}">${item.title}</a>
|
||||
</li>`;
|
||||
});
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user