Skip to content

Instantly share code, notes, and snippets.

@gazs
Forked from KTamas/gist:666604
Created November 7, 2010 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gazs/666818 to your computer and use it in GitHub Desktop.
Save gazs/666818 to your computer and use it in GitHub Desktop.
// Authors:
// KTamas <gmail@ktamas.com>
register({
name: "iwiw",
url: "http://iwiw.hu/",
domains: ["iwiw.hu", "wiw.hu"],
sessionCookieNames: ["ajaxable", "JSESSIONID", "autoLoginNew","forgetEmail", "email", "httpslogin"],
identifyUser: function() {
var resp = this.httpGet("http://iwiw.hu/pages/main/index.jsp");
this.userName = resp.body.querySelector("#head_whatsup_inner a").innerHTML;
var avatarurl = resp.body.querySelector(".square_image").style.backgroundImage;
//this.userAvatar = null;
this.userAvatar = avatarurl.substring(5, avatarurl.length-2);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment