Skip to content

Commit 789fe29

Browse files
committed
YouTube JS Engine Tamer | Fix
1 parent cd26fbc commit 789fe29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

473972.user.js

Lines changed: 3 additions & 3 deletions
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.4
4+
// @version 0.18.5
55
// @match https://www.youtube.com/*
66
// @match https://www.youtube-nocookie.com/embed/*
77
// @match https://studio.youtube.com/live_chat*
@@ -3843,6 +3843,7 @@
38433843

38443844

38453845
const stampIdxSb = Symbol();
3846+
const byPassIs55 = new Set(['ytd-rich-grid-renderer', 'ytd-rich-item-renderer', 'ytd-rich-grid-media', 'ytd-rich-section-renderer', 'ytd-rich-shelf-renderer']); // some issues for the view model
38463847
const createStampDomArrayFn_ = (fn) => {
38473848
if (val_kevlar_should_maintain_stable_list === null) {
38483849
const config_ = ((window.yt || 0).config_ || 0);
@@ -3865,8 +3866,7 @@
38653866
if (DO_createStampDomArrayFnE1_ && typeof (this.is || 0) === 'string' && isNonEmptyArray && typeof (b || 0) === 'string' && typeof (c||0) === 'object'){
38663867
// !!c <=> typeof c should be always object
38673868
const constraintE = DO_createStampDomArrayFnE1_noConstraintE ? true : !shouldTriggerRendererStamperFinished;
3868-
3869-
if(!d && constraintE && h && a.length > 1) {
3869+
if(!d && constraintE && h && a.length > 1 && !byPassIs55.has(this.is)) {
38703870
// h (stamperStableList) = true
38713871
// d (reuseComponents) = false
38723872
// a.length > 1 to avoid chatroom display issue

0 commit comments

Comments
 (0)