Yandex video doesn't work Topic is solved

Users and developers helping users with technical Pale Moon issues (Windows and other non-Linux O.S.). Please direct questions about the Linux version to the appropriate Linux board.

Moderators: trava90, satrow

Forum rules
This board is for technical/usage questions and troubleshooting for the Pale Moon browser only. The main focus here is on Pale Moon on Windows. Please direct your questions for Linux, Android and Mac to the dedicated boards.
Technical issues and questions not related to the Pale Moon browser should be posted in "technical chat"
Please keep off-topic and general discussion out of this board, thank you!
_yuyu_
Fanatic
Fanatic
Posts: 101
Joined: Mon, 02 Mar 2015, 14:18
Location: Moscow

Yandex video doesn't work

Postby _yuyu_ » Wed, 11 Jan 2017, 12:33

PM 27.0.3. On https://yandex.ru/video/ only a black rectangle is shown instead of video frame. The same happens on clean profile and on PM 26.5. User Agent tweaking does not help. It works fine on FF however. Cannot figure it out :(

lyceus
Moon Magic practitioner
Moon Magic practitioner
Posts: 2210
Joined: Tue, 13 Sep 2011, 23:08

Re: Yandex video doesn't work

Postby lyceus » Tue, 17 Jan 2017, 03:53

Hello!

I had seen Yandex issues in the past. That depends if you use the Adobe Flash player (deprecated in Pale Moon) or the HTML5 video player (now the 1st option).

You may like to install some codec pack (like CCCP or K-Lite) for boost your codecs for see HTML5 video.

If you uninstall flash player yandex should show the HTML5 player.

Block script and Ad blocker add-ons also mess with the option of Yandex to serve Flash or HTML5. If you need to see Flash Video please update your flash player plug-in to the last version available.

Best regards,
Lyceus

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 4351
Joined: Tue, 09 Oct 2012, 19:37

Re: Yandex video doesn't work

Postby New Tobin Paradigm » Tue, 17 Jan 2017, 08:25

Since when is the Flash Player deprecated in Pale Moon?! It is deprecated in MOZILLA FIREFOX as a plugin and as a valid player on YOUTUBE but not in PALE MOON. Last I checked the Project was going to support NPAPI forever even if the plugins them selves get dropped by the developers of them. So what nonsense is this?!

May I remind you that Pale Moon is not Firefox and never will be again?
OH, BUT MY PRIDE! GRR! I WISH I WERE A CARROT!
[ ニュー・トビン・パラダイム ]

_yuyu_
Fanatic
Fanatic
Posts: 101
Joined: Mon, 02 Mar 2015, 14:18
Location: Moscow

Re: Yandex video doesn't work

Postby _yuyu_ » Tue, 17 Jan 2017, 10:16

lobocursor wrote:Hello!

I had seen Yandex issues in the past. That depends if you use the Adobe Flash player (deprecated in Pale Moon) or the HTML5 video player (now the 1st option).

You may like to install some codec pack (like CCCP or K-Lite) for boost your codecs for see HTML5 video.

If you uninstall flash player yandex should show the HTML5 player.

Block script and Ad blocker add-ons also mess with the option of Yandex to serve Flash or HTML5. If you need to see Flash Video please update your flash player plug-in to the last version available.

Best regards,
Lyceus

Flash is deactivated by default. I have the latest K-Lite Mega codec pack installed. As I specified, the problem persist on clean profile without any adblocking.

User avatar
Fedor2
Lunatic
Lunatic
Posts: 451
Joined: Mon, 11 Apr 2016, 01:26

Re: Yandex video doesn't work

Postby Fedor2 » Tue, 17 Jan 2017, 16:36

Yandex video can be played if you change useragent for Internet Explorer. The problem with yandex has been got from firefox 38, where it doesт't play as well. However it plays good in old opera presto.

lyceus
Moon Magic practitioner
Moon Magic practitioner
Posts: 2210
Joined: Tue, 13 Sep 2011, 23:08

Re: Yandex video doesn't work

Postby lyceus » Wed, 18 Jan 2017, 06:15

Matt A Tobin wrote:Since when is the Flash Player deprecated in Pale Moon?! It is deprecated in MOZILLA FIREFOX as a plugin and as a valid player on YOUTUBE but not in PALE MOON. Last I checked the Project was going to support NPAPI forever even if the plugins them selves get dropped by the developers of them. So what nonsense is this?!

May I remind you that Pale Moon is not Firefox and never will be again?


As I far I know when I said "deprecated" is about that Pale Moon uses HTML5 video first and not Flash as before. I talked of video as this topic say "Yandex video doesn't work".

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1214
Joined: Thu, 03 Sep 2015, 19:47
Location: UA
Contact:

Re: Yandex video doesn't work

Postby JustOff » Fri, 27 Jan 2017, 14:56

Fedor2 wrote:Yandex video can be played if you change useragent for Internet Explorer.

Could you please suggest the exact user agent string and corresponding domain(s) for overwrite? I can't get it work with any options ...
Here are the add-ons I made in a spare time. That was fun!

User avatar
Fedor2
Lunatic
Lunatic
Posts: 451
Joined: Mon, 11 Apr 2016, 01:26

Re: Yandex video doesn't work

Postby Fedor2 » Fri, 27 Jan 2017, 20:16

general.useragent.override.yandex.ru but yandex.ru change to yandex.ua if it determined you as from ua.
Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 5.1; rv:3.0) Goanna/20161217 PaleMoon/27.0.3

This do the trick
Last edited by Fedor2 on Fri, 27 Jan 2017, 20:26, edited 1 time in total.

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1214
Joined: Thu, 03 Sep 2015, 19:47
Location: UA
Contact:

Re: Yandex video doesn't work

Postby JustOff » Fri, 27 Jan 2017, 20:19

Fedor2 wrote:Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 5.1; rv:3.0) Goanna/20161217 PaleMoon/27.0.3

This do the trick

For which domain?
Here are the add-ons I made in a spare time. That was fun!

User avatar
Fedor2
Lunatic
Lunatic
Posts: 451
Joined: Mon, 11 Apr 2016, 01:26

Re: Yandex video doesn't work

Postby Fedor2 » Fri, 27 Jan 2017, 20:27

Huh, so quick, i just have edited my previous answer.

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1214
Joined: Thu, 03 Sep 2015, 19:47
Location: UA
Contact:

Re: Yandex video doesn't work

Postby JustOff » Fri, 27 Jan 2017, 20:30

Ok, now I got it, thanks ... To be sure we have to set override for yandex.com, yandex.ru, yandex.ua and yandex.by. Such a madness ...
Here are the add-ons I made in a spare time. That was fun!

User avatar
Fedor2
Lunatic
Lunatic
Posts: 451
Joined: Mon, 11 Apr 2016, 01:26

Re: Yandex video doesn't work

Postby Fedor2 » Fri, 27 Jan 2017, 20:45

Oh yes!

But i know for certain this is something with scripting, that yandex changes for newer browser. You may check that IE10 or 11 does not work.

_yuyu_
Fanatic
Fanatic
Posts: 101
Joined: Mon, 02 Mar 2015, 14:18
Location: Moscow

Re: Yandex video doesn't work

Postby _yuyu_ » Sat, 28 Jan 2017, 08:29

Fedor2 wrote:Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 5.1; rv:3.0) Goanna/20161217 PaleMoon/27.0.3
This do the trick

Yes, IE9 agent string solved the problem. Great.

_yuyu_
Fanatic
Fanatic
Posts: 101
Joined: Mon, 02 Mar 2015, 14:18
Location: Moscow

Re: Yandex video doesn't work

Postby _yuyu_ » Sat, 28 Jan 2017, 21:25

