Block Youtube Users

Hide videos of blacklisted users/channels and comments

< 脚本 Block Youtube Users 的反馈

提问 / 留言

§
发布于:2025-07-11

YouTube has updated the interface to sidebar of recommended videos and this invalidated the scripts. Nevertheless, main page is still working.

§
发布于:2025-07-11

Just replace these two blocks, i fix a few days ago new selectors.

const Where = {
renderer: `ytd-rich-item-renderer,
ytd-video-renderer,
ytd-channel-renderer,
ytd-playlist-renderer,
ytd-playlist-video-renderer,
ytd-playlist-panel-video-renderer,
ytd-movie-renderer,
.ytp-videowall-still.ytp-suggestion-set.ytp-videowall-still-round-medium,
ytd-compact-video-renderer,
ytd-compact-movie-renderer,
ytd-compact-radio-renderer,
ytd-compact-autoplay-renderer,
ytd-compact-playlist-renderer,
ytd-grid-video-renderer,
ytd-grid-playlist-renderer,
ytd-secondary-search-container-renderer,
yt-lockup-view-model
${Values.storageVideoOwner ? ', ytd-video-owner-renderer' : ''}
${Values.storageComment ? ', ytd-comment-view-model.ytd-comment-replies-renderer, ytd-comment-view-model.ytd-comment-thread-renderer' : ''}`,

and


user: `#metadata > :not([hidden]) #text.ytd-channel-name,
#channel-info #text.ytd-channel-name,
#channel-title.ytd-channel-renderer span.ytd-channel-renderer,
#info #text.ytd-channel-name,
#metadata #subscribers.ytd-channel-renderer,
#byline.ytd-playlist-panel-video-renderer,
yt-simple-endpoint[href^="/@"],
yt-formatted-string#text[title],
.yt-content-metadata-view-model-wiz__metadata-row span.yt-core-attributed-string a[href^="/@"],
.yt-content-metadata-view-model-wiz__metadata-row span.yt-core-attributed-string a[href^="/channel/"],
.yt-content-metadata-view-model-wiz__metadata-text:last-of-type
${Values.storageVideoOwner ? ', #owner #upload-info #channel-name #text.ytd-channel-name' : ''}
${Values.storageComment ? ', #author-text span.ytd-comment-view-model, #name #text.ytd-channel-name' : ''}`,

发布留言

登录(不可用)以发布留言。

长期地址
遇到问题?请前往 GitHub 提 Issues。