From 77ceb3076088dde56cc44f85d79c0bb9a276c069 Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Thu, 26 Oct 2023 23:53:51 +0300 Subject: [PATCH] Update - improvement of the banner blocking patch on the main page - blocking banner on the podcast page Co-Authored-By: jetfir3 <95306468+jetfir3@users.noreply.github.com> --- patches/patches.json | 32 ++++++++++++++++---------------- run.ps1 | 11 ----------- 2 files changed, 16 insertions(+), 27 deletions(-) diff --git a/patches/patches.json b/patches/patches.json index 06284d66..48cbbad6 100644 --- a/patches/patches.json +++ b/patches/patches.json @@ -1,13 +1,5 @@ { "free": { - "bilboard": { - "version": { - "fr": "1.1.70", - "to": "1.2.20" - }, - "match": ".(\\?\\[.{1,6}[a-zA-Z].leaderboard,)", - "replace": "false$1" - }, "fullscreen": { "version": { "fr": "1.1.58", @@ -85,14 +77,6 @@ "svggit": "", "svgfaq": "" }, - "BannerHome": { - "version": { - "fr": "1.2.21", - "to": "" - }, - "match": "[^=]*\\.vK\\)", - "replace": "false" - }, "ForcedExp": { "version": { "fr": "1.1.79", @@ -1247,6 +1231,22 @@ "add": "ads:'0',catalogue:'premium',product:'premium',type:'premium',name:'Spotify'", "add2": "'storage-size-config':'{0},90,500,3'" }, + "podcast_page_banner": { + "version": { + "fr": "1.1.70", + "to": "" + }, + "match": "http[^\"'`]*?(?:podcast-ap4p|sponsoredplaylist)\/", + "replace": "" + }, + "banner_home": { + "version": { + "fr": "1.1.70", + "to": "" + }, + "match": "(isPremium:).(.{20,40}?isHptoHidden:).", + "replace": "$1true$2true" + }, "hidemerchsidebar": { "version": { "fr": "1.2.0", diff --git a/run.ps1 b/run.ps1 index 3eec8f62..e7701816 100644 --- a/run.ps1 +++ b/run.ps1 @@ -1156,13 +1156,6 @@ function Helper($paramname) { $contents = "podcast_ad_block" $json = $webjson.others } - "BannerHome" { - # Remove banner on home page - $name = "patches.json.others." - $n = "home-hpto.js" - $contents = "BannerHome" - $json = $webjson.others - } "BlockUpdate" { # Block Spotify client updates $name = "patches.json.others." @@ -1443,15 +1436,11 @@ If ($test_spa) { extract -counts 'one' -method 'zip' -name $js -helper 'OffAdSections' } - # Remove banner on home page - extract -counts 'one' -method 'zip' -name 'home-hpto.js' -helper 'BannerHome' - # Hide Collaborators icon if (!($hide_col_icon_off) -and !($exp_spotify)) { extract -counts 'one' -method 'zip' -name 'xpui-routes-playlist.js' -helper 'Collaborators' } - # Static color for lyrics if ($lyrics_stat) { # old