simplified

This commit is contained in:
2023-04-09 22:41:06 -05:00
parent 888687f2f5
commit 7caaec956f
2 changed files with 8 additions and 8 deletions

View File

@@ -14,10 +14,10 @@ var Elems = `
.video-player__overlay:nth-child(1) > div:nth-child(1) > div:nth-child(1),
.click-handler
`
var getElems = () => {
const elems = Elems.split(',').filter(l => l.trim().length)
return elems.map(elem => document.querySelector(elem.trim()))
}
var getElems = () =>
Elems.split(',')
.filter(l => l.trim().length)
.map(elem => document.querySelector(elem.trim()))
var elemsSet = () =>
getElems().forEach(elem => elem && (elem.style.pointerEvents = 'none'))
var elemsClear = () =>