Skip to content

Commit 60f2e61

Browse files
committed
Eliminated unneeded boolean literals ↞ [auto-sync from https://github.com/adamlui/youtube-classic]
1 parent 2771eff commit 60f2e61

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

youtube-classic/youtube-classic.user.js

Lines changed: 3 additions & 3 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.9
3+
// @version 2026.1.17.10
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
@@ -2027,7 +2027,7 @@
20272027
}
20282028

20292029
function likeClicked() {
2030-
if (checkForUserAvatarButton() == true) {
2030+
if (checkForUserAvatarButton()) {
20312031
if (previousState == 1) {
20322032
likesvalue--;
20332033
createRateBar(likesvalue, dislikesvalue);
@@ -2052,7 +2052,7 @@
20522052
}
20532053

20542054
function dislikeClicked() {
2055-
if (checkForUserAvatarButton() == true) {
2055+
if (checkForUserAvatarButton()) {
20562056
if (previousState == 3) {
20572057
dislikesvalue++;
20582058
setDislikes(numberFormat(dislikesvalue));

0 commit comments

Comments
 (0)