Created
August 16, 2022 08:49
-
-
Save codepo8/1279256d0b912d6b67705512292e4787 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.body.addEventListener('click', e=>{ | |
let t = e.target; | |
if(t.classList.contains('row')){ | |
let p = t.parentElement.parentElement.parentElement; | |
let s = t.parentElement.parentElement; | |
s.style.background = 'yellow'; | |
let elm = [...t.querySelectorAll('.display-text')]; | |
elm = elm.filter(x=>x.innerText=='Edge\\Developer Tools'); | |
if(elm[0]){ | |
elm[0].parentElement.nextElementSibling.nextElementSibling.click(); | |
} | |
s.style.background = 'white'; | |
p.nextElementSibling.scrollIntoView({behavior: "smooth"}) | |
p.nextElementSibling.firstElementChild.style.background = 'yellow'; | |
} | |
}) | |
document.body.addEventListener('mouseover', e=>{ | |
let t = e.target; | |
if (t.classList.contains('search-result')){ | |
t.querySelector('.row').style.paddingBottom = '3em'; | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment