Skip to content

Commit 86df926

Browse files
committed
Condensed lines + var names ↞ [auto-sync from https://github.com/adamlui/youtube-classic]
1 parent 5c860de commit 86df926

1 file changed

Lines changed: 14 additions & 16 deletions

File tree

youtube-classic/youtube-classic.user.js

Lines changed: 14 additions & 16 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.21.5
3+
// @version 2026.1.21.6
44
// @author Adam Lui, Magma_Craft, 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
@@ -469,17 +469,15 @@
469469
// Restore classic comments UI
470470
let hl
471471
const cfconfig = { unicodeEmojis: false }
472-
const cfi18n = {
473-
en: {
474-
viewSingular: 'View reply',
475-
viewMulti: 'View %s replies',
476-
viewSingularOwner: 'View reply from %s',
477-
viewMultiOwner: 'View %s replies from %s and others',
478-
hideSingular: 'Hide reply',
479-
hideMulti: 'Hide replies',
480-
replyCntIsolator: /( REPLIES)|( REPLY)/
481-
}
482-
}
472+
const cfi18n = { en: {
473+
viewSingular: 'View reply',
474+
viewMulti: 'View %s replies',
475+
viewSingularOwner: 'View reply from %s',
476+
viewMultiOwner: 'View %s replies from %s and others',
477+
hideSingular: 'Hide reply',
478+
hideMulti: 'Hide replies',
479+
replyCntIsolator: /( REPLIES)|( REPLY)/
480+
}}
483481
function getString(string, hl = 'en', ...args) {
484482
if (!string) return
485483
let str
@@ -525,12 +523,12 @@
525523
} catch (err) {}
526524
let replyCnt = getSimpleString(replies.viewReplies.buttonRenderer.text)
527525
replyCnt = +replyCnt.replace(getString('replyCntIsolator', hl), '')
528-
const viewMultiString = creatorName ? 'viewMultiOwner' : 'viewMulti',
529-
viewSingleString = creatorName ? 'viewSingularOwner' : 'viewSingular'
526+
const viewMultiStr = creatorName ? 'viewMultiOwner' : 'viewMulti',
527+
viewSingleStr = creatorName ? 'viewSingularOwner' : 'viewSingular'
530528
replies.viewReplies.buttonRenderer.text = {
531529
runs: [{
532-
text: (replyCnt > 1) ? getString(viewMultiString, hl, replyCnt, creatorName)
533-
: getString(viewSingleString, hl, creatorName)
530+
text: (replyCnt > 1) ? getString(viewMultiStr, hl, replyCnt, creatorName)
531+
: getString(viewSingleStr, hl, creatorName)
534532
}]
535533
}
536534
replies.hideReplies.buttonRenderer.text = {

0 commit comments

Comments
 (0)