Skip to content

Commit 75d6fb2

Browse files
committed
Condensed update sub button routine ↞ [auto-sync from https://github.com/adamlui/youtube-classic]
1 parent e8a5f20 commit 75d6fb2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

youtube-classic/youtube-classic.user.js

Lines changed: 3 additions & 3 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.27.5
3+
// @version 2026.1.27.6
44
// @author Adam Lui, Magma_Craft, 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
@@ -1074,10 +1074,10 @@
10741074
dom.get.loadedElem('ytd-subscribe-button-renderer button').then(subBtn => {
10751075
requestAnimationFrame(updateSubBtnPos)
10761076
new MutationObserver(updateSubBtnPos).observe(subBtn, { childList: true, subtree: true })
1077-
window.addEventListener('resize', updateSubBtnPos)
1077+
addEventListener('resize', updateSubBtnPos)
10781078
})
10791079
function updateSubBtnPos() {
1080-
if (updateSubBtnPos.timeout) clearTimeout(updateSubBtnPos.timeout)
1080+
clearTimeout(updateSubBtnPos.timeout)
10811081
updateSubBtnPos.timeout = setTimeout(async () => {
10821082
const primaryDiv = await dom.get.loadedElem('div#primary'),
10831083
actionsDiv = await dom.get.loadedElem('div#actions'),

0 commit comments

Comments
 (0)