Skip to content

Commit f82482c

Browse files
committed
Update
1 parent 2fd9259 commit f82482c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

disable-youtube-channel-intro.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// ==UserScript==
22
// @name Disable YouTube Channel Intro
33
// @icon https://external-content.duckduckgo.com/ip3/youtube.com.ico
4-
// @version 0.11
4+
// @version 0.12
55
// @downloadURL https://userscripts.codonaft.com/disable-youtube-channel-intro.user.js
6-
// @match https://www.youtube.com/@*
7-
// @match https://www.youtube.com/channel/*
6+
// @exclude https://www.youtube.com/watch?*
7+
// @match https://www.youtube.com/*
88
// ==/UserScript==
99

1010
(_ => {
@@ -57,7 +57,7 @@ subscribeOnChanges(document.body, 'div#c4-player video, button.ytp-play-button[d
5757
link.href = `https://www.youtube.com/watch?v=${videoId}`;
5858
link.appendChild(image);
5959

60-
div?.parentNode.replaceChild(link, div);
60+
div?.parentNode?.replaceChild(link, div);
6161
}
6262

6363
return false;

0 commit comments

Comments
 (0)