Fix(black-list): adapt new home page (fix #4510)

This commit is contained in:
snowrain 2023-11-22 16:20:03 +08:00
parent 44f3c55623
commit 5908ec8bca

View File

@ -1,8 +1,8 @@
import { defineComponentMetadata } from '@/components/define'
import { mainSiteUrls } from '@/core/utils/urls'
import { allMutationsOn } from '@/core/observer'
import { selectAll } from '@/core/spin-query'
import { registerData, getData } from '@/plugins/data'
import { mainSiteUrls } from '@/core/utils/urls'
import { getData, registerData } from '@/plugins/data'
import { BlackListDataKey } from './common'
const name = 'blackList'
@ -14,7 +14,7 @@ const entry = async ({ settings: { options } }) => {
}
registerData(BlackListDataKey, blackListData)
const billGrid = await selectAll('.bili-grid')
const billGrid = await selectAll('.feed2')
allMutationsOn(billGrid, async () => {
const videos = await selectAll('.bili-video-card')
if (!videos) {