Yandex video doesn't work Topic is solved

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
_yuyu_
Lunatic
Lunatic
Posts: 253
Joined: 2015-03-02, 14:18

Yandex video doesn't work

Unread post by _yuyu_ » 2017-01-11, 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 :(
Pale Moon 32-bit on Win 7 x64

lyceus

Re: Yandex video doesn't work

Unread post by lyceus » 2017-01-17, 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

New Tobin Paradigm

Re: Yandex video doesn't work

Unread post by New Tobin Paradigm » 2017-01-17, 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?

_yuyu_
Lunatic
Lunatic
Posts: 253
Joined: 2015-03-02, 14:18

Re: Yandex video doesn't work

Unread post by _yuyu_ » 2017-01-17, 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.
Pale Moon 32-bit on Win 7 x64

Fedor2

Re: Yandex video doesn't work

Unread post by Fedor2 » 2017-01-17, 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

Re: Yandex video doesn't work

Unread post by lyceus » 2017-01-18, 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".

JustOff

Re: Yandex video doesn't work

Unread post by JustOff » 2017-01-27, 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 ...

Fedor2

Re: Yandex video doesn't work

Unread post by Fedor2 » 2017-01-27, 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 2017-01-27, 20:26, edited 1 time in total.

JustOff

Re: Yandex video doesn't work

Unread post by JustOff » 2017-01-27, 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?

Fedor2

Re: Yandex video doesn't work

Unread post by Fedor2 » 2017-01-27, 20:27

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

JustOff

Re: Yandex video doesn't work

Unread post by JustOff » 2017-01-27, 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 ...

Fedor2

Re: Yandex video doesn't work

Unread post by Fedor2 » 2017-01-27, 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_
Lunatic
Lunatic
Posts: 253
Joined: 2015-03-02, 14:18

Re: Yandex video doesn't work

Unread post by _yuyu_ » 2017-01-28, 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.
Pale Moon 32-bit on Win 7 x64

_yuyu_
Lunatic
Lunatic
Posts: 253
Joined: 2015-03-02, 14:18

Re: Yandex video doesn't work

Unread post by _yuyu_ » 2017-01-28, 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
Pale Moon 32-bit on Win 7 x64

Fedor2

Re: Yandex video doesn't work

Unread post by Fedor2 » 2017-01-30, 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.

JustOff

Re: Yandex video doesn't work

Unread post by JustOff » 2017-01-30, 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).

Fedor2

Re: Yandex video doesn't work

Unread post by Fedor2 » 2017-01-30, 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.

Fedor2

Re: Yandex video doesn't work

Unread post by Fedor2 » 2017-01-30, 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');

JustOff

Re: Yandex video doesn't work

Unread post by JustOff » 2017-01-30, 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 343 times
Quite dirty, but works 8-)

Fedor2

Re: Yandex video doesn't work

Unread post by Fedor2 » 2017-01-30, 21:49

It works, thanks!

Locked