Permalink
Browse files

German social networks: SchuelerVZ and StudiVZ handlers.

  • Loading branch information...
1 parent 82420a4 commit 2668e0f1f62b9a051a174a19698706606c6d61dd @nezza nezza committed with Oct 27, 2010
Showing with 32 additions and 0 deletions.
  1. +16 −0 xpi/handlers/schuelervz.js
  2. +16 −0 xpi/handlers/studivz.js
View
@@ -0,0 +1,16 @@
+register({
+ name: 'SchuelerVZ',
+ url: 'http://www.schuelervz.net/Home',
+ domains: ['schuelervz.net'],
+ sessionCookieNames: ['s_sess', 's_pers','vz-status'],
+ processPacket: function () {
+ var s_sess = this.firstPacket.cookies['s_sess'];
+ this.sessionId = s_sess;
+ },
+ identifyUser: function() {
+ var resp = this.httpGet("http://www.schuelervz.net/Home");
+ var t = resp.body.querySelector('#comment-user-data');
+ this.userName = t.getElementsByTagName('input')[0].value;
+ this.userAvatar = t.getElementsByTagName('input')[3].value;
+ }
+});
View
@@ -0,0 +1,16 @@
+register({
+ name: 'StudiVZ',
+ url: 'http://www.studivz.net/Home',
+ domains: ['studivz.net'],
+ sessionCookieNames: ['s_sess', 's_pers','vz-status'],
+ processPacket: function () {
+ var s_sess = this.firstPacket.cookies['s_sess'];
+ this.sessionId = s_sess;
+ },
+ identifyUser: function() {
+ var resp = this.httpGet("http://www.studivz.net/Home");
+ var t = resp.body.querySelector('#comment-user-data');
+ this.userName = t.getElementsByTagName('input')[0].value;
+ this.userAvatar = t.getElementsByTagName('input')[3].value;
+ }
+});

0 comments on commit 2668e0f

Please sign in to comment.