> $(".grid-coupon-clip-button button").click();
> what does this do exactly?
The command allows you to click all buttons in the page at once:
• The dollar sign is an alias for jQuery [1];
• The text between double quotes is a CSS selector;
• Select every DOM element with a “grid-coupon-clip-button” and “button” CSS class;
• The thing at the end is a JavaScript function call which triggers an “onclick” event [2];