YePpHa / YouTubeCenter

YouTube Center is a userscript designed to expand the functionality of YouTube. It includes the ability to download the video you're watching, auto selecting your preferred video quality and much more.
MIT License
2.89k stars 519 forks source link

Black window where player should be #2483

Closed Vadigor closed 6 years ago

Vadigor commented 6 years ago

Sometime in the past 24 hours a presumed YouTube update broke YouTubeCenter completely. Instead of rendering the player, it just draws a black screen. Type of player selected or other options don't seem to matter.

Console shows:

TypeError: window.matchMedia is not a function[Learn More]  base.js:7279:111
    <anonymous> https://www.youtube.com/yts/jsbin/player-vflRhCLRy/en_GB/base.js:7279:111
    <anonymous> https://www.youtube.com/yts/jsbin/player-vflRhCLRy/en_GB/base.js:1:20
TypeError: content is null[Learn More]  watch:23059:11
    resize YouTubeCenter.js:23059:11
    ytcenter.player._resize YouTubeCenter.js:23280:16
    ytcenter.player._updateResize YouTubeCenter.js:22918:9
    mutationCallback YouTubeCenter.js:2485:11
TypeError: window.matchMedia is not a function[Learn More]  base.js:7279:111
    <anonymous> https://www.youtube.com/yts/jsbin/player-vflRhCLRy/en_GB/base.js:7279:111
    <anonymous> https://www.youtube.com/yts/jsbin/player-vflRhCLRy/en_GB/base.js:1:20
TypeError: uw.yt.player is undefined[Learn More]  watch:10870:11
    load YouTubeCenter.js:10870:11
    onload

I realise that maintenance on this was stopped so I don't expect we'll get an official fix for this, but perhaps a workaround can be found.

YePpHa commented 6 years ago

Someone made a PR which is now compiled. Go to https://github.com/YePpHa/YouTubeCenter/tree/master/dist and install the new version.

ThoBekMic commented 6 years ago

The one for Chrome is version 548 still :-)

EDIT: I meant that we can't download the one for Chrome, because the one that's in your link is still the old version 548.

YePpHa commented 6 years ago

@ShamblerDK I seem to have forgotten to use the certificate.

Vadigor commented 6 years ago

Ah, didn't realise the Issue page filtered out closed ones. This is a duplicate of 2481 which is now fixed in build 549.

Vadigor commented 6 years ago

Duplicate of #2481

ThoBekMic commented 6 years ago

@YePpHa Tak :-)

Green45 commented 6 years ago

The Maxthon version appears to be build 548, too.

YePpHa commented 6 years ago

@Green45 as far as I can see https://github.com/YePpHa/YouTubeCenter/raw/master/dist/YouTubeCenter.mxaddon is build 549.

Green45 commented 6 years ago

Claims to be Build 548 when I check the "about" info on YouTube. Additionally, it still has the "black screen only"-bug, which I assume was meant to be fixed in 549 for all browsers?

YePpHa commented 6 years ago

@Green45 perhaps there's a caching issue in Maxthon. Have you tried to uninstall the extension. Close the browser. Open the browser and install the new version?

Green45 commented 6 years ago

Turn it off and turn it back on again, in other words.

And you know what? It worked. It ALWAYS works.

YePpHa commented 6 years ago

@Green45 glad to be of some help :)