improve bilibili video path detection

This commit is contained in:
josc146
2024-03-03 23:03:05 +08:00
parent 08a8920661
commit e5700a5b36
@@ -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')