Skip to content

Commit cbc0579

Browse files
committed
Updated Yahoo handler. Works with new Yahoo Mail.
1 parent 8be989f commit cbc0579

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

xpi/handlers/yahoo.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
// Authors:
22
// Joe Basirico <[email protected]>
3+
// Eric Butler <[email protected]>
34
register({
45
name: 'Yahoo',
5-
url: 'http://www.yahoo.com',
6+
siteUrl: 'http://yahoo.com',
67
domains: [ 'yahoo.com' ],
7-
sessionCookieNames: [ 'T', 'Y' ],
8+
sessionCookieNames: [ 'T', 'Y', 'F' ],
89

910
identifyUser: function () {
10-
var resp = this.httpGet(this.siteUrl);
11-
this.userName = resp.body.querySelector('.y-ln-1').alt;
12-
this.userAvatar = resp.body.querySelector('.y-ln-1').src;
11+
var resp = this.httpGet("http://www.yahoo.com/");
12+
this.userName = resp.body.querySelector('.connected-lbl').textContent;
13+
this.userAvatar = resp.body.querySelector('img.tab-icon').src;
1314
}
1415
});

0 commit comments

Comments
 (0)