Skip to content

Commit 178ca98

Browse files
committed
YouTube JS Engine Tamer | Bug Fix
whitelist `ytd-unified-share-panel-renderer` for share popup positioning.
1 parent 557b5a1 commit 178ca98

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

473972.user.js

Lines changed: 5 additions & 4 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.8
4+
// @version 0.18.9
55
// @match https://www.youtube.com/*
66
// @match https://www.youtube-nocookie.com/embed/*
77
// @match https://studio.youtube.com/live_chat*
@@ -3927,7 +3927,9 @@
39273927
const stampIdxSb = Symbol();
39283928
// 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
39293929
// const byPassIs55 = new Set(['ytd-rich-grid-renderer', 'ytd-rich-shelf-renderer']);
3930-
const byPassIs55 = new Set(['ytd-rich-grid-renderer', 'ytd-rich-shelf-renderer']);
3930+
const byPassIs55 = new Set(['ytd-rich-grid-renderer', 'ytd-rich-shelf-renderer', 'ytd-unified-share-panel-renderer']);
3931+
// const byPassB55 = new Set(['continuations']);
3932+
const byPassB55 = new Set([]);
39313933
const createStampDomArrayFn_ = (fn) => {
39323934
if (val_kevlar_should_maintain_stable_list === null) {
39333935
const config_ = ((window.yt || 0).config_ || 0);
@@ -3953,12 +3955,11 @@
39533955
// !!c <=> typeof c should be always object
39543956

39553957
const constraintE = DO_createStampDomArrayFnE1_noConstraintE ? true : !shouldTriggerRendererStamperFinished;
3956-
if (!d && constraintE && h && a.length > 1 && !byPassIs55.has(this.is)) {
3958+
if (!d && constraintE && h && a.length > 1 && !byPassIs55.has(this.is) && !byPassB55.has(b)) {
39573959
// h (stamperStableList) = true
39583960
// d (reuseComponents) = false
39593961
// a.length > 1 to avoid chatroom display issue
39603962

3961-
39623963
const container = this.getStampContainer_(b);
39633964

39643965
if (container) {

0 commit comments

Comments
 (0)