Skip to content

Commit ca067e6

Browse files
committed
Shortened array length check
1 parent 027c17a commit ca067e6

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 2025.10.19.2
3+
// @version 2025.10.20
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
@@ -1889,7 +1889,7 @@
18891889
let likeButton = getLikeButton().querySelector('yt-formatted-string#text') ??
18901890
getLikeButton().querySelector('button');
18911891
let likesStr = likeButton.getAttribute('aria-label').replace(/\D/g, '');
1892-
return likesStr.length > 0 ? parseInt(likesStr) : false;
1892+
return likesStr.length ? parseInt(likesStr) : false;
18931893
}
18941894
catch { return false; }
18951895
}

0 commit comments

Comments
 (0)