Skip to content

Commit

Permalink
Json added and necessary changes (#522)
Browse files Browse the repository at this point in the history
* Fixed parameter error for x64 architecture.

* code cleanup and a few edits

* libcef library added

* Json added and necessary changes

* Update README.md

* Update README.md

* some fixes in json code

* added "contains" function to json class

* Added Install-VcRedist function

* MemoryScanner updated and some changes in code

---------

Co-authored-by: Yolilad <Yolilad@>
  • Loading branch information
Yolilad authored Mar 29, 2024
1 parent 1992dee commit 7fa4885
Show file tree
Hide file tree
Showing 24 changed files with 2,454 additions and 1,050 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<h4 align="center">A multi-purpose adblocker and skip-bypass for the <strong>Spotify for Windows (64 bit)</strong> </h4>
<h5 align="center">Please support Spotify by purchasing premium</h5>
<p align="center">
<strong>Last updated:</strong> 14 February 2024<br>
<strong>Last tested version:</strong> Spotify for Windows (64 bit) 1.2.31.1205.g4d59ad7c
<strong>Last updated:</strong> 18 March 2024<br>
<strong>Last tested version:</strong> Spotify for Windows (64 bit) 1.2.33.1039.g8ddb5918
</p>
</center>

Expand Down Expand Up @@ -61,6 +61,17 @@ rm -fo $env:APPDATA\spotify\dpapi.dll
rm -fo $env:APPDATA\spotify\config.ini
```

### Disabling Automatic Updates

The automatic update feature is enabled by default. To disable it:

1. Navigate to the directory where Spotify is installed: `%APPDATA%\Spotify`.
2. Open the `config.ini` file.
3. Set `Enable_Auto_Update` to `0` under the `[Config]` section.
4. Save your changes and close the file.

Automatic updates will now be disabled. If you wish to update, you'll need to do so manually.

### Additional Notes:

* Installation script automatically detects if your Spotify client version is supported, or not. If the version is not supported, you will be prompted to update your Spotify client. To enforce client update, supply an optional parameter `UpdateSpotify` to the installation script.
Expand Down
96 changes: 96 additions & 0 deletions blockthespot_settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"Cef Offsets": {
"x64": {
"cef_request_t_get_url": 48,
"cef_zip_reader_t_get_file_name": 72,
"cef_zip_reader_t_read_file": 112
},
"x32": {
"cef_request_t_get_url": 24,
"cef_zip_reader_t_get_file_name": 36,
"cef_zip_reader_t_read_file": 56
}
},
"Developer": {
"x64": {
"Signature": "80 E3 01 48 8B 95 ?? ?? ?? ?? 48 83 FA 10",
"Value": "B3 01 90",
"Offset": 0,
"Address": 0
},
"x32": {
"Signature": "25 01 FF FF FF 89 ?? ?? ?? FF FF",
"Value": "B8 03 00",
"Offset": 0,
"Address": 0
}
},
"Zip Reader": {
"home-hpto.css": {
"hptocss": {
"Signature": ".WiPggcPDzbwGxoxwLWFf{display:-webkit-box;display:-ms-flexbox;display:flex;",
"Value": ".WiPggcPDzbwGxoxwLWFf{display:-webkit-box;display:-ms-flexbox;display:none;",
"Offset": 0,
"Fill": 0,
"Address": 0
}
},
"xpui.js": {
"adsEnabled": {
"Signature": "adsEnabled:!0",
"Value": "1",
"Offset": 12,
"Fill": 0,
"Address": 0
},
"ishptohidden": {
"Signature": "isHptoHidden:!0",
"Value": "1",
"Offset": 14,
"Fill": 0,
"Address": 0
},
"sponsorship": {
"Signature": ".set(\"allSponsorships\",t.sponsorships)}}(e,t);",
"Value": "\"",
"Offset": 5,
"Fill": 15,
"Address": 0
},
"skipsentry": {
"Signature": "sentry.io",
"Value": "localhost",
"Offset": 0,
"Fill": 0,
"Address": 0
},
"hptoEnabled": {
"Signature": "hptoEnabled:!0",
"Value": "1",
"Offset": 13,
"Fill": 0,
"Address": 0
},
"sp_localhost": {
"Signature": "sp://ads/v1/ads/",
"Value": "sp://localhost//",
"Offset": 0,
"Fill": 0,
"Address": 0
},
"premium_free": {
"Signature": "e.session?.productState?.catalogue?.toLowerCase()",
"Value": "\"\"",
"Offset": -1,
"Fill": 48,
"Address": 0
}
}
},
"Block List": [
"/ads/",
"/ad-logic/",
"/gabo-receiver-service/"
],
"Latest Release Date": ""
}
1 change: 1 addition & 0 deletions config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
Block_Ads=1
Block_Banner=1
Enable_Developer=1
Enable_Auto_Update=1
;Log system
Enable_Log=0
25 changes: 25 additions & 0 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,31 @@ $patchFiles = (Join-Path -Path $PWD -ChildPath 'dpapi.dll'), (Join-Path -Path $P

Copy-Item -LiteralPath $patchFiles -Destination "$spotifyDirectory"

function Install-VcRedist {
# https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
$vcRedistX86Url = "https://aka.ms/vs/17/release/vc_redist.x86.exe"
$vcRedistX64Url = "https://aka.ms/vs/17/release/vc_redist.x64.exe"

if ([Environment]::Is64BitOperatingSystem) {
if (!(Test-Path 'HKLM:\Software\Microsoft\VisualStudio\14.0\VC\Runtimes\x64')) {
$vcRedistX64File = Join-Path -Path $PWD -ChildPath 'vc_redist.x64.exe'
Write-Host "Downloading and installing vc_redist.x64.exe..."
Get-File -Uri $vcRedistX64Url -TargetFile $vcRedistX64File
Start-Process -FilePath $vcRedistX64File -ArgumentList "/install /quiet /norestart" -Wait
}
}
else {
if (!(Test-Path 'HKLM:\Software\Microsoft\VisualStudio\14.0\VC\Runtimes\x86')) {
$vcRedistX86File = Join-Path -Path $PWD -ChildPath 'vc_redist.x86.exe'
Write-Host "Downloading and installing vc_redist.x86.exe..."
Get-File -Uri $vcRedistX86Url -TargetFile $vcRedistX86File
Start-Process -FilePath $vcRedistX86File -ArgumentList "/install /quiet /norestart" -Wait
}
}
}

Install-VcRedist

$tempDirectory = $PWD
Pop-Location

Expand Down
Loading

0 comments on commit 7fa4885

Please sign in to comment.