Permalink
Browse files

Fix nytimes, quora.

  • Loading branch information...
1 parent fa5f18e commit 2eb9389c307f1bb036938014451afd289e1ecbdd @davepeck davepeck committed with Oct 11, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 xpi/handlers/nytimes.js
  2. +2 −2 xpi/handlers/quora.js
View
@@ -13,6 +13,6 @@ register({
identifyUser: function() {
var resp = this.httpGet(this.siteUrl);
- this.userName = resp.body.querySelectorAll("#memberTools a")[1].innerHTML;
+ this.userName = resp.body.querySelectorAll("#memberTools a")[2].innerHTML;
}
});
View
@@ -8,9 +8,9 @@ register({
identifyUser: function () {
var resp = this.httpGet(this.siteUrl + '/settings');
- var nameElem = resp.body.querySelector(".profile .nav_item");
+ var nameElem = resp.body.querySelector("li.profile a.nav_item");
if (nameElem) {
- this.userName = nameElem.textContent;
+ this.userName = nameElem.innerHTML;
}
}
});

0 comments on commit 2eb9389

Please sign in to comment.