mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
optimize
This commit is contained in:
parent
f7af330f28
commit
49dc3f92db
@ -1,5 +1,5 @@
|
||||
import { getCsrf, delay } from '@/core/utils'
|
||||
import { sq } from '@/core/spin-query'
|
||||
import { select, sq } from '@/core/spin-query'
|
||||
import { urlChange } from '@/core/observer'
|
||||
import { Toast } from '@/core/toast'
|
||||
|
||||
@ -121,7 +121,7 @@ const addButton = async () => {
|
||||
const csrf = getCsrf()
|
||||
|
||||
// add a button
|
||||
const pageHead = await sq(() => document.getElementsByClassName('page-head')[0])
|
||||
const pageHead = await select('.page-head')
|
||||
const rel = pageHead.children[1]
|
||||
const button = document.createElement('a')
|
||||
// 什么离谱class名,play打错了可还行
|
||||
|
||||
Loading…
Reference in New Issue
Block a user