Yes. Setting UA string to IE9 forces Yandex video to work, but it stops Yandex maps and Yandex music. Now they complain about the "outdated browser". :D

User avatar
Fedor2
Lunatic
Lunatic
Posts: 451
Joined: Mon, 11 Apr 2016, 01:26

Re: Yandex video doesn't work

Postby Fedor2 » Mon, 30 Jan 2017, 13:58

IE9 is outdated too? No luck.

Here I see two ways of solving the problem.
1. Do some script fixing with greasmonkey.
2. Bring to the Pale moon js code from 45 firefox where yandex video plays fine out of the box. This also will fix many other sites.

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1214
Joined: Thu, 03 Sep 2015, 19:47
Location: UA
Contact:

Re: Yandex video doesn't work

Postby JustOff » Mon, 30 Jan 2017, 14:12

Fedor2 wrote:Here I see two ways of solving the problem.
1. Do some script fixing with greasmonkey.
2. Bring to the Pale moon js code from 45 firefox where yandex video plays fine out of the box. This also will fix many other sites.

3. Report about the bug (I think it's preferred).
Here are the add-ons I made in a spare time. That was fun!

User avatar
Fedor2
Lunatic
Lunatic
Posts: 451
Joined: Mon, 11 Apr 2016, 01:26

Re: Yandex video doesn't work

Postby Fedor2 » Mon, 30 Jan 2017, 14:59

But this is not a bug i'd say. Yandex have two scripting sets: one for older browsers like internet explorer 6-9 opera presto and such, and another for newer. Of course this is also a way out, which i did not propose, let yandex insert Pale moon into older browser list. This is good if Pale moon will stuck in firefox 38 js code.

User avatar
Fedor2
Lunatic
Lunatic
Posts: 451
Joined: Mon, 11 Apr 2016, 01:26

Re: Yandex video doesn't work

Postby Fedor2 » Mon, 30 Jan 2017, 20:22

I tried do scriptfixing with greasmonkey and for now its failing. Page and scripts are quite different, so i do change src attribute, but nothing happens, script stay the same. What i did wrong?

Details
I want change
<script src="//yastatic.net/video3/1.62.0-2bc8e8a34/pages-desktop/common/_common.ru.js"></script> to
<script src="//yastatic.net/video3/0xd677974/pages-desktop/common/_common.ru.js"></script>

Code: Select all

// ==UserScript==
// @name        yavideo fix
// @namespace   yavideo fix
// @include     https://yandex.ua/video/*
// @version     1
// @grant       none
// ==/UserScript==

document.getElementsByTagName("body")
[0].innerHTML=document.getElementsByTagName("body")
[0].innerHTML.replace('1.62.0-2bc8e8a34','0xd677974');

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1214
Joined: Thu, 03 Sep 2015, 19:47
Location: UA
Contact:

Re: Yandex video doesn't work  Topic is solved

Postby JustOff » Mon, 30 Jan 2017, 21:13

Code: Select all

if (topic == 'http-on-modify-request' && subject instanceof Ci.nsIHttpChannel
      && (subject.URI.host == "yandex.com" || subject.URI.host == "yandex.ru" || subject.URI.host == "yandex.ua")
      && subject.URI.path.substring(0,7) == '/video/') {
   subject.setRequestHeader('User-Agent', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 5.1; rv:3.0) Goanna/20161217 PaleMoon/27.0.3', false);
}

moon-yandex-video-1.0.1.xpi
(3.35 KiB) Downloaded 227 times

Quite dirty, but works 8-)
Here are the add-ons I made in a spare time. That was fun!

User avatar
Fedor2
Lunatic
Lunatic
Posts: 451
Joined: Mon, 11 Apr 2016, 01:26

Re: Yandex video doesn't work

Postby Fedor2 » Mon, 30 Jan 2017, 21:49

It works, thanks!


Return to “General support”

Who is online

Users browsing this forum: Pale Moon Rising and 11 guests