Skip to content

Commit 2811796

Browse files
committed
Moved fixesStyle to app.style ↞ [auto-sync from https://github.com/adamlui/youtube-classic]
1 parent 681017a commit 2811796

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

youtube-classic/youtube-classic.user.js

Lines changed: 4 additions & 5 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.9
3+
// @version 2026.1.20.10
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
@@ -570,8 +570,8 @@
570570
commentObserver.observe(document.querySelector('ytd-app'), { childList: true, subtree: true }))
571571

572572
// CSS adjustments and UI fixes
573-
const fixesStyle = document.createElement('style')
574-
fixesStyle.innerText = `
573+
app.style = document.createElement('style')
574+
app.style.innerText = `
575575
yt-thumbnail-view-model { border-radius: 0 !important } /* square homepage thumbs */
576576
577577
/* Revert old background color and buttons */
@@ -1115,8 +1115,7 @@
11151115
div#subscribe-button { position: absolute ; right: 0 } div#actions { padding-right: 125px } /* align right */
11161116
}
11171117
`
1118-
1119-
getLoadedElem('head').then(() => document.head.append(fixesStyle))
1118+
getLoadedElem('head').then(() => document.head.append(app.style))
11201119

11211120
Object.defineProperties(document, {
11221121
'hidden': {value: false}, 'webkitHidden': {value: false}, 'visibilityState': {value: 'visible'},

0 commit comments

Comments
 (0)