Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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