|
1 | 1 | // ==UserScript== |
2 | 2 | // @name YouTube™ Classic 📺 — (Remove rounded design + Return YouTube dislikes) |
3 | | -// @version 2026.1.21.5 |
| 3 | +// @version 2026.1.21.6 |
4 | 4 | // @author Adam Lui, Magma_Craft, 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 |
|
469 | 469 | // Restore classic comments UI |
470 | 470 | let hl |
471 | 471 | 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 | + }} |
483 | 481 | function getString(string, hl = 'en', ...args) { |
484 | 482 | if (!string) return |
485 | 483 | let str |
|
525 | 523 | } catch (err) {} |
526 | 524 | let replyCnt = getSimpleString(replies.viewReplies.buttonRenderer.text) |
527 | 525 | 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' |
530 | 528 | replies.viewReplies.buttonRenderer.text = { |
531 | 529 | 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) |
534 | 532 | }] |
535 | 533 | } |
536 | 534 | replies.hideReplies.buttonRenderer.text = { |
|
0 commit comments