Skip to content

Commit d8284ed

Browse files
committed
Updated nativeLikes null check ↞ [auto-sync from https://github.com/adamlui/youtube-classic]
1 parent 709fef8 commit d8284ed

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

youtube-classic/youtube-classic.user.js

Lines changed: 4 additions & 6 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.11
3+
// @version 2026.1.17.12
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
@@ -1988,9 +1988,7 @@
19881988
setDislikes(numberFormat(dislikes));
19891989
if (extConfig.numberDisplayReformatLikes === true) {
19901990
const nativeLikes = getLikeCountFromButton();
1991-
if (nativeLikes !== false) {
1992-
setLikes(numberFormat(nativeLikes));
1993-
}
1991+
if (nativeLikes != null) setLikes(numberFormat(nativeLikes))
19941992
}
19951993
createRateBar(likes, dislikes);
19961994
if (extConfig.coloredThumbs === true) {
@@ -2046,7 +2044,7 @@
20462044
}
20472045
if (extConfig.numberDisplayReformatLikes === true) {
20482046
const nativeLikes = getLikeCountFromButton();
2049-
if (nativeLikes !== false) { setLikes(numberFormat(nativeLikes)); }
2047+
if (nativeLikes != null) setLikes(numberFormat(nativeLikes))
20502048
}
20512049
}
20522050
}
@@ -2071,7 +2069,7 @@
20712069
previousState = 2;
20722070
if (extConfig.numberDisplayReformatLikes === true) {
20732071
const nativeLikes = getLikeCountFromButton();
2074-
if (nativeLikes !== false) { setLikes(numberFormat(nativeLikes)); }
2072+
if (nativeLikes != null) setLikes(numberFormat(nativeLikes))
20752073
}
20762074
}
20772075
}

0 commit comments

Comments
 (0)