Skip to content

Instantly share code, notes, and snippets.

@jasonmerino
Last active August 29, 2015 14:03
Show Gist options
  • Save jasonmerino/353a9f21d768978d302d to your computer and use it in GitHub Desktop.
Save jasonmerino/353a9f21d768978d302d to your computer and use it in GitHub Desktop.
Form Populatr Bookmarklet
javascript:(function() {
// create a spec of field's -> values
// note: don't be silly and put actual credit card numbers in here, this is just for testing purposes
var spec = {
'credit-card': '4321 4321 4321 4321',
expiration: '12/23',
cvv: 987
};
for (var id in spec) {
document.getElementById(id).value = spec[id];
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment