|
1 | 1 | // ==UserScript== |
2 | 2 | // @name YouTube™ Classic 📺 — (Remove rounded design + Return YouTube dislikes) |
3 | | -// @version 2026.1.17.39 |
| 3 | +// @version 2026.1.17.40 |
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 |
|
1376 | 1376 | const colorDislikeStyle = extConfig.coloredBar ? `; background-color: ${getColorFromTheme(false)}` : '' |
1377 | 1377 | document.getElementById('menu-container').insertAdjacentHTML('beforeend', ` |
1378 | 1378 | <div class="ryd-tooltip" style="width: ${widthPx}px"> |
1379 | | - <div class="ryd-tooltip-bar-container"> |
1380 | | - <div |
1381 | | - id="return-youtube-dislike-bar-container" |
1382 | | - style="width: 100%; height: 2px;${colorDislikeStyle}" |
1383 | | - > |
1384 | | - <div |
1385 | | - id="return-youtube-dislike-bar" |
1386 | | - style="width: ${widthPercent}%; height: 100%${colorDislikeStyle}" |
1387 | | - ></div> |
| 1379 | + <div class="ryd-tooltip-bar-container"> |
| 1380 | + <div id="return-youtube-dislike-bar-container" |
| 1381 | + style="width: 100% ; height: 2px ; ${colorDislikeStyle}"> |
| 1382 | + <div id="return-youtube-dislike-bar" |
| 1383 | + style="width: ${widthPercent}%; height: 100%${colorDislikeStyle}"></div> |
| 1384 | + </div> |
1388 | 1385 | </div> |
1389 | | - </div> |
1390 | | - <tp-yt-paper-tooltip position="top" id="ryd-dislike-tooltip" class="style-scope ytd-sentiment-bar-renderer" role="tooltip" tabindex="-1"> |
1391 | | - <!--css-build:shady-->${tooltipInnerHTML} |
1392 | | - </tp-yt-paper-tooltip> |
| 1386 | + <tp-yt-paper-tooltip position="top" id="ryd-dislike-tooltip" |
| 1387 | + class="style-scope ytd-sentiment-bar-renderer" role="tooltip" tabindex="-1"> |
| 1388 | + <!--css-build:shady-->${tooltipInnerHTML} |
| 1389 | + </tp-yt-paper-tooltip> |
1393 | 1390 | </div> |
1394 | 1391 | `) |
1395 | 1392 | } else { |
|
0 commit comments