Note: Because the notepad format is ANSI,
UTF-8 format is not supported. It must be saved using ultraedit or other similar tools.
Right-click "options" and click "script" to add the JS script.
The Netease script is saved as a 163. js file.
/*************************************** *******************
Netease
**************************************** ******************/
VaR name = "\ u7f51 \ u6613 ";
VaR ver = "2010-02-04 ";
Function Init (){
This. logindata = ["https://reg.163.com/logins.jsp", "username", "password"];
VaR AR = This. User. Split ("@");
If (AR [1] = "126.com "){
This. dataurl = "http://entry.mail.126.com/cgi/ntesdoor? Alias & username = "+ this. user;
This. mailurl = "http://entry.mail.126.com/cgi/ntesdoor? Verifycookie = 1 & lightweight = 1 ";
This. logindata [3] = "type = 1 & Product = mail126 ";
} Else if (AR [1] = "yeah.net "){
This. dataurl = "http://entry.yeah.net/cgi/ntesdoor? Alias & username = "+ this. user;
This. mailurl = "http://entry.yeah.net/cgi/ntesdoor? Verifycookie = 1 & lightweight = 1 ";
This. logindata [3] = "type = 1 & Product = mailyeah ";
} Else {
This. dataurl = "http://fm163.163.com/coremail/fcg/ntesdoor2? Alias & username = "+ this. user;
This. mailurl = "http://fm163.163.com/coremail/fcg/ntesdoor2? Verifycookie = 1 & lightweight = 1 ";
This. logindata [3] = "type = 1 & Product = mail163 ";
}
}
Function getcount (aData ){
VaR FND = aData. Match (/var \ s + Res \ s + = \ s + (\ D + );/);
If (FND ){
Return FND [1];
} Else {
Return-1;
}
}
Function process (ahttpchannel, aData ){
Switch (this. Stage ){
Case st_login_res :{
VaR FND = aData. Match (/url = (\ s + ?) "/);
If (FND ){
This. gethtml (FND [1]. Replace (/(\ D +)/g, function () {return string. fromcharcode (Regexp. $1 );}));
Return false;
} Else break ;}
Case st_login_res + 1 :{
VaR FND = aData. Match (/url = (\ s + ?) "/);
If (FND ){
This. gethtml (FND [1]. Replace (/(\ D +)/g, function () {return string. fromcharcode (Regexp. $1 );}));
Return false;
} Else {
This. Stage = st_data;
Break;
}
}
Case st_login_res + 2:
This. Stage = st_data;
Break;
}
Return this. baseprocess (ahttpchannel, aData );
}