mirror of
https://github.com/goodtube4u/goodtube.git
synced 2025-11-22 10:16:11 +00:00
Sizing fix
This commit is contained in:
parent
f3e5c63325
commit
5f27d75ee9
@ -730,7 +730,8 @@
|
|||||||
goodTube_clearedPlayer = false;
|
goodTube_clearedPlayer = false;
|
||||||
|
|
||||||
// Get the Youtube player
|
// Get the Youtube player
|
||||||
let youtubePlayer = document.querySelector('#player.ytd-watch-flexy');
|
// We target 3 elements here, it seems to change for different users? Weird stuff.
|
||||||
|
let youtubePlayer = document.querySelector('#player.ytd-watch-flexy, #ytd-player, .player-size');
|
||||||
|
|
||||||
// If we found the Youtube player
|
// If we found the Youtube player
|
||||||
if (youtubePlayer && youtubePlayer.offsetHeight > 0) {
|
if (youtubePlayer && youtubePlayer.offsetHeight > 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user