Skip to content

Commit 645086f

Browse files
committed
Shoretened getLikeCountFromButton() name ↞ [auto-sync from https://github.com/adamlui/youtube-classic]
1 parent 75f8c83 commit 645086f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

youtube-classic/youtube-classic.user.js

Lines changed: 5 additions & 5 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.36
3+
// @version 2026.1.17.37
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
@@ -1343,7 +1343,7 @@
13431343
dislikeTextContainer.removeAttribute('is-empty') ; dislikeTextContainer.innerText = dislikesCnt
13441344
}
13451345

1346-
function getLikeCountFromButton() {
1346+
function getLikeCntFromBtn() {
13471347
try {
13481348
if (isShorts()) return null
13491349
const likeBtn = getLikeBtn().querySelector('yt-formatted-string#text')
@@ -1417,7 +1417,7 @@
14171417
dislikesvalue = dislikes
14181418
setDislikes(numberFormat(dislikes))
14191419
if (extConfig.numberDisplayReformatLikes) {
1420-
const nativeLikes = getLikeCountFromButton()
1420+
const nativeLikes = getLikeCntFromBtn()
14211421
if (nativeLikes != null) setLikes(numberFormat(nativeLikes))
14221422
}
14231423
createRateBar(likes, dislikes)
@@ -1461,7 +1461,7 @@
14611461
previousState = 1
14621462
}
14631463
if (extConfig.numberDisplayReformatLikes) {
1464-
const nativeLikes = getLikeCountFromButton()
1464+
const nativeLikes = getLikeCntFromBtn()
14651465
if (nativeLikes != null) setLikes(numberFormat(nativeLikes))
14661466
}
14671467
}
@@ -1486,7 +1486,7 @@
14861486
createRateBar(likesvalue, dislikesvalue)
14871487
previousState = 2
14881488
if (extConfig.numberDisplayReformatLikes) {
1489-
const nativeLikes = getLikeCountFromButton()
1489+
const nativeLikes = getLikeCntFromBtn()
14901490
if (nativeLikes != null) setLikes(numberFormat(nativeLikes))
14911491
}
14921492
}

0 commit comments

Comments
 (0)