Created
February 27, 2020 08:59
-
-
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
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
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