Skip to content

Instantly share code, notes, and snippets.

@noih
Last active July 13, 2023 09:57
Show Gist options
  • Save noih/8590ee2296847e91af2af2b1416d4f1c to your computer and use it in GitHub Desktop.
Save noih/8590ee2296847e91af2af2b1416d4f1c to your computer and use it in GitHub Desktop.
fans to array
(async()=>{const b=document.getElementsByClassName("_aano")[0];await new Promise(a=>{const c=(d,e=5)=>(console.log("next",d,e),d===b.scrollHeight||0>=e?a():void(b.scrollTop=b.scrollHeight,setTimeout(()=>{c(b.scrollTop,d===b.scrollTop?e-1:e)},2e3)));c()}),console.log([...document.querySelectorAll("._aano span > span")].reduce((a,b,c)=>`${a}${c%2?",":"\n"}${b.innerText}`,"").split("\n").filter(a=>!!a))})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment