/*********************************************************** Live@edu ***********************************************************/ var name="Live@edu"; var ver="2012-07-31"; function init(){ this.initStage=ST_PRE; this.loginData=["","login","passwd"]; this.dataURL="http://mail.live.com/?rru=inbox"; this.viewURL="http://mail.live.com/?rru=inbox"; this.viewDomain="mail.live.com"; } function getIconURL(){ return "http://login.live.com/favicon.ico"; } function process(aData,aHttp) { switch(this.stage){ case ST_PRE: this.getHtml("http://mail.live.com"); return false; case ST_PRE_RES: var fnd=aData.match(/urlPost:\'([\s\S]+?)\'/); if(fnd){ this.loginData[LOGIN_URL]=fnd[1]; fnd=aData.match(/PPFT[\s\S]+?value=\"(\S+?)\"/); if(fnd){ this.stage=ST_LOGIN; this.getHtml(this.loginData[LOGIN_URL],this.loginData[LOGIN_POST]+"&PPFT="+encodeURIComponent(fnd[1])); return false; } } this.onError(); return true; case ST_LOGIN_RES: var fnd=aData.match(/replace\([\'\"](\S+?)[\'\"]/); if(fnd){ this.getHtml(fnd[1]); return false; } break; case ST_LOGIN_RES+1: var fnd=aData.match(/