mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
24 lines
628 B
TypeScript
24 lines
628 B
TypeScript
let eventAttached = false
|
|
export const disableProfilePopup = () => {
|
|
if (document.URL.replace(location.search, '') === 'https://t.bilibili.com/') {
|
|
if (eventAttached) {
|
|
return
|
|
}
|
|
(async () => {
|
|
const list = await SpinQuery.select('.live-up-list') as HTMLElement
|
|
if (list !== null) {
|
|
list.addEventListener('mouseenter', e => {
|
|
if (settings.fixedSidebars || settings.extendFeedsLive) {
|
|
e.stopImmediatePropagation()
|
|
}
|
|
}, { capture: true })
|
|
eventAttached = true
|
|
}
|
|
})()
|
|
}
|
|
}
|
|
export default {
|
|
export: {
|
|
disableProfilePopup,
|
|
},
|
|
} |