Skip to content

Instantly share code, notes, and snippets.

@mmlin
Created February 22, 2016 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmlin/2301d51b261e0ff43366 to your computer and use it in GitHub Desktop.
Save mmlin/2301d51b261e0ff43366 to your computer and use it in GitHub Desktop.
On the keywords page of an Amazon PPC campaign, match all bids – or go to the next page if all bids are already matched.
document.body.style.background = '#fff';
var links = $('a:contains("match bid")');
if (links.length) {
links.click();
} else {
var next = $('.a-last a');
if (next.length) {
next.click();
} else {
document.body.style.background = '#fee'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment