Last active
July 13, 2023 09:57
-
-
Save noih/8590ee2296847e91af2af2b1416d4f1c to your computer and use it in GitHub Desktop.
fans to array
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
(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