This commit is contained in:
goodtube4u
2025-09-28 17:50:02 +10:00
parent 9fbd9bfc21
commit bc59c322a0

View File

@@ -2558,6 +2558,11 @@
// Play video
let goodTube_hideAndMuteAdsFallback_play_timeout = setTimeout(() => {}, 0);
function goodTube_hideAndMuteAdsFallback_play() {
// Make sure that the "hide and mute ads" fallback is active AND we're viewing a video
if (!goodTube_fallback || window.location.href.indexOf('/watch?') === -1) {
return;
}
// Re-fetch the page api
goodTube_page_api = document.getElementById('movie_player');