Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/scripts/chat-interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,11 @@ if (!window.location.href.includes('/embed/ytcfilter_embed')) {
});

try {
const video = (window as any)
.parent.yt.config_.SBOX_SETTINGS.SEARCHBOX_COMPONENT.__dataHost.parentComponent
.__data.data.response.contents.twoColumnWatchNextResults.results.results.contents[0]
const video = (window as any).parent.ytInitialData.contents
.twoColumnWatchNextResults.results.results.contents[0]
.videoPrimaryInfoRenderer;
const channel = (window as any).parent.yt.config_.SBOX_SETTINGS.SEARCHBOX_COMPONENT.__dataHost
.parentComponent.__data.data.response.contents.twoColumnWatchNextResults.results.results
const channel = (window as any).parent.ytInitialData.contents
.twoColumnWatchNextResults.results.results
.contents[1].videoSecondaryInfoRenderer.owner.videoOwnerRenderer;
const params = new URLSearchParams(window.parent.location.search);
window.dispatchEvent(new CustomEvent('videoInfoYtcFilter', {
Expand Down
Loading