From 91654f616f204fb8f205429867e4f5be1c47d20f Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Tue, 3 Sep 2024 17:22:10 +0300 Subject: [PATCH] block subfeeds - block subfeed filter chips if there was a blocking of podcasts on the main page --- js-helper/sectionBlock.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/js-helper/sectionBlock.js b/js-helper/sectionBlock.js index 59f5186..38383ff 100644 --- a/js-helper/sectionBlock.js +++ b/js-helper/sectionBlock.js @@ -1,5 +1,18 @@ function sectionBlock(e, type) { + +// block subfeeds + if (type === "podcast" || type === "all") { + const style = document.createElement("style"); + style.innerHTML = ` + .cj6vRk3nFAi80HSVqX91, + .zbU90jX5VWUhVlpUda7B { + display: none !important; + } + `; + document.body.appendChild(style); + } + const body = e?.data?.home; const sections = body?.sectionContainer?.sections?.items;