Skip to content

Commit 63ebfa2

Browse files
committed
Moved app.style to app.styles.fixes ↞ [auto-sync from https://github.com/adamlui/youtube-classic]
1 parent 2811796 commit 63ebfa2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

youtube-classic/youtube-classic.user.js

Lines changed: 4 additions & 4 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.10
3+
// @version 2026.1.20.11
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-
app.style = document.createElement('style')
574-
app.style.innerText = `
573+
app.styles = { fixes: document.createElement('style') }
574+
app.styles.fixes.innerText = `
575575
yt-thumbnail-view-model { border-radius: 0 !important } /* square homepage thumbs */
576576
577577
/* Revert old background color and buttons */
@@ -1115,7 +1115,7 @@
11151115
div#subscribe-button { position: absolute ; right: 0 } div#actions { padding-right: 125px } /* align right */
11161116
}
11171117
`
1118-
getLoadedElem('head').then(() => document.head.append(app.style))
1118+
getLoadedElem('head').then(() => document.head.append(app.styles.fixes))
11191119

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

0 commit comments

Comments
 (0)