Skip to content

Commit

Permalink
Merge remote branch 'crash/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
codebutler committed Oct 21, 2010
2 parents 14f903f + 0256125 commit ffa277a
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xpi/handlers/evernote.js
Expand Up @@ -6,6 +6,11 @@ register({
domains: [ 'evernote.com' ],
sessionCookieNames: [ 'auth' ],

processPacket: function () {
var utma_cookie = this.firstPacket.cookies['__utma'];
this.sessionId = utma_cookie;
},

identifyUser: function () {
var resp = this.httpGet(this.siteUrl);
this.userName = resp.body.querySelectorAll("#nav td")[2].textContent.match(/Sign out \((.*)\).*/)[1];
Expand Down
14 changes: 14 additions & 0 deletions xpi/handlers/gowalla.js
@@ -0,0 +1,14 @@
// Authors:
// Ian Gallagher <crash@neg9.org>

register({
name: 'Gowalla',
url: 'https://gowalla.com/home',
domains: [ 'gowalla.com' ],
sessionCookieNames: [ '__utma' ],

identifyUser: function () {
var resp = this.httpGet(this.siteUrl);
this.userName = resp.body.querySelectorAll('.contentnode a')[1].textContent;
}
});
32 changes: 32 additions & 0 deletions xpi/handlers/live.js
@@ -0,0 +1,32 @@
// Authors:
// Ian Gallagher <crash@neg9.org>
register({
name: 'Windows Live',
url: 'http://live.com',
domains: [ 'live.com' ],
sessionCookieNames: [
'MSPProf',
'MSPAuth',
'RPSTAuth',
'NAP',
/*
'BP',
'MH',
'LD',
'mkt0',
'wlidperf',
'ANON',
'MUID',
'wlp',
//'UIC',
'wla42',
'HIC'
*/
],

identifyUser: function () {
//var resp = this.httpGet(this.siteUrl);
//this.userName = resp.body.querySelector("#idWinLiveIdValue").textContent.trim();
this.userName = "Alice, or perhaps Bob";
}
});

0 comments on commit ffa277a

Please sign in to comment.