Skip to content

Instantly share code, notes, and snippets.

@marks
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save marks/11270928 to your computer and use it in GitHub Desktop.

Select an option

Save marks/11270928 to your computer and use it in GitHub Desktop.
var clip_selector = "img[alt='Clip this Coupon']"
var next_selector = "div.next-button"
while ( jQuery(clip_selector).size() > 0 ){
// click each "clip this coupon" button
jQuery(clip_selector).each(function(i,x){x.click()})
// click the next page of coupons buttons
jQuery(next_selector).each(function(i,x){x.click()})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment