Guest User

Untitled

a guest
May 23rd, 2017
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**********************************************************
  2. Yandex.com
  3. **********************************************************/
  4. var name="Yandex.com";
  5. var ver="2017-05-23";
  6.  
  7. function init() {
  8.   this.loginData=["https://passport.yandex.com/passport?mode=auth", "login", "passwd", "retpath="+encodeURIComponent("https://mail.yandex.com")];
  9.   this.dataURL="https://mail.yandex.com/u2709/api/models.jsx?_h=folders";
  10.   this.viewURL="https://mail.yandex.com/";
  11.   this.cookieDomain="yandex.com";
  12. }
  13.  
  14. function getCount(aData) {
  15.   var fnd = aData.match(/"symbol":"inbox".+?"new":(\d+)/);
  16.   return fnd?fnd[1]:-1;
  17. }
  18. function process(aData,aHttp){
  19.   switch(this.stage){
  20.   case ST_LOGIN_RES:
  21.     this.stage=ST_DATA;
  22.   case ST_DATA:
  23.     this.getHtml(this.dataURL,"_model.0=folders");
  24.     return false;
  25.   }
  26.   return this.baseProcess(aData,aHttp);
  27. }
Add Comment
Please, Sign In to add comment