阅读:6425回复:14
webmail notifier更新后163用不了了
2.0以后以前的163脚本用不了了
|
|
1楼#
发布于:2010-01-02 01:25
对,我这边也出现同样的问题
|
|
2楼#
发布于:2010-01-02 01:25
2.0要更新脚本的,把下面的代码存储为js文件
/*********************************************************** 163.com ***********************************************************/ var name="163.com"; function init() { this.dataURL="http://fm163.163.com/coremail/fcg/ntesdoor2?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="; this.loginData=["https://reg.163.com/logins.jsp", "username","password","product=163&type=1&ursname="]; this.mailURL="http://fm163.163.com/coremail/fcg/ntesdoor2?verifycookie=1&lightweight=1"; } function getCount(aData) { var fnd=aData.match(/var\s+res\s+=\s+(\d+);/); if(fnd) { return fnd[1]; }else{ return -1; } } |
|
3楼#
发布于:2010-01-02 01:25
benny2:2.0要更新脚本的,把下面的代码存储为js文件/*********************************************************** 163.com ***********************************************************/ var name="163.com"; function init() { this.dataURL="http://fm163.163.com/coremail/fcg/ntesdoor2?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="; this.loginData=["https://reg.163.com/logins.jsp", "username","password","product=163&type=1&ursname="]; this.mailURL="http://fm163.163.com/coremail/fcg/ntesdoor2?verifycookie=1&lightweight=1"; } function getCount(aData) { var fnd=aData.match(/var\s+res\s+=\s+(\d+);/); if(fnd) { return fnd[1]; }else{ return -1; } }回到原帖 这个可以,THX |
|
4楼#
发布于:2010-01-02 01:25
benny2:2.0要更新脚本的,把下面的代码存储为js文件/*********************************************************** 163.com ***********************************************************/ var name="163.com"; function init() { this.dataURL="http://fm163.163.com/coremail/fcg/ntesdoor2?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="; this.loginData=["https://reg.163.com/logins.jsp", "username","password","product=163&type=1&ursname="]; this.mailURL="http://fm163.163.com/coremail/fcg/ntesdoor2?verifycookie=1&lightweight=1"; } function getCount(aData) { var fnd=aData.match(/var\s+res\s+=\s+(\d+);/); if(fnd) { return fnd[1]; }else{ return -1; } }回到原帖 非常感谢!!! |
|
5楼#
发布于:2010-01-02 01:25
谢谢阿 又能用了。。。很方便。。。。
|
|
6楼#
发布于:2010-01-02 01:25
请问126的脚本应该怎么写呢?
benny2:2.0要更新脚本的,把下面的代码存储为js文件/*********************************************************** 163.com ***********************************************************/ var name="163.com"; function init() { this.dataURL="http://fm163.163.com/coremail/fcg/ntesdoor2?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="; this.loginData=["https://reg.163.com/logins.jsp", "username","password","product=163&type=1&ursname="]; this.mailURL="http://fm163.163.com/coremail/fcg/ntesdoor2?verifycookie=1&lightweight=1"; } function getCount(aData) { var fnd=aData.match(/var\s+res\s+=\s+(\d+);/); if(fnd) { return fnd[1]; }else{ return -1; } }回到原帖 实在是太牛逼了 不知道126的脚本应该怎么写?请大大指教! |
|
7楼#
发布于:2010-01-02 01:25
我没有126邮箱,其实是类似的,主要是要把几个函数格式改一下就可以了,基本上照着现有的1.5的126脚本改一下就行,我没有测试,你试一下是否可用
/*********************************************************** 网易 ***********************************************************/ var name="NetEase"; function init(){ this.loginData=["https://reg.163.com/logins.jsp", "username","password","product=163&type=1&ursname="]; this.dataURL="http://fm163.163.com/coremail/fcg/ntesdoor2?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="+this.user; this.mailURL="http://fm163.163.com/coremail/fcg/ntesdoor2?verifycookie=1&lightweight=1"; var ar=this.user.split("@"); if(ar[1]=="126.com"){ this.dataURL="http://entry.mail.126.com/cgi/ntesdoor?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="+this.user; this.mailURL="http://entry.mail.126.com/cgi/ntesdoor?verifycookie=1&lightweight=1"; }else if (ar[1]=="yeah.net"){ this.dataURL="http://entry.yeah.net/cgi/ntesdoor?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="+this.user; this.mailURL="http://entry.yeah.net/cgi/ntesdoor?verifycookie=1&lightweight=1"; } }; function getCount(aData){ var fnd=aData.match(/var\s+res\s+=\s+(\d+);/); if(fnd){ return fnd[1]; }else{ return -1; } } function onResponse(aHttpChannel){ if(this.stage==ST_LOGIN_RES){ var cookie = aHttpChannel.getResponseHeader("Set-Cookie"); if (this.mailURL.indexOf("yeah.net")!=-1) { cookie = cookie.replace(/(domain=)\.163\.com/g,"$1.yeah.net"); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri=ioService.newURI(handler.mailURL,null,null); this.cookieManager.addCookies(uri,cookie); }else if(this.mailURL.indexOf("126.com")!=-1) { cookie = cookie.replace(/(domain=)\.163\.com/g,"$1.126.com"); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri=ioService.newURI(handler.mailURL,null,null); this.cookieManager.addCookies(uri,cookie); }else { this.cookieManager.addCookies(aHttpChannel.URI,cookie); } aHttpChannel.setResponseHeader("Set-Cookie", "", false); }else{ this.cookieManager.addCookies(aHttpChannel.URI,cookie); aHttpChannel.setResponseHeader("Set-Cookie", "", false); } } function onError(desc){ this.stage=this.initStage; this.webMailNotifier.setState(this.id,this.user,nsIWebMailNotifier.ST_RESET); } |
|
8楼#
发布于:2010-01-02 01:25
|
|
9楼#
发布于:2010-01-02 01:25
benny2:我没有126邮箱,其实是类似的,主要是要把几个函数格式改一下就可以了,基本上照着现有的1.5的126脚本改一下就行,我没有测试,你试一下是否可用/*********************************************************** 网易 ***********************************************************/ var name="NetEase"; function init(){ this.loginData=["https://reg.163.com/logins.jsp", "username","password","product=163&type=1&ursname="]; this.dataURL="http://fm163.163.com/coremail/fcg/ntesdoor2?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="+this.user; this.mailURL="http://fm163.163.com/coremail/fcg/ntesdoor2?verifycookie=1&lightweight=1"; var ar=this.user.split("@"); if(ar[1]=="126.com"){ this.dataURL="http://entry.mail.126.com/cgi/ntesdoor?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="+this.user; this.mailURL="http://entry.mail.126.com/cgi/ntesdoor?verifycookie=1&lightweight=1"; }else if (ar[1]=="yeah.net"){ this.dataURL="http://entry.yeah.net/cgi/ntesdoor?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="+this.user; this.mailURL="http://entry.yeah.net/cgi/ntesdoor?verifycookie=1&lightweight=1"; } }; function getCount(aData){ var fnd=aData.match(/var\s+res\s+=\s+(\d+);/); if(fnd){ return fnd[1]; }else{ return -1; } } function onResponse(aHttpChannel){ if(this.stage==ST_LOGIN_RES){ var cookie = aHttpChannel.getResponseHeader("Set-Cookie"); if (this.mailURL.indexOf("yeah.net")!=-1) { cookie = cookie.replace(/(domain=)\.163\.com/g,"$1.yeah.net"); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri=ioService.newURI(handler.mailURL,null,null); this.cookieManager.addCookies(uri,cookie); }else if(this.mailURL.indexOf("126.com")!=-1) { cookie = cookie.replace(/(domain=)\.163\.com/g,"$1.126.com"); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri=ioService.newURI(handler.mailURL,null,null); this.cookieManager.addCookies(uri,cookie); }else { this.cookieManager.addCookies(aHttpChannel.URI,cookie); } aHttpChannel.setResponseHeader("Set-Cookie", "", false); }else{ this.cookieManager.addCookies(aHttpChannel.URI,cookie); aHttpChannel.setResponseHeader("Set-Cookie", "", false); } } function onError(desc){ this.stage=this.initStage; this.webMailNotifier.setState(this.id,this.user,nsIWebMailNotifier.ST_RESET); }回到原帖 这个是原来网易的整合脚本吧?貌似用不了了呢~ |
|
10楼#
发布于:2010-01-02 01:25
试了一下这个应该可以
/*********************************************************** 网易 ***********************************************************/ var name="NetEase"; function init(){ this.loginData=["https://reg.163.com/logins.jsp", "username","password","product=163&type=1&ursname="]; this.dataURL="http://fm163.163.com/coremail/fcg/ntesdoor2?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="+this.user; this.mailURL="http://fm163.163.com/coremail/fcg/ntesdoor2?verifycookie=1&lightweight=1"; var ar=this.user.split("@"); if(ar[1]=="126.com"){ this.dataURL="http://entry.mail.126.com/cgi/ntesdoor?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="+this.user; this.mailURL="http://entry.mail.126.com/cgi/ntesdoor?verifycookie=1&lightweight=1"; }else if (ar[1]=="yeah.net"){ this.dataURL="http://entry.yeah.net/cgi/ntesdoor?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="+this.user; this.mailURL="http://entry.yeah.net/cgi/ntesdoor?verifycookie=1&lightweight=1"; } this.getCount=function(aData){ var fnd=aData.match(/var\s+res\s+=\s+(\d+);/); if(fnd){ return fnd[1]; }else{ return -1; } }; this.onResponse=function(aHttpChannel){ if(this.stage==ST_LOGIN_RES){ var cookie = aHttpChannel.getResponseHeader("Set-Cookie"); if (this.mailURL.indexOf("yeah.net")!=-1) { cookie = cookie.replace(/(domain=)\.163\.com/g,"$1.yeah.net"); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri=ioService.newURI(this.mailURL,null,null); this.cookieManager.addCookies(uri,cookie); }else if(this.mailURL.indexOf("126.com")!=-1) { cookie = cookie.replace(/(domain=)\.163\.com/g,"$1.126.com"); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri=ioService.newURI(this.mailURL,null,null); this.cookieManager.addCookies(uri,cookie); }else { this.cookieManager.addCookies(aHttpChannel.URI,cookie); } aHttpChannel.setResponseHeader("Set-Cookie", "", false); }else{ this.cookieManager.addCookies(aHttpChannel.URI,cookie); aHttpChannel.setResponseHeader("Set-Cookie", "", false); } }, this.onError=function(desc){ this.stage=this.initStage; this.webMailNotifier.setState(this.id,this.user,nsIWebMailNotifier.ST_RESET); }; } |
|
11楼#
发布于:2010-01-02 01:25
benny2:试了一下这个应该可以/*********************************************************** 网易 ***********************************************************/ var name="NetEase"; function init(){ this.loginData=["https://reg.163.com/logins.jsp", "username","password","product=163&type=1&ursname="]; this.dataURL="http://fm163.163.com/coremail/fcg/ntesdoor2?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="+this.user; this.mailURL="http://fm163.163.com/coremail/fcg/ntesdoor2?verifycookie=1&lightweight=1"; var ar=this.user.split("@"); if(ar[1]=="126.com"){ this.dataURL="http://entry.mail.126.com/cgi/ntesdoor?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="+this.user; this.mailURL="http://entry.mail.126.com/cgi/ntesdoor?verifycookie=1&lightweight=1"; }else if (ar[1]=="yeah.net"){ this.dataURL="http://entry.yeah.net/cgi/ntesdoor?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="+this.user; this.mailURL="http://entry.yeah.net/cgi/ntesdoor?verifycookie=1&lightweight=1"; } this.getCount=function(aData){ var fnd=aData.match(/var\s+res\s+=\s+(\d+);/); if(fnd){ return fnd[1]; }else{ return -1; } }; this.onResponse=function(aHttpChannel){ if(this.stage==ST_LOGIN_RES){ var cookie = aHttpChannel.getResponseHeader("Set-Cookie"); if (this.mailURL.indexOf("yeah.net")!=-1) { cookie = cookie.replace(/(domain=)\.163\.com/g,"$1.yeah.net"); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri=ioService.newURI(this.mailURL,null,null); this.cookieManager.addCookies(uri,cookie); }else if(this.mailURL.indexOf("126.com")!=-1) { cookie = cookie.replace(/(domain=)\.163\.com/g,"$1.126.com"); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri=ioService.newURI(this.mailURL,null,null); this.cookieManager.addCookies(uri,cookie); }else { this.cookieManager.addCookies(aHttpChannel.URI,cookie); } aHttpChannel.setResponseHeader("Set-Cookie", "", false); }else{ this.cookieManager.addCookies(aHttpChannel.URI,cookie); aHttpChannel.setResponseHeader("Set-Cookie", "", false); } }, this.onError=function(desc){ this.stage=this.initStage; this.webMailNotifier.setState(this.id,this.user,nsIWebMailNotifier.ST_RESET); }; }回到原帖 嗯哪,这个脚本灰常好用啊灰常好用~网易的163和126都可以用~灰常感谢,太牛了~ |
|
12楼#
发布于:2010-01-02 01:25
benny2:2.0要更新脚本的,把下面的代码存储为js文件/*********************************************************** 163.com ***********************************************************/ var name="163.com"; function init() { this.dataURL="http://fm163.163.com/coremail/fcg/ntesdoor2?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="; this.loginData=["https://reg.163.com/logins.jsp", "username","password","product=163&type=1&ursname="]; this.mailURL="http://fm163.163.com/coremail/fcg/ntesdoor2?verifycookie=1&lightweight=1"; } function getCount(aData) { var fnd=aData.match(/var\s+res\s+=\s+(\d+);/); if(fnd) { return fnd[1]; }else{ return -1; } }回到原帖 谢谢,这个脚本可以用 |
|
13楼#
发布于:2010-01-02 01:25
benny2:2.0要更新脚本的,把下面的代码存储为js文件/*********************************************************** 163.com ***********************************************************/ var name="163.com"; function init() { this.dataURL="http://fm163.163.com/coremail/fcg/ntesdoor2?funcid=getusrnewmsgcnt&fid=1&addSubFdrs=1&language=0&style=0&template=newmsgres_urs_2008.htm&username="; this.loginData=["https://reg.163.com/logins.jsp", "username","password","product=163&type=1&ursname="]; this.mailURL="http://fm163.163.com/coremail/fcg/ntesdoor2?verifycookie=1&lightweight=1"; } function getCount(aData) { var fnd=aData.match(/var\s+res\s+=\s+(\d+);/); if(fnd) { return fnd[1]; }else{ return -1; } }回到原帖 不错,可用。谢谢 |
|
14楼#
发布于:2010-01-02 01:25
找到了,成功应用,谢谢!
|
|
|