Yandex.com and Yandex.ru

Two important scripts yandex.com and yandex.ru both stopped working today. Manual login works well. Can anyone check what's wrong. Many thanks in advance.

Kalimist's picture

Same problem here, I use yandex.com a lot, please take a look at this problem.

Thanks in advance.

There are no visual changes on the login page, so, probably, the page link itself or some minor details should be changed in the code to get the script up and runnning. Please help who can.

Kalimist's picture

I'm not an expert but I modified the script (lines 9 and 23) and now it works. Here's the modified code: https://pastebin.com/3Yvq6X9v

(copy the code, save as: yandex.com.js and import in X-Notifier)

Compare with the original: http://xnotifier.tobwithu.com/downloads/scripts/yandex.com.js

Enjoy!

RpD's picture

You might send it to xndevel@gmail.com and maybe the admin will post it to Scripts here.

Kalimist's picture

Done, thanks for the advice.

Kalimist, awesome. It works now. Thank you!

Could you please advise where did you find the correct "this.dataURL" and "this.getHtml" parameters? I'd like to modify the yandex.ru script too.

Kalimist's picture

Try this one for yandex.ru, both scripts are similar and this should work well for .ru domain:

https://pastebin.com/Kqk1Cjys

Save as: yandex.js

I don't understand the inference to there being two scripts, I see only one. Not only that, the script file has .ru all in those places but has worked fine for a .com email address. Up until yesterday that is.

Kalimist's picture

There are two scripts, one for .com and one for .ru: http://xnotifier.tobwithu.com/scripts.php?key=name&dir=-1

I never saw the older one. I have been using 3/6/2015 (.ru) for a .com address, working perfectly (until yesterday). This suggests it should be able to be edited to work for both. Will we get properly posted script(s) with the revisions?

Kalimist's picture

Try this one: http://xnotifier.tobwithu.com/dp/comment/12169#comment-12169

It should work for you if you were using the .ru version of the script.

Kalimist, both scripts work like a charm now! Thanks!

I made 3 edits manually to .ru (which is the most recent posted), as indicated above. It works fine for .com address.

JohnSmith1's picture

Kalimist, thank you. Script for .ru works perfectly.

Since today both scripts stopped checking.

jeroen, you as a guru, would you please check  :) I can provide the testing account if needed. It seems a minor fix is required. Thanks in advance!

Hobbix2's picture

please help update this script

I wanted to emphasize that as suggested above, I believe only the ru script is needed for both address types (not sure what happens if you have both). I have one .com address and has always worked with the ru script (until about 3 days ago, as has already been indicated here). Just trying to make this easier please...

This is on 3.5.23

Where are you? Anybody?

Is this being looked into please?

Новый рабочий скрипт 

https://pastebin.com/rZ5jH6tu

Спасибо! Thanks!

yandex stopped working again. Can anyone check this?

Hobbix2's picture

please update script for Yandex

/********************************************************** 
Yandex 
**********************************************************/ 
var name="Yandex.ru"; 
var ver="2018-07-25"; 
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) { 
  // 2018-02-21     
  // var fnd = aData.match(/"status":"ok","data":{"new":(\d+)/);\ 
  // 2018-07-25 
  var fnd = aData.match(/"data":{"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); 

Hobbix2's picture

Спасибо. А зачем в вашем скрипте function process?

а что вы мне спрашивайте, спросите автора xnotifier. 
возьмите любой скрипт http://xnotifier.tobwithu.com/scripts.php везде есть init  и process . 
скорее какая то связь с самим расширением. Я нового ничего не придумывал, только одну строчку из старого скрипта поправил.

Благодарность

yandex.com (ru) script stopped checking email again. Can anyone fix it? Thank you!

Hobbix2's picture

Please update the script for Yandex!

yandex.com (ru) script stopped checking email again.

Can anyone fix it?

Thank you!

Новый скрипт: https://pastebin.com/Vqy2J1Qu

Hobbix2's picture

pangasiys, огромное спасибо! Пока всё работает. Единственное, что если установлена двухфакторная авторизация через временный пароль от яндекс.ключ, то пароль от такого ящика уже не подходит после перезапуска браузера. Но тут скорее всего дело не в скрипте, придется не закрывать браузер.

Hobbix2's picture

pangasiys, сейчас потестировал повнимательнее ящик  яндекса с двухфакторной авторизацией. Всё-таки пароль от яндекс.ключа сбрасывается сейчас не после перезапуска браузера, а сразу после повторной проверки почты (в зависимости от того, какой интервал проверки почты задан). Это нереально поправить как-то в скрипте, чтобы хотя бы до закрытия браузера пароль яндекс.ключа подходил? На одном из моих ящиков всё-таки не хотелось бы отключать двухфакторную авторизацию.

не знаю, что там можно сделать, мне нет телефона на yandex, не могу посмотреть даже.

и сегодняшний способ, скорее, долго не проживёт, при малейших изменениях, уже цифру не найдёт