|
1 | 1 | // ==UserScript== |
2 | 2 | // @name YouTube™ Classic 📺 — (Remove rounded design + Return YouTube dislikes) |
3 | | -// @version 2026.1.20.11 |
| 3 | +// @version 2026.1.20.12 |
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 |
|
489 | 489 | viewMultiOwner: 'View %s replies from %s and others', |
490 | 490 | hideSingular: 'Hide reply', |
491 | 491 | hideMulti: 'Hide replies', |
492 | | - replyCountIsolator: /( REPLIES)|( REPLY)/ |
| 492 | + replyCntIsolator: /( REPLIES)|( REPLY)/ |
493 | 493 | } |
494 | 494 | } |
495 | 495 | function getString(string, hl = 'en', ...args) { |
|
535 | 535 | creatorName = replies.viewRepliesCreatorThumbnail.accessibility.accessibilityData.label |
536 | 536 | delete replies.viewRepliesCreatorThumbnail |
537 | 537 | } 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), '') |
540 | 540 | const viewMultiString = creatorName ? 'viewMultiOwner' : 'viewMulti', |
541 | 541 | viewSingleString = creatorName ? 'viewSingularOwner' : 'viewSingular' |
542 | 542 | replies.viewReplies.buttonRenderer.text = { |
543 | 543 | runs: [{ |
544 | | - text: (replyCount > 1) ? getString(viewMultiString, hl, replyCount, creatorName) |
| 544 | + text: (replyCnt > 1) ? getString(viewMultiString, hl, replyCnt, creatorName) |
545 | 545 | : getString(viewSingleString, hl, creatorName) |
546 | 546 | }] |
547 | 547 | } |
548 | 548 | 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) }] |
550 | 550 | } |
551 | 551 | } catch (err) {} |
552 | 552 | return thread |
|
0 commit comments