Skip to content

Commit 4f92c19

Browse files
committed
Shortened key/var names ↞ [auto-sync from https://github.com/adamlui/youtube-classic]
1 parent 63ebfa2 commit 4f92c19

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

youtube-classic/youtube-classic.user.js

Lines changed: 6 additions & 6 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.20.11
3+
// @version 2026.1.20.12
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
@@ -489,7 +489,7 @@
489489
viewMultiOwner: 'View %s replies from %s and others',
490490
hideSingular: 'Hide reply',
491491
hideMulti: 'Hide replies',
492-
replyCountIsolator: /( REPLIES)|( REPLY)/
492+
replyCntIsolator: /( REPLIES)|( REPLY)/
493493
}
494494
}
495495
function getString(string, hl = 'en', ...args) {
@@ -535,18 +535,18 @@
535535
creatorName = replies.viewRepliesCreatorThumbnail.accessibility.accessibilityData.label
536536
delete replies.viewRepliesCreatorThumbnail
537537
} catch (err) {}
538-
let replyCount = getSimpleString(replies.viewReplies.buttonRenderer.text)
539-
replyCount = +replyCount.replace(getString('replyCountIsolator', hl), '')
538+
let replyCnt = getSimpleString(replies.viewReplies.buttonRenderer.text)
539+
replyCnt = +replyCnt.replace(getString('replyCntIsolator', hl), '')
540540
const viewMultiString = creatorName ? 'viewMultiOwner' : 'viewMulti',
541541
viewSingleString = creatorName ? 'viewSingularOwner' : 'viewSingular'
542542
replies.viewReplies.buttonRenderer.text = {
543543
runs: [{
544-
text: (replyCount > 1) ? getString(viewMultiString, hl, replyCount, creatorName)
544+
text: (replyCnt > 1) ? getString(viewMultiString, hl, replyCnt, creatorName)
545545
: getString(viewSingleString, hl, creatorName)
546546
}]
547547
}
548548
replies.hideReplies.buttonRenderer.text = {
549-
runs: [{ text: (replyCount > 1) ? getString('hideMulti', hl) : getString('hideSingular', hl) }]
549+
runs: [{ text: (replyCnt > 1) ? getString('hideMulti', hl) : getString('hideSingular', hl) }]
550550
}
551551
} catch (err) {}
552552
return thread

0 commit comments

Comments
 (0)