Skip to content

Commit 04cc9c5

Browse files
committed
Booleanized all isVideoReloaded() results ↞ [auto-sync from https://github.com/adamlui/youtube-classic]
1 parent 95f7931 commit 04cc9c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

youtube-classic/youtube-classic.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name YouTube™ Classic 📺 — (Remove rounded design + Return YouTube dislikes)
3-
// @version 2026.1.17.48
3+
// @version 2026.1.17.49
44
// @author Adam Lui, Magma_Craft, Anarios, JRWR, Fuim & hoothin
55
// @namespace https://github.com/adamlui
66
// @description Reverts YouTube to its classic design (before all the rounded corners & hidden dislikes) + redirects YouTube Shorts
@@ -1479,7 +1479,7 @@
14791479

14801480
function isVideoLoaded() {
14811481
return isMobile ? document.getElementById('player').getAttribute('loading') == 'false'
1482-
: document.querySelector(`ytd-watch-flexy[video-id='${getVideoID()}']`)
1482+
: !!document.querySelector(`ytd-watch-flexy[video-id='${getVideoID()}']`)
14831483
}
14841484

14851485
function roundDown(num) {

0 commit comments

Comments
 (0)