Merge pull request #4534 from snowraincloud/preview-fixes

Fix(black-list): adapt new home page (fix #4510)
This commit is contained in:
Grant Howard 2023-11-22 19:54:04 +08:00 committed by GitHub
commit ca6ae416b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {