Hi, I'm using WMN since the first release. It was perfect untill now.
Yahoo, Hotmail, Gmail still works.
But I also work with @mail.ru account too. So, I used a custom script for it, that worked up to ver. 1.5.5. Now it's not.
The script is:
----------------
function initHandler(handler) {
handler.name="MailRU";
handler.dataURL="http://win.mail.ru/cgi-bin/auth";
handler.loginData=["http://win.mail.ru/cgi-bin/auth","Login","Password","Domain=" +encodeURIComponent("mail.ru")];
handler.mailURL="http://www.mail.ru";
handler.getData=function(aData) { //aData is a html source in dataURL
var fnd=aData.match(/\u043c: (\d+?)<\/b>/); //find mail count
if(fnd) {
var num = fnd[1]; //get mail count here
return num;
}
else {
return -1;//display 'not checked' message
}
};
}
Can anybody help me to fit it to the new version?
Userscript structure has changed in WMN 2
var name="MailRU";
function init() {
this.dataURL="http://win.mail.ru/cgi-bin/auth";
this.loginData=["http://win.mail.ru/cgi-bin/auth","Login","Password","Domain=" +encodeURIComponent("mail.ru")];
this.mailURL="http://www.mail.ru";
}
function getCount(aData) { //aData is a html source in dataURL
var fnd=aData.match(/\u043c: (\d+?)<\/b>/); //find mail count
if(fnd) {
var num = fnd[1]; //get mail count here
return num;
}else {
return -1;//display 'not checked' message
}
}