Created
June 4, 2015 21:28
-
-
Save jlogsdon/2e8e0eccf6c25564348e to your computer and use it in GitHub Desktop.
Oh god!
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
{ | |
"manifest_version": 2, | |
"name": "Password Pwn", | |
"description": "This extension shows how insecure extensions can be", | |
"version": "1.0", | |
"content_scripts": [ | |
{ | |
"matches": ["<all_urls>"], | |
"js": ["pwn.js"] | |
} | |
] | |
} |
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
Array.prototype.forEach.call(document.querySelectorAll('input[type="password"]'), function(input) { | |
input.addEventListener('blur', function() { | |
console.log(input, input.value); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment