Skip to content

Instantly share code, notes, and snippets.

@codepo8
Created August 16, 2022 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codepo8/1279256d0b912d6b67705512292e4787 to your computer and use it in GitHub Desktop.
Save codepo8/1279256d0b912d6b67705512292e4787 to your computer and use it in GitHub Desktop.
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