|
1 | 1 | // ==UserScript== |
2 | 2 | // @name YouTube™ Classic 📺 — (Remove rounded design + Return YouTube dislikes) |
3 | | -// @version 2026.1.17.36 |
| 3 | +// @version 2026.1.17.37 |
4 | 4 | // @author Adam Lui, Magma_Craft, Anarios, JRWR, Fuim & hoothin |
5 | 5 | // @namespace https://github.com/adamlui |
6 | 6 | // @description Reverts YouTube to its classic design (before all the rounded corners & hidden dislikes) + redirects YouTube Shorts |
|
1343 | 1343 | dislikeTextContainer.removeAttribute('is-empty') ; dislikeTextContainer.innerText = dislikesCnt |
1344 | 1344 | } |
1345 | 1345 |
|
1346 | | - function getLikeCountFromButton() { |
| 1346 | + function getLikeCntFromBtn() { |
1347 | 1347 | try { |
1348 | 1348 | if (isShorts()) return null |
1349 | 1349 | const likeBtn = getLikeBtn().querySelector('yt-formatted-string#text') |
|
1417 | 1417 | dislikesvalue = dislikes |
1418 | 1418 | setDislikes(numberFormat(dislikes)) |
1419 | 1419 | if (extConfig.numberDisplayReformatLikes) { |
1420 | | - const nativeLikes = getLikeCountFromButton() |
| 1420 | + const nativeLikes = getLikeCntFromBtn() |
1421 | 1421 | if (nativeLikes != null) setLikes(numberFormat(nativeLikes)) |
1422 | 1422 | } |
1423 | 1423 | createRateBar(likes, dislikes) |
|
1461 | 1461 | previousState = 1 |
1462 | 1462 | } |
1463 | 1463 | if (extConfig.numberDisplayReformatLikes) { |
1464 | | - const nativeLikes = getLikeCountFromButton() |
| 1464 | + const nativeLikes = getLikeCntFromBtn() |
1465 | 1465 | if (nativeLikes != null) setLikes(numberFormat(nativeLikes)) |
1466 | 1466 | } |
1467 | 1467 | } |
|
1486 | 1486 | createRateBar(likesvalue, dislikesvalue) |
1487 | 1487 | previousState = 2 |
1488 | 1488 | if (extConfig.numberDisplayReformatLikes) { |
1489 | | - const nativeLikes = getLikeCountFromButton() |
| 1489 | + const nativeLikes = getLikeCntFromBtn() |
1490 | 1490 | if (nativeLikes != null) setLikes(numberFormat(nativeLikes)) |
1491 | 1491 | } |
1492 | 1492 | } |
|
0 commit comments