From 9108b4c82508233724675872e5203d4b727b4d26 Mon Sep 17 00:00:00 2001 From: jetfir3 <95306468+jetfir3@users.noreply.github.com> Date: Mon, 4 Dec 2023 14:44:09 -0500 Subject: [PATCH] Update - fix hide podcast - fix search history Co-authored-by: amd64fox <62529699+amd64fox@users.noreply.github.com> --- README.md | 2 +- spotx.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 841ccd3..7ba21d8 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ - Block all audio, banner & video ads - Block logging (Sentry, etc) - Enable [developer mode](https://github.com/SpotX-Official/SpotX-Bash/wiki/SpotX%E2%80%90Bash-FAQ#what-is-developer-mode) -- Enable [experimental features](https://github.com/SpotX-Official/SpotX/discussions/50) +- Enable experimental features - Hide audiobooks, episodes & podcasts on home screen - Remove [lyrics background color](https://github.com/SpotX-Official/SpotX-Bash/issues/20#issuecomment-1762040019) - Block automatic updates (macOS) diff --git a/spotx.sh b/spotx.sh index d9c543c..881aa32 100644 --- a/spotx.sh +++ b/spotx.sh @@ -269,7 +269,7 @@ hideDLMenu=' button.wC9sIed7pfp47wZbmU6m.pzkhLqffqF_4hucrVVQA {display:none}' hideVeryHigh=' #desktop\.settings\.streamingQuality>option:nth-child(5) {display:none}' hidePodcasts='s|withQueryParameters\(.\)\{return this.queryParameters=.,this}|withQueryParameters(e){return this.queryParameters=(e.types?{...e, types: e.types.split(",").filter(_ => !["episode","show"].includes(_)).join(",")}:e),this}|' -hidePodcasts2='s#(!?Array.isArray\(.\)[|&]{2}.===(.).length\)return null;)#$1 if (!Array.isArray($2)) { $2 = e; } for (let q=0; q<($2.children?$2.children.length:$2.length); q++) {const key=($2.children?.\[q\]||$2\[q\])?.key; if(!key||key.match(/(episode|show)/)||($2.title)?.match(/podcasts/i)) return null;};#' +hidePodcasts2='s#(!?Array.isArray\(.\)[|&]{2}.===(.).length\)return null;)#$1let sx=$2;if(!Array.isArray(sx)){sx=e;}for(let q=0;q<(sx.children?sx.children.length:sx.length);q++){const key=(sx.children?.\[q\]?.key||sx\[q\]?.key);if(!key||sx\[q\].props?.value==="search-history")continue;if(key.match(/(episode|show)/)||(sx.title)?.match(/podcasts/i))return null;};#' lyricsBackground='s|--lyrics-color-inactive":\K(.).inactive|$1.background|; s|--lyrics-color-background":\K(.).background|$1.inactive|; s|--lyrics-color-inactive":\K(.\.colors).text|$1.background|; s|--lyrics-color-background":\K(.\.colors).background|$1.text|' logV3='s|sp://logging/v3/\w+||g'