Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add handlers for Windows Live and Gowalla

  • Loading branch information...
commit 80eba28a610b7993a2de669c09830c190f56cd15 1 parent e2e1616
Ian Gallagher craSH authored

Showing 2 changed files with 46 additions and 0 deletions. Show diff stats Hide diff stats

  1. +14 0 xpi/handlers/gowalla.js
  2. +32 0 xpi/handlers/live.js
14 xpi/handlers/gowalla.js
... ... @@ -0,0 +1,14 @@
  1 +// Authors:
  2 +// Ian Gallagher <crash@neg9.org>
  3 +
  4 +register({
  5 + name: 'Gowalla',
  6 + url: 'https://gowalla.com/home',
  7 + domains: [ 'gowalla.com' ],
  8 + sessionCookieNames: [ '__utma' ],
  9 +
  10 + identifyUser: function () {
  11 + var resp = this.httpGet(this.siteUrl);
  12 + this.userName = resp.body.querySelectorAll('.contentnode a')[1].textContent;
  13 + }
  14 +});
32 xpi/handlers/live.js
... ... @@ -0,0 +1,32 @@
  1 +// Authors:
  2 +// Ian Gallagher <crash@neg9.org>
  3 +register({
  4 + name: 'Windows Live',
  5 + url: 'http://live.com',
  6 + domains: [ 'live.com' ],
  7 + sessionCookieNames: [
  8 + 'MSPProf',
  9 + 'MSPAuth',
  10 + 'RPSTAuth',
  11 + 'NAP',
  12 + /*
  13 + 'BP',
  14 + 'MH',
  15 + 'LD',
  16 + 'mkt0',
  17 + 'wlidperf',
  18 + 'ANON',
  19 + 'MUID',
  20 + 'wlp',
  21 + //'UIC',
  22 + 'wla42',
  23 + 'HIC'
  24 + */
  25 + ],
  26 +
  27 + identifyUser: function () {
  28 + //var resp = this.httpGet(this.siteUrl);
  29 + //this.userName = resp.body.querySelector("#idWinLiveIdValue").textContent.trim();
  30 + this.userName = "Alice, or perhaps Bob";
  31 + }
  32 +});

0 comments on commit 80eba28

Please sign in to comment.
Something went wrong with that request. Please try again.