-
-
Save SeanMcGrath/fb4f9e1869a2252738c9398d5ceb5395 to your computer and use it in GitHub Desktop.
thank you worked perfectly well! any other codes to share other sellers listings and follow?)))
I forked this gist here to accommodate larger closets with 40+ items for anyone with that need!
https://gist.github.com/ianmcilwraith/30dbeb61edda08c2be039818067a1781
@SeanMcGrath Thanks for sharing this code! I have a question about the last 2 lines:
share();
setInterval(share, cycleDelta);
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.)
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.
You rock! Thank you so much!