Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**********************************************************
- Yandex
- **********************************************************/
- var name="Yandex.ru";
- var ver="2018-02-21";
- var hostString="yandex.ru";
- function init() {
- this.loginData=["https://passport.yandex.ru/passport?mode=auth", "login", "passwd", "retpath="+encodeURIComponent("https://mail.yandex.ru")];
- this.dataURL="https://mail.yandex.ru";
- this.viewURL="https://mail.yandex.ru";
- this.cookieDomain="yandex.ru";
- }
- function getCount(aData) {
- var fnd = aData.match(/"status":"ok","data":{"new":(\d+)/);
- return fnd?fnd[1]:-1;
- }
- function process(aData,aHttp){
- switch(this.stage){
- case ST_LOGIN_RES:
- this.stage=ST_DATA;
- case ST_DATA:
- this.getHtml(this.dataURL);
- return false;
- }
- return this.baseProcess(aData,aHttp);
- }
Advertisement
Add Comment
Please, Sign In to add comment