Skip to content

Commit 95f7931

Browse files
committed
Killed pointless setInitialState() wrapper ↞ [auto-sync from https://github.com/adamlui/youtube-classic]
1 parent 76da54c commit 95f7931

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

youtube-classic/youtube-classic.user.js

Lines changed: 2 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.17.47
3+
// @version 2026.1.17.48
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
@@ -1470,8 +1470,6 @@
14701470
}
14711471
}
14721472

1473-
function setInitialState() { setState() }
1474-
14751473
function getVideoID() {
14761474
const urlObj = new URL(unsafeWindow.location.href), pathname = urlObj.pathname
14771475
return pathname.startsWith('/clip') ? document.querySelector('meta[itemprop="videoId"]')?.content
@@ -1560,7 +1558,7 @@
15601558
} catch (err) { return }
15611559
unsafeWindow.returnDislikeButtonlistenersSet = true
15621560
}
1563-
setInitialState()
1561+
setState()
15641562
clearInterval(jsInitChecktimer)
15651563
}
15661564
}

0 commit comments

Comments
 (0)