Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
- improvement of the banner blocking patch on the main page
- blocking banner on the podcast page

Co-Authored-By: jetfir3 <[email protected]>
  • Loading branch information
amd64fox and jetfir3 committed Oct 26, 2023
1 parent 8b20e11 commit 77ceb30
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 27 deletions.
32 changes: 16 additions & 16 deletions patches/patches.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -85,14 +77,6 @@
"svggit": "<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'><path d='M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z' fill='#fff'/></svg>",
"svgfaq": "<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'><path d='M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm1.25 17c0 .69-.559 1.25-1.25 1.25-.689 0-1.25-.56-1.25-1.25s.561-1.25 1.25-1.25c.691 0 1.25.56 1.25 1.25zm1.393-9.998c-.608-.616-1.515-.955-2.551-.955-2.18 0-3.59 1.55-3.59 3.95h2.011c0-1.486.829-2.013 1.538-2.013.634 0 1.307.421 1.364 1.226.062.847-.39 1.277-.962 1.821-1.412 1.343-1.438 1.993-1.432 3.468h2.005c-.013-.664.03-1.203.935-2.178.677-.73 1.519-1.638 1.536-3.022.011-.924-.284-1.719-.854-2.297z' fill='#fff'/></svg>"
},
"BannerHome": {
"version": {
"fr": "1.2.21",
"to": ""
},
"match": "[^=]*\\.vK\\)",
"replace": "false"
},
"ForcedExp": {
"version": {
"fr": "1.1.79",
Expand Down Expand Up @@ -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",
Expand Down
11 changes: 0 additions & 11 deletions run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 77ceb30

Please sign in to comment.