Skip to content

Commit 1591e03

Browse files
iostreamiostream
authored andcommitted
2 parents 0dc599e + 2646584 commit 1591e03

File tree

4 files changed

+61
-34
lines changed

4 files changed

+61
-34
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,21 @@ assignees: ''
1010
**Important**
1111
- Make sure you use [latest spotify](https://www.spotify.com) before reporting a bug.
1212
- Make sure you use the [latest blockthespot](https://www.github.com/mrpond/BlockTheSpot/releases) before reporting a bug.
13-
- Make sure if blockthespot DLL got replaced after spotify update (important).
13+
- Make sure if blockthespot DLL got replaced after Spotify update (important).
1414

1515

1616
**Describe the bug**
1717
A clear and concise description of what the bug is.
1818

19-
**Desktop (please complete the following information):**
19+
**Desktop:**
20+
<!--(please complete the following information)-->
2021
- OS: [e.g. Windows 10]
21-
- Spotify Version: [e.g. 1.1.27.472.gf6574b97]
22-
- BlockTheSpot Product Version: [right click chrome_elf.dll -> Details]
22+
- Spotify Version: [e.g. 1.1.47.684.g136419d9]
23+
- BlockTheSpot Product Version: [e.g. 0.51.0.0] <!--[right click chrome_elf.dll -> Details -> Product Version]-->
2324

2425
**Additional context**
2526
Add any other context about the problem here.
2627
If ad blocking is not working, please include a debug log by
2728
1. edit config.ini and set Log = 1
28-
2. after ads song play close spotify
29+
2. after ads song play close Spotify
2930
3. zip the main_log.txt, utility_log.txt

BlockTheSpot.bat

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Author: @rednek46
2222

2323
$SpotifyDirectory = "$env:APPDATA\Spotify"
2424
$SpotifyExecutable = "$SpotifyDirectory\Spotify.exe"
25+
$SpotifyApps = "$SpotifyDirectory\Apps"
2526

2627
Write-Host 'Stopping Spotify...'`n
2728
Stop-Process -Name Spotify
@@ -71,8 +72,21 @@ try {
7172
Write-Output $_
7273
Sleep
7374
}
75+
try {
76+
$webClient.DownloadFile(
77+
# Remote file URL
78+
'https://github.com/mrpond/BlockTheSpot/files/5767943/zlink.zip',
79+
# Local file path
80+
"$PWD\zlink.zip"
81+
)
82+
} catch {
83+
Write-Output $_
84+
Sleep
85+
}
7486
Expand-Archive -Force -LiteralPath "$PWD\chrome_elf.zip" -DestinationPath $PWD
7587
Remove-Item -LiteralPath "$PWD\chrome_elf.zip"
88+
Expand-Archive -Force -LiteralPath "$PWD\zlink.zip" -DestinationPath $PWD
89+
Remove-Item -LiteralPath "$PWD\zlink.zip"
7690

7791
$spotifyInstalled = (Test-Path -LiteralPath $SpotifyExecutable)
7892
if (-not $spotifyInstalled) {
@@ -110,8 +124,18 @@ if (!(test-path $SpotifyDirectory/chrome_elf.dll.bak)){
110124

111125
Write-Host 'Patching Spotify...'
112126
$patchFiles = "$PWD\chrome_elf.dll", "$PWD\config.ini"
127+
$remup = "$PWD\zlink.spa"
113128
Copy-Item -LiteralPath $patchFiles -Destination "$SpotifyDirectory"
114129

130+
$ch = Read-Host -Prompt "Optional - Remove Upgrade Button. (Y/N) "
131+
if ($ch -eq 'y'){
132+
move $SpotifyApps\zlink.spa $SpotifyApps\zlink.spa.bak >$null 2>&1
133+
Copy-Item -LiteralPath $remup -Destination "$SpotifyApps"
134+
} else{
135+
Write-Host @'
136+
Won't remove Upgrade Button.
137+
'@`n
138+
}
115139
$tempDirectory = $PWD
116140
Pop-Location
117141

README.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
[![Build status](https://ci.appveyor.com/api/projects/status/31l6ynm0a1fhr2vs/branch/master?svg=true)](https://ci.appveyor.com/project/mrpond/blockthespot/branch/master)
22

33
<center>
4-
<h3 align="center"><a href=https://en.wikipedia.org/wiki/2020_Thai_protests>Support 2020 Thai protest</a></h3>
5-
<h3 align="center">help me stop dictatorship!</h3>
6-
<h3 align="center"><a href="https://twitter.com/search?q=%23whatishappeninginthailand">#whatishappeninginthailand</a></h3>
7-
<h3 align="center"><a href="https://twitter.com/search?q=%23whatshappeninginindonesia">#whatshappeninginindonesia</a></h3>
8-
<h3 align="center"><a href="https://twitter.com/search?q=%23WhatIsHappeningInPhilippines">#WhatIsHappeningInPhilippines</a></h3>
4+
<h3 align="center"><a href=https://en.wikipedia.org/wiki/2020_Thai_protests>Support the 2020 Thai protests</a></h3>
5+
<h3 align="center">Help me stop the dictatorship!</h3>
6+
<h3 align="center"><a href="https://twitter.com/search?q=%23whatishappeninginthailand">#WhatIsHappeningInThailand</a></h3>
7+
<h3 align="center"><a href="https://twitter.com/search?q=%23whatshappeninginindonesia">#WhatsHappeninginIndonesia</a></h3>
8+
<h3 align="center"><a href="https://twitter.com/search?q=%23whatshappeninginphilippines">#WhatsHappeningInPhilippines</a></h3>
99
<h3 align="center">Southeast Asia strong together!</h3>
1010
</center>
1111

1212
<center>
1313
<h1 align="center">BlockTheSpot</h1>
14-
<h4 align="center">A multi-purpose adblocker and skip bypass for the <strong>Windows</strong> Spotify Desktop Application.</h4>
14+
<h4 align="center">A multi-purpose adblocker and skip-bypass for the <strong>Windows</strong> Spotify desktop application.</h4>
1515
<h5 align="center">Please support Spotify by purchasing premium</h5>
1616
<p align="center">
17-
<strong>Last updated:</strong> 30 September 2020<br>
18-
<strong>Last tested version:</strong> 1.1.44.538.g8057de92
17+
<strong>Last updated:</strong> 10 December 2020<br>
18+
<strong>Last tested version:</strong> 1.1.48.625.g1c87c7f7
1919
</p>
2020
</center>
2121

22-
#### IMPORTANT FOR LIVING IN 2020 AND SO ON:
23-
0. Windows update, Spotify/Other Software update, BlockTheSpot update
24-
1. Goto "windows security" -> "Virus & Threat protection"
25-
2. Click "Allowed threats" -> Remove all allowed threats
22+
#### Important checks prior to install:
23+
0. Update Windows, Update Spotify/other software, update BlockTheSpot
24+
1. Goto "Windows Security" -> "Virus & Threat Protection"
25+
2. Click "Allowed threats" -> "Remove all allowed threats"
2626

2727
### Features:
2828
* Blocks all banner/video/audio ads within the app
@@ -32,27 +32,27 @@
3232
:warning: This mod is for the [**Desktop Application**](https://www.spotify.com/download/windows/) of Spotify on Windows, **not the Microsoft Store version**.
3333

3434
#### Installation/Update:
35-
* Just run BlockTheSpot.bat
35+
* Just download and run [BlockTheSpot.bat](https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/mrpond/BlockTheSpot/blob/master/BlockTheSpot.bat)
3636
or
37-
1. Browse to Spotify installation folder `%APPDATA%\Spotify`
38-
2. Download chrome_elf.zip from [releases](https://github.com/mrpond/BlockTheSpot/releases)
39-
3. Replace chrome_elf.dll, config.ini from chrome_elf.zip to that folder.
37+
1. Browse to your Spotify installation folder `%APPDATA%\Spotify`
38+
2. Download `chrome_elf.zip` from [releases](https://github.com/mrpond/BlockTheSpot/releases)
39+
3. Unzip and replace `chrome_elf.dll` and `config.ini`
4040

4141
#### Uninstall:
4242
* Just run uninstall.bat
4343
or
44-
* reinstall spotify
44+
* Reinstall Spotify
4545

4646
#### Note:
47-
* "chrome_elf.dll" gets replaced by Spotify Installer each time it updates, make sure to replace it again.
48-
* Ads banner maybe appear if you network use 'Web Proxy Auto-Discovery Protocol'
49-
https://en.wikipedia.org/wiki/Web_Proxy_Auto-Discovery_Protocol
50-
set Skip_wpad in config.ini to 1 may help.
51-
* For spotify premium user, set Block_BannerOnly = 1 this will block only banner at home.
52-
* if automatic install/uninstall .bat not working please contact (https://github.com/rednek46)
53-
54-
#### Note2:
55-
<center>
56-
<b>ki</b>ng<b>ller<b/>
57-
<img src="JUNTA.jpg">
58-
</center>
47+
* "chrome_elf.dll" gets replaced by the Spotify installer each time it updates, make sure to replace it after an update
48+
* The ad banner may appear if your network uses [Web Proxy Auto-Discovery Protocol](https://en.wikipedia.org/wiki/Web_Proxy_Auto-Discovery_Protocol)
49+
* Setting `Skip_wpad = 1` in config.ini may help
50+
* For Spotify Premium users, setting `Block_BannerOnly = 1` will only block the banner at home
51+
* If the automatic install/uninstall scripts do not work, please contact [rednek46](https://github.com/rednek46)
52+
53+
#### Update on protests:
54+
55+
<p align="center"><b>ki</b>ng<b>ller<b/></p>
56+
<p align="center">
57+
<img src="JUNTA.jpg" width="600">
58+
</p>

uninstall.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ echo Author: @rednek46
44
echo *****************
55
echo Removing Patch
66
del /s /q "%APPDATA%\Spotify\chrome_elf.dll" > NUL 2>&1
7+
del /s /q "%APPDATA%\Spotify\Apps\zlink.spa" > NUL 2>&1
78
move "%APPDATA%\Spotify\chrome_elf.dll.bak" "%APPDATA%\Spotify\chrome_elf.dll" > NUL 2>&1
9+
move "%APPDATA%\Spotify\Apps\zlink.spa.bak" "%APPDATA%\Spotify\Apps\zlink.spa" > NUL 2>&1
810
pause

0 commit comments

Comments
 (0)