Skip to content

Commit e65f696

Browse files
committed
Condensed refreshData() ↞ [auto-sync from https://github.com/adamlui/youtube-classic]
1 parent 04cc9c5 commit e65f696

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

youtube-classic/youtube-classic.user.js

Lines changed: 3 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.17.49
3+
// @version 2026.1.17.50
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
@@ -606,11 +606,9 @@
606606
}
607607
function refreshData(elem) {
608608
const clone = elem.cloneNode()
609-
clone.data = elem.data
610-
clone.data.fixedByCF = true
609+
clone.data = elem.data ; clone.data.fixedByCF = true
611610
for (const i in elem.properties) clone[i] = elem[i]
612-
elem.insertAdjacentElement('afterend', clone)
613-
elem.remove()
611+
elem.insertAdjacentElement('afterend', clone) ; elem.remove()
614612
}
615613
const commentObserver = new MutationObserver(mutations => mutations.forEach(async mutation => {
616614
if (mutation.addedNodes) for (const elem of mutation.addedNodes) if (elem.classList && !elem.data?.fixedByCF)

0 commit comments

Comments
 (0)