mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-09-12 12:12:14 +08:00
improve bilibili video path detection
This commit is contained in:
@@ -3,6 +3,7 @@ import { config } from '../index.mjs'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
init: async (hostname, userConfig, getInput, mountComponent) => {
|
init: async (hostname, userConfig, getInput, mountComponent) => {
|
||||||
|
if (location.pathname.includes('/bangumi')) return false
|
||||||
try {
|
try {
|
||||||
// B站页面是SSR的,如果插入过早,页面 js 检测到实际 Dom 和期望 Dom 不一致,会导致重新渲染
|
// B站页面是SSR的,如果插入过早,页面 js 检测到实际 Dom 和期望 Dom 不一致,会导致重新渲染
|
||||||
await waitForElementToExistAndSelect('img.bili-avatar-img')
|
await waitForElementToExistAndSelect('img.bili-avatar-img')
|
||||||
|
|||||||
Reference in New Issue
Block a user