Skip to content

Commit 2308650

Browse files
committed
Replaced for loop w/ .forEach() one ↞ [auto-sync from https://github.com/adamlui/youtube-classic]
1 parent 070b61e commit 2308650

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

youtube-classic/youtube-classic.user.js

Lines changed: 2 additions & 2 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.4
3+
// @version 2026.1.17.5
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
@@ -445,7 +445,7 @@
445445
: 'https://i.imgur.com/rHLcxEs.png' // Light mode
446446
ytLogo.textContent = '' ; ytLogo.append(classicLogo)
447447
YTP.stop()
448-
for (let i = 0 ; i < ATTRS.length ; i++) document.getElementsByTagName('html')[0].removeAttribute(ATTRS[i])
448+
ATTRS.forEach(attr => document.getElementsByTagName('html')[0].removeAttribute(attr))
449449
unsafeWindow.removeEventListener('yt-page-date-updated', tmp)
450450
})
451451

0 commit comments

Comments
 (0)