Created
March 14, 2009 13:13
-
-
Save mumoshu/79063 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************************************************** | |
webmail_notifier.mail.yahoo.co.jp.js | |
***********************************************************/ | |
function initHandler(handler){ | |
handler.name="Yahoo! Japan"; | |
handler.dataURL="http://mail.yahoo.co.jp/"; | |
if(handler.user){ | |
var ar=handler.user.split("@"); | |
handler.loginData=["https://login.yahoo.co.jp/config/login?","login","passwd", | |
+"&.tries=1" | |
+"&.src=ym" | |
+"&.md5=" | |
+"&.hash=" | |
+"&.js=" | |
+"&.last=" | |
+"&promo=" | |
+"&.intl=jp" | |
+"&.bypass=" | |
+"&.partner=" | |
+"&.yplus=" | |
+"&pkg=" | |
+"&hasMsgr=0" | |
+"&.done=http%3A%2F%2Fmail.yahoo.co.jp" | |
+"&.pd=" | |
+"&.protoctl=" | |
]; | |
} | |
handler.mailURL="http://mail.yahoo.co.jp/"; | |
handler.getData=function(aData){ | |
var fnd=aData.match(/id="WelcomeInboxFolderLink"[^\(]+\((\d+)\)<\/a>/); //find mail count | |
if(fnd){ | |
return fnd[1]; | |
}else{ | |
return -1; //display 'not checked' message | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment