Skip to content

Commit

Permalink
Added Cisco handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
codebutler committed Oct 21, 2010
1 parent ffa277a commit 28022e0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions xpi/handlers/cisco.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
register({
name: 'Cisco',
url: 'http://tools.cisco.com/RPF/profile/profile_management.do',
domains: [ 'cisco.com' ],
sessionCookieNames: [ 'SMIDENTITY' ],
identifyUser: function () {
var resp = this.httpGet(this.siteUrl);
var userId = resp.body.querySelectorAll('.contentbold')[0].textContent
var realName = resp.body.querySelectorAll('.contentbold')[1].textContent
var email = resp.body.querySelectorAll('.contentbold')[2].textContent
this.userName = userId + " (" + realName + ")";
}
});

0 comments on commit 28022e0

Please sign in to comment.