Skip to content

Instantly share code, notes, and snippets.

@jemsgit
Last active February 23, 2020 20:59
Show Gist options
  • Save jemsgit/1d2da68652eda7e51b274654ed5f4ba0 to your computer and use it in GitHub Desktop.
Save jemsgit/1d2da68652eda7e51b274654ed5f4ba0 to your computer and use it in GitHub Desktop.
function scroll(prevlast){
let els = document.querySelectorAll('.wo9IH');
let last = els[els.length -1]
if(last != prevlast) {
last.scrollIntoView();
prevlast = last;
setTimeout(function(){scroll(prevlast)},2000)
}
}
scroll(null);
sub = document.querySelectorAll('.wo9IH a.notranslate');
let res = [];
sub.forEach(item => { res.push(item.getAttribute('href')) } )
sub = document.querySelectorAll('.wo9IH a.notranslate');
let res2 = [];
sub.forEach(item => { res2.push(item.getAttribute('href')) } )
let difference = res.filter(x => res2.includes(x));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment