-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLinkedIn Page Expander
1 lines (1 loc) · 1.3 KB
/
LinkedIn Page Expander
1
javascript:(function()%7Bfunction scrollToSmoothly(pos%2C time) %7Bvar currentPos %3D window.pageYOffset%3Bvar start %3D null%3Bif(time %3D%3D null) time %3D 500%3Bpos %3D %2Bpos%2C time %3D %2Btime%3Bwindow.requestAnimationFrame(function step(currentTime) %7Bstart %3D !start %3F currentTime %3A start%3Bvar progress %3D currentTime - start%3Bif (currentPos < pos) %7Bwindow.scrollTo(0%2C ((pos - currentPos) * progress %2F time) %2B currentPos)%3B%7D else %7Bwindow.scrollTo(0%2C currentPos - ((currentPos - pos) * progress %2F time))%3B%7Dif (progress < time) %7Bwindow.requestAnimationFrame(step)%3B%7D else %7Bwindow.scrollTo(0%2C pos)%3B%7D%7D)%3B%7Dasync function expander(tag%2Cx)%7Bvar rando %3D (n) %3D> Math.round(Math.random() * n)%3Bvar delay %3D (ms) %3D> new Promise(res %3D> setTimeout(res%2C ms))%3BscrollToSmoothly(document.body.getBoundingClientRect().height%2C600)%3Bawait delay(1000)%3Blet see_mores %3D Array.from(document.getElementsByTagName(tag)).filter(i%3D> x.test(i.innerText))%3Bfor(let i%3D(see_mores.length-1)%3B i>-1%3B i--)%7BscrollToSmoothly(see_mores%5Bi%5D.getBoundingClientRect().y%2C500)%3Bawait delay(550)%3Bsee_mores%5Bi%5D.click()%3Bawait delay(100)%3B%7DscrollToSmoothly(document.body.getBoundingClientRect().height%2F3%2C600)%3Bawait delay(500)%3B%7Dexpander('button'%2C%2Fsee more%2Fi)%7D)()