Disable "forced" compatibility mode on YouTube?

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!
User avatar
__NM64__
Lunatic
Lunatic
Posts: 387
Joined: 2013-10-17, 05:29
Location: minus 4 hours UTC

Disable "forced" compatibility mode on YouTube?

Unread post by __NM64__ » 2016-01-27, 21:12

I noticed that YouTube refuses to serve DASH VP9/WebM video streams when Firefox compatibility mode is enabled. This was easy to work around in Pale Moon 25 since I could just disable the setting in options, but PM 26 seems to force Firefox compatibility mode even when I have that setting disabled in said options.

So how can I go about disabling what seems to be "Forced" compatibility mode?


For reference, I use ViewTube (LINK) to access the DASH VP9/WebM video streams.

If you need an example video to test with, I normally use these:
Still image: https://www.youtube.com/watch?v=kw9fsQbukJ4
60fps video: https://www.youtube.com/watch?v=a-mBnpsuHgM


In Pale Moon 25, with compatibility mode turned off, you will find various "High Definition WebM" formats listed in ViewTube's drop-down menu; if you turn compatibility mode on then reload the page, none of the "High Definition WebM" formats will be listed.
CPU: Xeon E3-1246 v3 (4c/8t Haswell/Intel 4th gen) — core & cache @ 3.9GHz via multicore enhancement
GPU: Intel integrated HD Graphics P4600
RAM: 4x8GB Corsair Vengence @ DDR3-1600
OS: Linux Mint 20.3 Xfce + [VM] Win7 SP1 x64

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2985
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Disable "forced" compatibility mode on YouTube?

Unread post by coffeebreak » 2016-01-28, 12:24

Nintendo Maniac 64 wrote:PM 26 seems to force Firefox compatibility mode even when I have that setting disabled in said options.

So how can I go about disabling what seems to be "Forced" compatibility mode?
I haven't used ViewTube but maybe this will help.

-- PM 26 shipped with a custom useragent override for Youtube so you'd need to delete that value to allow the regular compatMode settings (or lack thereof) to take effect for youtube.com.

-- Don't know if this matters but: PM 26 (unlike 25.8.1) has two compatMode preferences, one for Firefox, one for Gecko. The front end setting in the Options panel only affects the Firefox preference. To turn off the Gecko preference you have to go to about:config and toggle general.useragent.compatMode.gecko to false.

Also Youtube just modified it's browser version support policy -- timing-wise, coincides with FF 44 release (my opinion) -- and it's caused access problems. More on that in this thread.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37665
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Disable "forced" compatibility mode on YouTube?

Unread post by Moonchild » 2016-01-28, 14:49

You will have to replace the value of the pre-set YouTube override in about:config with a value of your choice that works for your script.
This was pre-set because not having it set would make it directly dependent on other settings and by default not even work correctly. As long as YouTube keeps doing useragent checks, and continues to do it incorrectly or not complete, we will be forced to have overrides in place for them to feed them something that makes it work for our users who just want to watch videos.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
cartel
Astronaut
Astronaut
Posts: 504
Joined: 2014-03-16, 21:57
Location: Chilliwack, BC

Re: Disable "forced" compatibility mode on YouTube?

Unread post by cartel » 2016-01-28, 15:52

PM 26 over-wrote my useragent for YT I think.

Changed it to this to get html5 back.

general.useragent.override.youtube.com
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
ImageImage

User avatar
__NM64__
Lunatic
Lunatic
Posts: 387
Joined: 2013-10-17, 05:29
Location: minus 4 hours UTC

Re: Disable "forced" compatibility mode on YouTube?

Unread post by __NM64__ » 2016-01-28, 20:12

cartel wrote:general.useragent.override.youtube.com
Oh, at the time of making this thread I didn't realize that I could just use this setting to work around this issue. I've used it before as a per-site compatibility mode, and it never occurred to me that I can basically use it to disable compatibility mode as well.

Simply setting the useragent for youtube.com to be the default Pale Moon user agent "fixed" the issue.
CPU: Xeon E3-1246 v3 (4c/8t Haswell/Intel 4th gen) — core & cache @ 3.9GHz via multicore enhancement
GPU: Intel integrated HD Graphics P4600
RAM: 4x8GB Corsair Vengence @ DDR3-1600
OS: Linux Mint 20.3 Xfce + [VM] Win7 SP1 x64