SHARE
TWEET

Untitled

a guest May 23rd, 2017 211 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**********************************************************
  2. Yandex
  3. **********************************************************/
  4. var name="Yandex";
  5. var ver="2017-05-23";
  6. var hostString="yandex.ru";
  7.  
  8. function init() {
  9.   this.loginData = ["https://passport.yandex.ru/passport?mode=auth", "login", "passwd"];
  10.   var ar=this.user.split("@");
  11.   this.dataURL="https://mail.yandex.ru/u2709/api/models.jsx?_h=folders";
  12.   this.viewURL="https://mail.yandex.ru/u2709/";
  13.   this.cookieDomain="yandex.ru";
  14. }
  15.  
  16. function getCount(aData) {
  17.   var fnd = aData.match(/"symbol":"inbox".+?"new":(\d+)/);
  18.   return fnd?fnd[1]:-1;
  19. }
  20. function process(aData,aHttp){
  21.   switch(this.stage){
  22.   case ST_LOGIN_RES:
  23.     this.stage=ST_DATA;
  24.   case ST_DATA:
  25.     this.getHtml(this.dataURL,"_model.0=folders");
  26.     return false;
  27.   }
  28.   return this.baseProcess(aData,aHttp);
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top