Skip to content

Instantly share code, notes, and snippets.

@mikedfunk
Last active March 23, 2016 22:31
Show Gist options
  • Save mikedfunk/538561131967927c5924 to your computer and use it in GitHub Desktop.
Save mikedfunk/538561131967927c5924 to your computer and use it in GitHub Desktop.
art advisory random email
/**
* Submit the art advisory brief form with a random email variant
* Use this to bookmarkletize it https://ted.mielczarek.org/code/mozilla/bookmarklet.html
*/
// first part of your email
var myname = 'mike.funk';
// skip most things
$('#a01-0').click();
for (var i = 0; i < 7; i++) {
$('button.skipStep').click();
}
// set budget values
$('#budget-amount').val('1111');
$('#budgetSubmit').click();
// fill out the end form
var randnum = Math.floor(Math.random()*90000) + 10000;
var myfirstname = 'TEST-' + myname + '-' + randnum;
$('#firstname').val(myfirstname);
console.log('first name', myfirstname);
$('#lastname').val('TEST');
var email = myname + '+' + randnum + '@saatchiart.com';
console.log('email', email);
$('#email').val(email);
$('#phone_number').val('1234123123');
$('#message').val('test please ignore');
$('#submitBrief').click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment