Fix YouTube Renderer

Fixes empty YT grid slots in renderer caused by adblockers

当前为 2024-02-05 提交的版本,查看 最新版本

// ==UserScript==
// @name         Fix YouTube Renderer
// @namespace    youtube.com
// @version      1.02
// @description  Fixes empty YT grid slots in renderer caused by adblockers
// @author       Zach Kosove
// @include      https://www.youtube.com/*
// @grant        GM_addStyle
// ==/UserScript==

GM_addStyle(`
/* Containers */
ytd-rich-grid-row.style-scope.ytd-rich-grid-renderer,
ytd-rich-grid-row.style-scope.ytd-rich-grid-renderer > #contents {
    display: contents !important;
}

/* Bloat Removal (Includes Empty Sections) */
ytd-rich-grid-renderer > #contents.ytd-rich-grid-renderer > *:not(ytd-rich-item-renderer.style-scope.ytd-rich-grid-row, ytd-rich-grid-row, ytd-continuation-item-renderer) {
    display: none !important;
}
`);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址