Last active
December 14, 2015 07:09
-
-
Save CezaryDanielNowak/5048861 to your computer and use it in GitHub Desktop.
auto-fill form by javascript console.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$($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