mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-23 19:40:19 +10:00
block subfeeds
- block subfeed filter chips if there was a blocking of podcasts on the main page
This commit is contained in:
@@ -1,5 +1,18 @@
|
|||||||
function sectionBlock(e, type) {
|
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 body = e?.data?.home;
|
||||||
const sections = body?.sectionContainer?.sections?.items;
|
const sections = body?.sectionContainer?.sections?.items;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user