Skip to content

Instantly share code, notes, and snippets.

@stas
Last active August 29, 2015 13:59
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 stas/de68932ea676ca282226 to your computer and use it in GitHub Desktop.
Save stas/de68932ea676ca282226 to your computer and use it in GitHub Desktop.
// Go to your zap editor. Run this in console.
$.ajaxSetup({
beforeSend: function (x, s) {
if (/samples/.test(s.url) && /zap_meta_limit=3/.test(s.url)) {
s.url = s.url + '&zap_meta_limit=2000';
}
}
});
// Now go click on test zap button
buttons = $('.sample').find('button').each(function (b, c) {
$(c).click();
sleep(10000); // Google for `sleep` in JavaScript
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment