Webmail notifier Netease mailbox settings for Firefox

Source: Internet
Author: User
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 );
}

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.