Merge branch 'preview' of https://github.com/the1812/Bilibili-Evolved into preview

This commit is contained in:
the1812 2021-03-30 12:10:49 +08:00
commit aeeaec67bb

View File

@ -7,7 +7,7 @@ export interface Blackboard {
export const getBlackboards = async (): Promise<Blackboard[]> => { export const getBlackboards = async (): Promise<Blackboard[]> => {
if (dq('.international-home')) { if (dq('.international-home')) {
const initData = await SpinQuery.condition(() => unsafeWindow['__INITIAL_STATE__'], it => it !== undefined) const initData = await SpinQuery.condition(() => unsafeWindow['__INITIAL_STATE__'], it => it !== undefined)
return dqa('.home-slide .item') return dqa('.first-screen .home-slide .item')
.slice(0, 5) .slice(0, 5)
.map((it, index) => { .map((it, index) => {
const locID = it.querySelector('a')!.getAttribute('data-loc-id')! const locID = it.querySelector('a')!.getAttribute('data-loc-id')!