Skip to content

Instantly share code, notes, and snippets.

@CezaryDanielNowak
Last active December 14, 2015 07:09
Show Gist options
  • Save CezaryDanielNowak/5048861 to your computer and use it in GitHub Desktop.
Save CezaryDanielNowak/5048861 to your computer and use it in GitHub Desktop.
auto-fill form by javascript console.
$($0 || 'body').find('input[type=text], input[type=text], textarea,input[type=password]').filter(':visible').each(function(){
if( $(this).attr('type')==='password' )
return $(this).val('12345678');
if( $(this).attr('id')==='email' || $(this).attr('name')==='email' )
return $(this).val('[email protected]');
if( $(this).attr('name') == 'cvv2' )
return $(this).val('123');
if( $(this).attr('name') == 'pan' )
return $(this).val('5555555555554444');
$(this).val( Math.random().toString(36).substring(2) );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment