mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
改进getBlackboards
This commit is contained in:
parent
c22e9e932b
commit
ad9352ca5a
@ -7,8 +7,9 @@ export interface Blackboard {
|
||||
export const getBlackboards = async (): Promise<Blackboard[]> => {
|
||||
if (dq('.international-home')) {
|
||||
const initData = await SpinQuery.condition(() => unsafeWindow['__INITIAL_STATE__'], it => it !== undefined)
|
||||
let half = dqa('.home-slide .item').length / 2
|
||||
return dqa('.home-slide .item')
|
||||
.slice(0, 5)
|
||||
.slice(0, half)
|
||||
.map((it, index) => {
|
||||
const locID = it.querySelector('a')!.getAttribute('data-loc-id')!
|
||||
return {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user