Skip to content

Instantly share code, notes, and snippets.

@mmlin
Created Feb 22, 2016
Embed
What would you like to do?
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