Skip to content

Commit cd26fbc

Browse files
committed
YouTube JS Engine Tamer | Fix
1 parent 9413c18 commit cd26fbc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

473972.user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name YouTube JS Engine Tamer
33
// @namespace UserScripts
4-
// @version 0.18.3
4+
// @version 0.18.4
55
// @match https://www.youtube.com/*
66
// @match https://www.youtube-nocookie.com/embed/*
77
// @match https://studio.youtube.com/live_chat*
@@ -3755,6 +3755,7 @@
37553755
// await new Promise(r=>setTimeout(r, 1000));
37563756

37573757

3758+
if (!hasElement && !!domShell.firstElementChild) return;
37583759
if (hostElement.isConnected === false || this.isAttached === false || !hostElement.contains(container) || container.__domApi !== domShell) {
37593760
return;
37603761
}
@@ -3776,6 +3777,7 @@
37763777
// console.log('createStampDomArrayFn_{T2}', t2-t1);
37773778
}).then(async () => {
37783779

3780+
if (!hasElement && !!domShell.firstElementChild) return;
37793781
if (hostElement.isConnected === false || this.isAttached === false || !hostElement.contains(container) || container.__domApi !== domShell) {
37803782
return;
37813783
}

0 commit comments

Comments
 (0)