Skip to content

Commit efa51fc

Browse files
committed
Condensed checkForUserAvatarButton() ↞ [auto-sync from https://github.com/adamlui/youtube-classic]
1 parent cc7aa98 commit efa51fc

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

youtube-classic/youtube-classic.user.js

Lines changed: 3 additions & 4 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.7
3+
// @version 2026.1.17.8
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
@@ -1865,9 +1865,8 @@
18651865
}
18661866

18671867
function checkForUserAvatarButton() {
1868-
if (isMobile) { return; }
1869-
if (document.querySelector('#avatar-btn')) { return true;
1870-
} else { return false; }
1868+
if (isMobile) return false
1869+
return !!document.querySelector('#avatar-btn')
18711870
}
18721871

18731872
function setLikes(likesCount) {

0 commit comments

Comments
 (0)