Created
November 4, 2010 04:20
-
-
Save schacon/662128 to your computer and use it in GitHub Desktop.
BitBucket FireSheep Handler
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
register({ | |
name: "BitBucket", | |
domains: [ "bitbucket.org" ], | |
sessionCookieNames: [ "sessionid" ], | |
identifyUser: function () { | |
var resp = this.httpGet(this.siteUrl); | |
this.userName = resp.body.querySelectorAll('#main-nav ul li a span')[1].innerHTML.replace(/\(/, "").replace(/\)/, ""); | |
var resp2 = this.httpGet(this.siteUrl + this.userName + '/'); | |
this.userAvatar = resp2.body.querySelector('dl.userinfo dd img').src | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hahaha. This is pure awesome.