Skip to content

Commit

Permalink
YouTube JS Engine Tamer | Bug Fix
Browse files Browse the repository at this point in the history
whitelist `ytd-unified-share-panel-renderer` for share popup positioning.
  • Loading branch information
cyfung1031 committed Feb 11, 2025
1 parent 557b5a1 commit 178ca98
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions 473972.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name YouTube JS Engine Tamer
// @namespace UserScripts
// @version 0.18.8
// @version 0.18.9
// @match https://www.youtube.com/*
// @match https://www.youtube-nocookie.com/embed/*
// @match https://studio.youtube.com/live_chat*
Expand Down Expand Up @@ -3927,7 +3927,9 @@
const stampIdxSb = Symbol();
// 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
// const byPassIs55 = new Set(['ytd-rich-grid-renderer', 'ytd-rich-shelf-renderer']);
const byPassIs55 = new Set(['ytd-rich-grid-renderer', 'ytd-rich-shelf-renderer']);
const byPassIs55 = new Set(['ytd-rich-grid-renderer', 'ytd-rich-shelf-renderer', 'ytd-unified-share-panel-renderer']);
// const byPassB55 = new Set(['continuations']);
const byPassB55 = new Set([]);
const createStampDomArrayFn_ = (fn) => {
if (val_kevlar_should_maintain_stable_list === null) {
const config_ = ((window.yt || 0).config_ || 0);
Expand All @@ -3953,12 +3955,11 @@
// !!c <=> typeof c should be always object

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


const container = this.getStampContainer_(b);

if (container) {
Expand Down

0 comments on commit 178ca98

Please sign in to comment.