Deal Alerts
Post a Deal
Giveaways
Sign Up
Categories
Coupons
Community Forums
Personal Finance
Your comment cannot be blank.
Sign up for a Slickdeals account to remove this ad.
function clickButtons(objects) { const buttons = objects.toArray(); console.log("Clicking " + buttons.length + " buttons..."); (function loop() { $(".close-x.close-this-modal").click(); if (buttons.length <= 0) { console.log("Done clicking coupons."); return; } setTimeout(function () { const button = buttons.shift(); button.click(); loop(); }, 3000); }()); } clickButtons($(".panelGrid .infoPaneContainer .calloutBox .addToCartBtn:not(.hide)"));
The link has been copied to the clipboard.
37 Comments
Your comment cannot be blank.
Featured Comments
Sign up for a Slickdeals account to remove this ad.
function clickButtons(objects) { const buttons = objects.toArray(); console.log("Clicking " + buttons.length + " buttons..."); (function loop() { $(".close-x.close-this-modal").click(); if (buttons.length <= 0) { console.log("Done clicking coupons."); return; } setTimeout(function () { const button = buttons.shift(); button.click(); loop(); }, 3000); }()); } clickButtons($(".panelGrid .infoPaneContainer .calloutBox .addToCartBtn:not(.hide)"));Sign up for a Slickdeals account to remove this ad.
function clickButtons(objects) { const buttons = objects.toArray(); console.log("Clicking " + buttons.length + " buttons..."); (function loop() { $(".close-x.close-this-modal").click(); if (buttons.length <= 0) { console.log("Done clicking coupons."); return; } setTimeout(function () { const button = buttons.shift(); button.click(); loop(); }, 3000); }()); } clickButtons($(".panelGrid .infoPaneContainer .calloutBox .addToCartBtn:not(.hide)"));Looks like jQuery but you may want to clarify what we're looking at and how one can actually use it.
Those that were given with the pre order bonus are different themes/avatars.
const buttons = objects.toArray();
console.log("Clicking " + buttons.length + " buttons...");
(function loop() {
$(".close-x.close-this-modal").click();
if (buttons.length <= 0) {
console.log("Done clicking coupons.");
return;
}
setTimeout(function () {
const button = buttons.shift();
button.click();
loop();
}, 3000);
}());
}
clickButtons($(".panelGrid .infoPaneContainer .calloutBox .addToCartBtn:not(.hide)"));