Skip to content

Commit

Permalink
chore: Add app BlockTheSpot extension for Spotify ad blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenway committed Aug 4, 2024
1 parent b540512 commit 82297b3
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions bucket/blockthespot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"version": "2024.7.22.109",
"description": "Video, audio & banner adblock/skip for Spotify",
"homepage": "https://github.com/mrpond/BlockTheSpot",
"license": "MIT license",
"url": "https://github.com/mrpond/BlockTheSpot/releases/download/2024.7.22.109/chrome_elf.zip",
"hash": "CE88E6217F34FBF2BE60A525C2E12A0837D38E95BB93DB1E1E759A20B3D629F2",
"pre_install": "",
"installer": {
"script": [
"if ($global) {",
" Write-Host \"$app cannot be installed globally.\" -Foreground Red",
" exit 1",
"}",
"$SearchPath = $env:AppData",
"$spotifyDir = Get-ChildItem -Path $SearchPath -Directory -Filter \"Spotify\"",
"Write-Host \"\"",
"Stop-Process -Name Spotify -ErrorAction SilentlyContinue",
"Stop-Process -Name SpotifyWebHelper -ErrorAction SilentlyContinue",
"if ($spotifyDir) {",
" Write-Host \"Spotify directory found: $spotifyDir\"",
" Write-Host \"\"",
" Write-Host \"Patching Spotify...\"",
" $patchFiles = (Join-Path -Path $dir -ChildPath 'dpapi.dll'), (Join-Path -Path $dir -ChildPath 'config.ini')",
" Copy-Item -LiteralPath $patchFiles -Destination \"$spotifyDir\" -Force",
" Remove-Item -LiteralPath (Join-Path -Path $spotifyDir -ChildPath 'blockthespot_settings.json') -Force -ErrorAction SilentlyContinue",
" Write-Host \"Spotify patched\"",
"}",
"else {",
"Write-Host \"Spotify directory not found\"",
"}",
" Write-Host \"\""
]
},
"uninstaller": {
"script": [
"if ($global) {",
" Write-Host \"$app cannot be installed globally.\" -Foreground Red",
" exit 1",
"}",
"$SearchPath = $env:AppData",
"$spotifyDir = Get-ChildItem -Path $SearchPath -Directory -Filter \"Spotify\"",
"Write-Host \"\"",
"Stop-Process -Name Spotify -ErrorAction SilentlyContinue",
"Stop-Process -Name SpotifyWebHelper -ErrorAction SilentlyContinue",
"if ($spotifyDir) {",
" Write-Host \"Spotify directory found: $spotifyDir\"",
" Write-Host \"\"",
" Write-Host \"Unpatching Spotify...\"",
" $patchFiles = (Join-Path -Path $dir -ChildPath 'dpapi.dll'), (Join-Path -Path $dir -ChildPath 'config.ini')",
" Remove-Item -LiteralPath (Join-Path -Path $spotifyDir -ChildPath 'dpapi.dll') -Force -ErrorAction SilentlyContinue",
" Remove-Item -LiteralPath (Join-Path -Path $spotifyDir -ChildPath 'blockthespot_settings.json') -Force -ErrorAction SilentlyContinue",
" Write-Host \"Spotify unpatched\"",
"}",
"else {",
" Write-Host \"Spotify directory not found\" -Foreground Red",
"}",
"Write-Host \"\""
]
},
"checkver": {
"github": "https://github.com/mrpond/BlockTheSpot"
},
"autoupdate": {
"url": "https://github.com/mrpond/BlockTheSpot/releases/download/$version/chrome_elf.zip"
}
}

0 comments on commit 82297b3

Please sign in to comment.