Skip to content

Instantly share code, notes, and snippets.

@guyromm
Created February 27, 2020 08:59
Show Gist options
  • Save guyromm/3410c91b9102b26efdf7d3e4e432c89e to your computer and use it in GitHub Desktop.
Save guyromm/3410c91b9102b26efdf7d3e4e432c89e to your computer and use it in GitHub Desktop.
a way to print your list of domains registered with namecheap from their horrendous interface
doms=[];prevlen=0;scrollpos=0;scrollinc=300;
function work() {
prevlen = doms.length;
for (let e of document.querySelectorAll('domain-icon')) {
let dom = e.nextSibling.nextSibling.textContent;
if (!doms.includes(dom))
{
console.log(dom);
doms.push(dom);
}
}
scrollpos+=scrollinc;
//console.log('scrolling!',scrollpos);
window.scrollTo(0,scrollpos);
window.setTimeout(work,2000);
//console.log('exhausted!');
}
work();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment