Last active
October 14, 2024 01:41
-
-
Save SeanMcGrath/fb4f9e1869a2252738c9398d5ceb5395 to your computer and use it in GitHub Desktop.
JS code to share all items in a poshmark closet to followers and all available events
cycleDelta
is the interval between runs of the share
function. the value of cycleDelta
itself is constant. setInterval(x, y)
runs the specified function x
every y
milliseconds.
updated to incorporate @ianmcilwraith 's changes (thanks!) and also stop scrolling down the page once sold items are found.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@SeanMcGrath Thanks for sharing this code! I have a question about the last 2 lines:
I'm presuming that cycleDelta get incremented after it's first declared, so that it adds up to the total amount of time it takes to get through one cycle. But I don't understand how. Can you explain? (I'm new to JavaScript, so apologies if this is a silly question.)