Skip to content

Commit

Permalink
improve bilibili video path detection
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Mar 3, 2024
1 parent 08a8920 commit e5700a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/content-script/site-adapters/bilibili/index.mjs
Expand Up @@ -3,6 +3,7 @@ import { config } from '../index.mjs'

export default {
init: async (hostname, userConfig, getInput, mountComponent) => {
if (location.pathname.includes('/bangumi')) return false
try {
// B站页面是SSR的,如果插入过早,页面 js 检测到实际 Dom 和期望 Dom 不一致,会导致重新渲染
await waitForElementToExistAndSelect('img.bili-avatar-img')
Expand Down

0 comments on commit e5700a5

Please sign in to comment.