Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion adbreak/replace.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
@echo off

echo Attempting to overwrite ad files...
setlocal
for /r "." %%F in (details.html) do (
if exist "%%~fF" (
copy /y "%~dp0adbreak.html" "%%~fF" >nul
)
)
endlocal
endlocal

if %ERRORLEVEL% EQU 0 (
echo Adbreak injected correctly! Eject the device and tap on any ad.
) else (
echo Probably failed to inject Adbreak [%ERRORLEVEL%]
)

echo.
echo Press any key to exit...
pause >nul