mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Remove tooltip on close (fix #1690)
This commit is contained in:
parent
8bce5abd8f
commit
a19e7d0153
2
min/gui-settings.min.js
vendored
2
min/gui-settings.min.js
vendored
File diff suppressed because one or more lines are too long
@ -19,9 +19,13 @@ function syncGui () {
|
||||
checkBoxes.forEach(it => it.checked = settings[it.getAttribute('key')])
|
||||
}
|
||||
function setupEvents () {
|
||||
document.querySelector('.gui-settings-mask').addEventListener('click', () => {
|
||||
document.querySelectorAll('.gui-settings-widgets-box,.gui-settings-box,.gui-settings-mask,.bilibili-evolved-about')
|
||||
dq('.gui-settings-mask').addEventListener('click', () => {
|
||||
dqa('.gui-settings-widgets-box,.gui-settings-box,.gui-settings-mask,.bilibili-evolved-about')
|
||||
.forEach(it => it.classList.remove('opened'))
|
||||
const tooltip = dq('.gui-settings-tooltip')
|
||||
if (tooltip) {
|
||||
tooltip.innerHTML = ''
|
||||
}
|
||||
})
|
||||
textBoxes.forEach(element => {
|
||||
element.setAttribute('placeholder', settings[element.getAttribute('key')])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user