-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathBatlez Tweaks.bat
More file actions
8029 lines (7225 loc) · 448 KB
/
Batlez Tweaks.bat
File metadata and controls
8029 lines (7225 loc) · 448 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@echo off
set version=2.0
title Batlez Tweaks - %version%
net session >nul 2>&1
if %errorlevel% neq 0 (
echo [WARNING]: Not running with Administrator privileges.
echo Some tweaks will fail or only partially apply.
echo.
choice /C CP /M "Press C to Cancel or P to Proceed without admin"
if errorlevel 2 goto HELLYEAAAAAAAA
if errorlevel 1 goto Destruct
)
goto continuewooooooooo
:HELLYEAAAAAAAA
cls
echo Proceeding WITHOUT admin privileges. Expect limited results.
timeout /t 3 >nul /nobreak
goto continuewooooooooo
:continuewooooooooo
reg add HKCU\Console /v VirtualTerminalLevel /t REG_DWORD /d 1 /f >nul 2>&1
powershell "Set-ExecutionPolicy Unrestricted" >nul 2>&1
setlocal enabledelayedexpansion
:variables
set "u=[0m"
set "underline=[04m"
set "bold=[1m"
set "white=[97m"
set "grey=[90m"
set "charcoal=[38;5;240m"
set "silver=[38;5;250m"
set "red=[91m"
set "crimson=[38;5;160m"
set "pink=[95m"
set "hotpink=[38;5;213m"
set "purple=[35m"
set "violet=[38;5;141m"
set "orchid=[38;5;170m"
set "indigo=[38;5;54m"
set "blue=[94m"
set "cyan=[96m"
set "aqua=[38;5;51m"
set "teal=[38;5;30m"
set "green=[92m"
set "lime=[38;5;154m"
set "mint=[38;5;121m"
set "olive=[38;5;58m"
set "yellow=[38;5;226m"
set "gold=[38;5;220m"
set "orange=[38;5;214m"
set "peach=[38;5;216m"
set "tan=[38;5;180m"
set "brown=[38;5;130m"
SET webhook=
:loading
cls
call :SetupConsole
echo.
echo.
echo %lime% Developed by%u% %violet%Batlez%u%
echo %lime% I%u% %underline%%red%cannot%u%%lime% guarantee an FPS increase. Use these optimizations at your own risk.%u%
echo %lime%This is intended for a Clean and Stock Windows install.%u%
echo %lime%Please type%u% %white%I agree%u% %lime%to proceed%u%
echo.
echo.
set "userInput="
set /p "userInput=Type your response: "
if /I "%userInput%"=="I agree" (
goto :legit
) else (
goto :epicmanfail
)
:epicmanfail
cls
call :SetupConsole
echo.
echo.
echo %u%[%red%-%u%] %red%Failed!
echo.
echo %u%Developed by: %red%Batlez
echo %u%Github: %red%https://github.com/Batlez
echo.
echo.
timeout /t 3 >nul /nobreak & exit
:legit
cls
call :SetupConsole
echo.
echo.
echo %u%[%green%+%u%] %green%Successful!
echo.
echo %u%Developed by: %green%Batlez
echo %u%Github: %green%https://github.com/Batlez
echo.
echo.
timeout /t 3 >nul /nobreak & cls & goto RestorePointQuestion
:RestorePointQuestion
call :SetupConsole
echo %orange%Before we continue, would you like to make a Restore Point?%u% (Y/N)
echo.
echo.
set /p "input=Type your response: "
if /I "%input%"=="Y" goto restorepoint10
if /I "%input%"=="y" goto restorepoint10
if /I "%input%"=="N" goto Presets
if /I "%input%"=="n" goto Presets
echo %orange%Please enter a valid option!%u%
timeout /t 3 >nul
goto RestorePointQuestion
:: Credits to tarekifla
:restorepoint10
cls
echo %red%Backing up the registry...%u%
set "BACKUP_DIR=C:\TweaksBackup_%DATE:~-4,4%%DATE:~-10,2%%DATE:~-7,2%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%"
set "BACKUP_DIR=%BACKUP_DIR: =0%"
if not exist "%BACKUP_DIR%" (
mkdir "%BACKUP_DIR%" 2>nul
if errorlevel 1 (
echo %orange%Error: Failed to create backup directory. Please run as administrator.%u%
pause
goto Presets
)
)
cd /d "%BACKUP_DIR%"
echo Backing up registry hives...
echo - SOFTWARE hive...
REG SAVE HKLM\SOFTWARE SOFTWARE 2>nul
if errorlevel 1 echo %orange%Warning: Failed to backup SOFTWARE hive%u%
echo - SYSTEM hive...
REG SAVE HKLM\SYSTEM SYSTEM 2>nul
if errorlevel 1 echo %orange%Warning: Failed to backup SYSTEM hive%u%
echo - DEFAULT hive...
REG SAVE HKU\.DEFAULT DEFAULT 2>nul
if errorlevel 1 echo %orange%Warning: Failed to backup DEFAULT hive%u%
echo - SECURITY hive...
REG SAVE HKLM\SECURITY SECURITY 2>nul
if errorlevel 1 echo %orange%Warning: Failed to backup SECURITY hive%u%
echo - SAM hive...
REG SAVE HKLM\SAM SAM 2>nul
if errorlevel 1 echo %orange%Warning: Failed to backup SAM hive%u%
echo.
echo %c%Registry backup completed at "%BACKUP_DIR%"%u%
timeout /t 4 >nul
:restorepoint20
echo.
echo Configuring System Restore services...
echo - Configuring Volume Shadow Copy Service...
sc config VSS start= demand >nul 2>&1
net start VSS >nul 2>&1
echo - Configuring Software Shadow Copy Provider...
sc config swprv start= demand >nul 2>&1
net start swprv >nul 2>&1
echo - Configuring Task Scheduler...
sc config Schedule start= auto >nul 2>&1
net start Schedule >nul 2>&1
echo - Enabling System Restore...
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v DisableSR /t REG_DWORD /d 0 /f >nul 2>&1
chcp 437 >nul
powershell.exe -Command "Enable-ComputerRestore -Drive 'C:\'" >nul 2>&1
chcp 65001 >nul
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v "SystemRestorePointCreationFrequency" /t REG_DWORD /d "0" /f >nul 2>&1
echo.
echo Creating restore point...
chcp 437 >nul
powershell.exe -ExecutionPolicy Bypass -Command "Checkpoint-Computer -Description 'PreTweaksBackup' -RestorePointType MODIFY_SETTINGS" >nul 2>&1
chcp 65001 >nul
set SR_STATUS=%ERRORLEVEL%
if %SR_STATUS%==0 (
echo %cyan%System Restore point created successfully!%u%
) else (
echo %orange%Failed to create restore point. System Protection may not be enabled on C: drive.%u%
)
echo.
set /p "deleteOld=Do you want to remove old Restore Points? (Y/N): "
if /I "%deleteOld%"=="Y" (
echo Removing old system restore points...
vssadmin delete shadows /for=C: /oldest >nul 2>&1
if %errorlevel%==0 (
echo %cyan%Old restore points removed successfully!%u%
) else (
echo %orange%Failed to remove old restore points. May require elevated privileges.%u%
)
) else if /I "%deleteOld%"=="N" (
echo Old restore points preserved.
) else (
echo Invalid input. Skipping restore point cleanup.
)
echo.
echo Stopping temporary services...
net stop VSS >nul 2>&1
net stop swprv >nul 2>&1
echo.
echo %cyan%Backup and restore point creation completed!%u%
echo Next: Choosing your color preferences...
timeout /t 4 >nul
call :SetupConsole
goto Presets
:Presets
net stop VSS >nul 2>&1
net stop swprv >nul 2>&1
cls
chcp 437 >nul
chcp 65001 >nul
echo %white%Type one of the colours you want to use from below!%u%
echo.
echo.
echo %aqua%Aqua%u%, %teal%Teal%u%, %cyan%Cyan%u%, %blue%Blue%u%, %indigo%Indigo%u%, %lime%Lime%u%, %green%Green%u%, %mint%Mint%u%, %olive%Olive%u%, %yellow%Yellow%u%, %gold%Gold%u%, %orange%Orange%u%, %peach%Peach%u%, %tan%Tan%u%
echo.
echo %crimson%Crimson%u%, %red%Red%u%, %hotpink%Hot Pink%u%, %pink%Pink%u%, %purple%Purple%u%, %violet%Violet%u%, %orchid%Orchid%u%, %silver%Silver%u%, %grey%Grey%u%, %charcoal%Charcoal%u%, %brown%Brown%u% or %white%White%u%
echo.
echo.
set "preset="
set /p "preset=%white%Choose an option »%u% "
if not defined preset (
echo %red%No input given. Please type a colour.%u%
timeout /t 2 >nul
goto Presets
)
for /f "tokens=* delims= " %%A in ("%preset%") do set "preset=%%A"
if /i "%preset%"=="Aqua" set "c=%aqua%" & goto menu
if /i "%preset%"=="Teal" set "c=%teal%" & goto menu
if /i "%preset%"=="Cyan" set "c=%cyan%" & goto menu
if /i "%preset%"=="Blue" set "c=%blue%" & goto menu
if /i "%preset%"=="Indigo" set "c=%indigo%" & goto menu
if /i "%preset%"=="Lime" set "c=%lime%" & goto menu
if /i "%preset%"=="Green" set "c=%green%" & goto menu
if /i "%preset%"=="Mint" set "c=%mint%" & goto menu
if /i "%preset%"=="Olive" set "c=%olive%" & goto menu
if /i "%preset%"=="Yellow" set "c=%yellow%" & goto menu
if /i "%preset%"=="Gold" set "c=%gold%" & goto menu
if /i "%preset%"=="Orange" set "c=%orange%" & goto menu
if /i "%preset%"=="Peach" set "c=%peach%" & goto menu
if /i "%preset%"=="Tan" set "c=%tan%" & goto menu
if /i "%preset%"=="Brown" set "c=%brown%" & goto menu
if /i "%preset%"=="Crimson" set "c=%crimson%" & goto menu
if /i "%preset%"=="Red" set "c=%red%" & goto menu
if /i "%preset%"=="Hot Pink" set "c=%hotpink%" & goto menu
if /i "%preset%"=="Pink" set "c=%pink%" & goto menu
if /i "%preset%"=="Purple" set "c=%purple%" & goto menu
if /i "%preset%"=="Violet" set "c=%violet%" & goto menu
if /i "%preset%"=="Orchid" set "c=%orchid%" & goto menu
if /i "%preset%"=="Silver" set "c=%silver%" & goto menu
if /i "%preset%"=="Grey" set "c=%grey%" & goto menu
if /i "%preset%"=="Charcoal" set "c=%charcoal%" & goto menu
if /i "%preset%"=="White" set "c=%white%" & goto menu
echo %red%Invalid option. Please try again.%u%
timeout /t 1 >nul
goto Presets
:SetupConsole
chcp 437 >nul
chcp 65001 >nul
cls
goto :eof
:DisplayBanner
for /f "tokens=2 delims==" %%A in ('wmic cpu get name /value ^| find /I "Name"') do set "CPUName=%%A"
set "GPUName="
for /f "skip=1 delims=" %%G in ('wmic path win32_VideoController get Name') do (
if not "%%G"=="" (
set "GPUName=%%G"
goto :GotGPU
)
)
:GotGPU
echo.
echo %c%██████╗ █████╗ ████████╗██╗ ███████╗███████╗ %u%%white%████████╗ ██╗ ██╗███████╗ █████╗ ██╗ ██╗ ██████╗
echo %c%██╔══██╗██╔══██╗╚══██╔══╝██║ ██╔════╝╚════██║ %u%%white%╚══██╔══╝ ██║ ██╗ ██║██╔════╝██╔══██╗██║ ██╔╝██╔════╝
echo %c%██████╦╝███████║ ██║ ██║ █████╗ ███╔═╝ %u%%white% ██║ ╚██╗████╗██╔╝█████╗ ███████║█████═╝ ╚█████╗
echo %c%██╔══██╗██╔══██║ ██║ ██║ ██╔══╝ ██╔══╝ %u%%white% ██║ ████╔═████║ ██╔══╝ ██╔══██║██╔═██╗ ╚═══██╗
echo %c%██████╦╝██║ ██║ ██║ ███████╗███████╗███████╗ %u%%white% ██║ ╚██╔╝ ╚██╔╝ ███████╗██║ ██║██║ ╚██╗██████╔╝
echo %c%╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝ %u%%white% ╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝
echo.
echo.
echo %c%Version:%u% %white%%version%%u% %c%User:%u%%white% %username%%u% %c%Date:%u%%white% %date%%u%
echo.
echo.
echo %c%GPU:%u%%white% %GPUName% %u% %c%CPU:%u%%white% %CPUName%%u%
echo.
echo.
echo %c%Batlez%u%%white% Tweaks%u%%c% is a batch script that optimizes your system%u%
echo %c%to provide the best gaming experience possible%u%
goto :eof
:menu
cls
call :SetupConsole
call :DisplayBanner
echo.
echo.
echo [%c%1%u%] Optimizations [%c%2%u%] Hardware [%c%3%u%] Windows
echo.
echo [%c%4%u%] Privacy [%c%5%u%] Backup [%c%6%u%] Advanced
echo.
echo [%c%7%u%] Info
echo.
echo.
echo %c%[ X to close ]%u%
echo.
set /p M="%c%Choose an option »%u% "
set choice=%errorlevel%
if %M%==1 goto TweaksMenu
if %M%==2 goto HardwareMenu
if %M%==3 goto WindowsMenu
if %M%==4 goto PrivacyMenu
if %M%==5 goto Backup
if %M%==6 goto AdvancedMenu
if %M%==7 goto More
if %M%==X goto Destruct
if %M%==x goto Destruct
echo %red%Invalid option. Please try again.%u%
goto menu
:Comingsoon
cls
call :SetupConsole
echo.
echo %c% ██████╗ █████╗ ████████╗██╗ ███████╗███████╗ ████████╗ ██╗ ██╗███████╗ █████╗ ██╗ ██╗ ██████╗
echo ██╔══██╗██╔══██╗╚══██╔══╝██║ ██╔════╝╚════██║ ╚══██╔══╝ ██║ ██╗ ██║██╔════╝██╔══██╗██║ ██╔╝██╔════╝
echo ██████╦╝███████║ ██║ ██║ █████╗ ███╔═╝ ██║ ╚██╗████╗██╔╝█████╗ ███████║█████═╝ ╚█████╗ %u%
echo ██╔══██╗██╔══██║ ██║ ██║ ██╔══╝ ██╔══╝ ██║ ████╔═████║ ██╔══╝ ██╔══██║██╔═██╗ ╚═══██╗
echo ██████╦╝██║ ██║ ██║ ███████╗███████╗███████╗ ██║ ╚██╔╝ ╚██╔╝ ███████╗██║ ██║██║ ╚██╗██████╔╝
echo ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝
echo.
echo.
echo.
echo %c%Batlez is a tweaking script that optimizes your system%u%
echo %c%to provide the best gaming experience possible.%u%
echo.
echo.
echo.
echo.
echo %c%This feature has not been finished yet but will be coming out soon.%u%
echo.
echo.
echo.
echo.
echo %red%[ Press any key to go back ]
pause >nul
goto menu
:More
cls
call :SetupConsole
call :DisplayBanner
echo.
echo.
echo [%c%1%u%] About [%c%2%u%] Disclaimer
echo.
echo [%c%3%u%] Credits [%c%4%u%] Updates
echo.
echo [%c%5%u%] Back
echo.
echo.
echo %c%[ X to close ]%u%
echo.
set /p M="%c%Choose an option »%u% "
set choice=%errorlevel%
if %M%==1 goto about
if %M%==2 goto disclaimer
if %M%==3 goto credits
if %M%==4 goto changelog
if %M%==5 goto menu
if %M%==X goto Destruct
if %M%==x goto Destruct
echo %red%Invalid selection. Please try again.%u%
pause >nul
goto More
:about
cls
call :SetupConsole
echo.
echo.
echo %c%╔══════════════════════════════════════════════════════════════════════════════╗
echo ║ ABOUT ║
echo ╚══════════════════════════════════════════════════════════════════════════════╝%u%
echo.
echo.
echo %green%▌ Creator:%u% %c%Batlez%u%
echo %green%▌ Purpose:%u% %c%Improve System Performance%u%
echo %green%▌ Version:%u% %c%%version% %u%
echo.
echo.
echo %c%Batlez Tweaks represents years of research and development in system%u%
echo %c%optimization techniques. This comprehensive toolkit provides carefully%u%
echo %c%curated tweaks and modifications designed to enhance your computing%u%
echo %c%experience while maintaining system stability and reliability.%u%
echo.
echo.
echo %c%══════════════════════════ PRESS ANY KEY TO CONTINUE ══════════════════════════%u%
pause >nul
goto More
:disclaimer
cls
call :SetupConsole
echo.
echo.
echo %c%╔══════════════════════════════════════════════════════════════════════════════╗
echo ║ IMPORTANT NOTICE ║
echo ╚══════════════════════════════════════════════════════════════════════════════╝%u%
echo.
echo.
echo %c%Batlez Tweaks is a professional optimization suite designed to enhance%u%
echo %c%system performance through proven methodologies and safe modifications.%u%
echo.
echo %lime% Performance Results:%u% %c%While these optimizations are scientifically%u%
echo %c% sound, individual results may vary based on hardware configuration,%u%
echo %c% software environment, and system specifications.%u%
echo.
echo %lime% User Responsibility:%u% %c%All modifications are applied at your own%u%
echo %c% discretion and risk. The developer assumes no liability for%u%
echo %c% system changes or potential issues arising from improper usage.%u%
echo.
echo %lime% Best Practices:%u%
echo %c% • Create a system restore point before applying tweaks%u%
echo %c% • Read all descriptions carefully before proceeding%u%
echo %c% • Contact me if uncertain about any modifications%u%
echo.
echo %lime% Support:%u% %c%For technical assistance, reach out via%u% %lime%Discord: Croakq%u%
echo.
echo %c%══════════════════════════ PRESS ANY KEY TO CONTINUE ══════════════════════════%u%
pause >nul
goto More
:credits
cls
call :SetupConsole
echo.
echo.
echo %c%╔══════════════════════════════════════════════════════════════════════════════╗
echo ║ ACKNOWLEDGMENTS ║
echo ╚══════════════════════════════════════════════════════════════════════════════╝%u%
echo.
echo.
echo %c%This project stands on the shoulders of giants. Detailed attribution%u%
echo %c%and comprehensive credits for all contributors, researchers, and%u%
echo %c%community members can be found in the documentation file:%u%
echo.
echo %yellow%Location:%u% %c%Batlez Folder\Batlez Tweaks\Important - Read First.txt%u%
echo.
echo %c%Special thanks to the optimization community for their continued%u%
echo %c%research and dedication to improving system performance.%u%
echo.
echo.
echo %c%══════════════════════════ PRESS ANY KEY TO CONTINUE ══════════════════════════%u%
pause >nul
goto More
:changelog
cls
call :SetupConsole
echo.
echo.
echo %c%╔══════════════════════════════════════════════════════════════════════════════╗
echo ║ UPDATE HISTORY ║
echo ╚══════════════════════════════════════════════════════════════════════════════╝%u%
echo.
echo.
echo %c%Stay informed about the latest improvements, bug fixes, and new%u%
echo %c%features added to Batlez Tweaks. The complete changelog and%u%
echo %c%release history is maintained on our official repository.%u%
echo.
echo %c%Opening release page in your default browser...%u%
echo.
timeout 6 >nul /nobreak
start https://github.com/Batlez/Batlez/releases
echo %c%If the page doesn't open automatically, visit:%u%
echo %lime%https://github.com/Batlez/Batlez/releases%u%
echo.
echo.
echo %c%══════════════════════════ PRESS ANY KEY TO CONTINUE ══════════════════════════%u%
pause >nul
goto More
:Backup
cls
call :SetupConsole
call :DisplayBanner
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
set /p input="%c%Would you like to create a Restore and Registry Point? %white%(Y/N)%u% %c%»%u% "
if "%input%"=="Y" goto restorepoint10
if "%input%"=="y" goto restorepoint10
if "%input%"=="N" goto menu
if "%input%"=="n" goto menu
echo %c%Please enter a valid number!%u% & goto Backup
:TweaksMenu
cls
call :SetupConsole
call :DisplayBanner
echo %c% ╔══════════════════════════════╦═══════════════════════════════╗ %u%
echo %c%║%u% [%c%1%u%] Windows Cleaner %c%║%u% [%c%7%u%] Mouse/Keyboard Tweaks %c%║%u%
echo %c%║%u% [%c%2%u%] BCDEdit Tweaks %c%║%u% [%c%8%u%] Internet Refresher %c%║%u%
echo %c%║%u% [%c%3%u%] GPU Optimizations %c%║%u% [%c%9%u%] Service Tweaks %c%║%u%
echo %c%║%u% [%c%4%u%] Network Tweaks %c%║%u% [%c%10%u%] Debloater %c%║%u%
echo %c%║%u% [%c%5%u%] CPU Optimizations %c%║%u% [%c%11%u%] Custom Power Plan %c%║%u%
echo %c%║%u% [%c%6%u%] Memory Optimizer %c%║%u% [%c%12%u%] Browser Config %c%║%u%
echo %c% ╚══════════════════════════════╩═══════════════════════════════╝
echo.
echo %u%[%c%13%u%] Colour Presets [%c%14%u%] Back to Main [%red%X%u%] Exit Application
echo.
echo.
set /p M="%c%Choose an option »%u% "
if %M%==1 goto A
if %M%==2 goto B
if %M%==3 goto C
if %M%==4 goto D
if %M%==5 goto E
if %M%==6 goto F
if %M%==7 goto G
if %M%==8 goto H
if %M%==9 goto I
if %M%==10 goto J
if %M%==11 goto K
if %M%==12 goto L
if %M%==13 goto Presets
if %M%==14 goto menu
if %M%==X goto Destruct
if %M%==x goto Destruct
cls
echo %underline%%red%Invalid Input. Press any key to continue.%u%
pause >nul
goto TweaksMenu
:L
setlocal enabledelayedexpansion
cls
call :SetupConsole
echo.
echo.
echo %c%╔══════════════════════════════════════════════════════════════════════════════╗
echo ║ BROWSER CONFIGURATION AND PRIVACY OPTIMIZER ║
echo ╚══════════════════════════════════════════════════════════════════════════════╝%u%
echo.
echo %c%Browser optimization includes:%u%
echo %c%• Microsoft Edge, Chrome, Firefox, Opera GX, Brave, Vivaldi support%u%
echo %c%• Automatic privacy extension installation (uBlock Origin, etc.)%u%
echo %c%• Comprehensive telemetry and tracking protection%u%
echo %c%• Advanced browser security hardening%u%
echo %c%• Chromium-based browser universal configuration%u%
echo %c%• Custom DNS and ad-blocking configuration%u%
echo.
echo %red%%underline%Browser Notice:%u%
echo %c%This will modify browser settings and automatically install privacy extensions.%u%
echo %c%Extensions will be force-installed and configured for maximum privacy.%u%
echo %c%For best results, close all browsers before proceeding.%u%
echo.
echo.
choice /C YN /M "%c%Apply comprehensive browser privacy optimization? (Y/N)%u%"
if errorlevel 2 goto TweaksMenu
echo.
echo %c%╔══════════════════════════════════════════════════════════════════════════════╗
echo ║ BROWSER DETECTION AND CONFIGURATION ║
echo ╚══════════════════════════════════════════════════════════════════════════════╝%u%
echo.
echo %c%[DETECTION] Checking if browsers are currently running...%u%
tasklist /fi "imagename eq chrome.exe" 2>nul | find /i "chrome.exe" >nul && echo %c%⚠ Warning: Chrome is currently running - some settings may not apply%u%
tasklist /fi "imagename eq firefox.exe" 2>nul | find /i "firefox.exe" >nul && echo %c%⚠ Warning: Firefox is currently running - some settings may not apply%u%
tasklist /fi "imagename eq msedge.exe" 2>nul | find /i "msedge.exe" >nul && echo %c%⚠ Warning: Edge is currently running - some settings may not apply%u%
tasklist /fi "imagename eq opera.exe" 2>nul | find /i "opera.exe" >nul && echo %c%⚠ Warning: Opera GX is currently running - some settings may not apply%u%
echo %c%[DETECTION] Scanning for installed browsers...%u%
set "BROWSERS_FOUND="
set "EDGE_FOUND=false"
set "CHROME_FOUND=false"
set "FIREFOX_FOUND=false"
set "OPERAGX_FOUND=false"
set "BRAVE_FOUND=false"
set "VIVALDI_FOUND=false"
set "CHROMIUM_FOUND=false"
if exist "%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" set "EDGE_FOUND=true" & set "BROWSERS_FOUND=!BROWSERS_FOUND! Edge"
if exist "%ProgramFiles%\Microsoft\Edge\Application\msedge.exe" set "EDGE_FOUND=true" & set "BROWSERS_FOUND=!BROWSERS_FOUND! Edge"
if exist "%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe" set "CHROME_FOUND=true" & set "BROWSERS_FOUND=!BROWSERS_FOUND! Chrome"
if exist "%ProgramFiles%\Google\Chrome\Application\chrome.exe" set "CHROME_FOUND=true" & set "BROWSERS_FOUND=!BROWSERS_FOUND! Chrome"
if exist "%ProgramFiles(x86)%\Mozilla Firefox\firefox.exe" set "FIREFOX_FOUND=true" & set "BROWSERS_FOUND=!BROWSERS_FOUND! Firefox"
if exist "%ProgramFiles%\Mozilla Firefox\firefox.exe" set "FIREFOX_FOUND=true" & set "BROWSERS_FOUND=!BROWSERS_FOUND! Firefox"
if exist "%LOCALAPPDATA%\Programs\Opera GX\opera.exe" set "OPERAGX_FOUND=true" & set "BROWSERS_FOUND=!BROWSERS_FOUND! OperaGX"
if exist "%ProgramFiles%\BraveSoftware\Brave-Browser\Application\brave.exe" set "BRAVE_FOUND=true" & set "BROWSERS_FOUND=!BROWSERS_FOUND! Brave"
if exist "%LOCALAPPDATA%\Vivaldi\Application\vivaldi.exe" set "VIVALDI_FOUND=true" & set "BROWSERS_FOUND=!BROWSERS_FOUND! Vivaldi"
if exist "%ProgramFiles(x86)%\Chromium\Application\chrome.exe" set "CHROMIUM_FOUND=true" & set "BROWSERS_FOUND=!BROWSERS_FOUND! Chromium"
echo %c%Detected browsers:%BROWSERS_FOUND%%u%
echo.
echo %c%╔══════════════════════════════════════════════════════════════════════════════╗
echo ║ BROWSER OPTIMIZATION IN PROGRESS ║
echo ╚══════════════════════════════════════════════════════════════════════════════╝%u%
mkdir "%TEMP%\BatlezBrowserExtensions" >nul 2>&1
cd /d "%TEMP%\BatlezBrowserExtensions"
echo.
echo %c%[1/8] Downloading Privacy Extension Installers...%u%
echo %c%• Downloading uBlock Origin extension files...%u%
chcp 437>nul
powershell -Command "try { Invoke-WebRequest 'https://clients2.google.com/service/update2/crx?response=redirect&prodversion=91.0&acceptformat=crx2,crx3&x=id%3Dcjpalhdlnbpafiamejdnhcphjbkeiagm%26uc' -OutFile 'ublock_origin.crx' -ErrorAction Stop } catch { Write-Host 'Download failed, will use store method' }" >nul 2>&1
chcp 65001 >nul
echo %c%• Downloading Privacy Badger extension files...%u%
chcp 437>nul
powershell -Command "try { Invoke-WebRequest 'https://clients2.google.com/service/update2/crx?response=redirect&prodversion=91.0&acceptformat=crx2,crx3&x=id%3Dpkehgijcmpdhfbdbbnkijodmdjhbjlgp%26uc' -OutFile 'privacy_badger.crx' -ErrorAction Stop } catch { Write-Host 'Download failed, will use store method' }" >nul 2>&1
chcp 65001 >nul
echo %c%• Downloading Decentraleyes extension files...%u%
chcp 437>nul
powershell -Command "try { Invoke-WebRequest 'https://clients2.google.com/service/update2/crx?response=redirect&prodversion=91.0&acceptformat=crx2,crx3&x=id%3Dldpochfccmkkmhdbclfhpagapcfdljkj%26uc' -OutFile 'decentraleyes.crx' -ErrorAction Stop } catch { Write-Host 'Download failed, will use store method' }" >nul 2>&1
chcp 65001 >nul
if "%EDGE_FOUND%"=="true" (
echo.
echo %c%[2/8] Configuring Microsoft Edge for Maximum Privacy...%u%
echo %c%• Disabling Edge telemetry and data collection...%u%
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "MetricsReportingEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "SendSiteInfoToImproveServices" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "PersonalizationReportingEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "SpellcheckEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "EdgeCollectionsEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
echo %c%• Force installing uBlock Origin in Edge...%u%
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge\ExtensionInstallForcelist" /v "1" /t REG_SZ /d "odfafepnkmbhccpbejgmiehpchacaeak;https://edge.microsoft.com/extensionwebstorebase/v1/crx" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge\ExtensionInstallForcelist" /v "2" /t REG_SZ /d "bhhhlbepdkbapadjdnnojkbgioiodbic;https://edge.microsoft.com/extensionwebstorebase/v1/crx" /f >nul 2>&1
echo %c%• Disabling Copilot and AI features...%u%
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "CopilotCDPPageContext" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "CopilotPageContext" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "DiscoverPageContextEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HubsSidebarEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
echo %c%• Configuring Edge privacy settings...%u%
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "AddressBarMicrosoftSearchInBingProviderEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "AlternateErrorPagesEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "AutofillCreditCardEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "AutofillAddressEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "PaymentMethodQueryEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "EdgeShoppingAssistantEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
) else (
echo %c%[2/8] Microsoft Edge not detected, skipping...%u%
)
if "%CHROME_FOUND%"=="true" (
echo.
echo %c%[3/8] Configuring Google Chrome for Maximum Privacy...%u%
tasklist /fi "imagename eq chrome.exe" 2>nul | find /i "chrome.exe" >nul && (
echo %c%⚠ Chrome is running - attempting to close gracefully...%u%
taskkill /im chrome.exe /f >nul 2>&1
timeout /t 2 >nul
)
echo %c%• Disabling Chrome telemetry and cleanup...%u%
reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v "ChromeCleanupEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v "ChromeCleanupReportingEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v "MetricsReportingEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v "UserFeedbackAllowed" /t REG_DWORD /d "0" /f >nul 2>&1
echo %c%• Force installing uBlock Origin in Chrome...%u%
reg add "HKLM\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist" /v "1" /t REG_SZ /d "cjpalhdlnbpafiamejdnhcphjbkeiagm" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist" /v "2" /t REG_SZ /d "pkehgijcmpdhfbdbbnkijodmdjhbjlgp" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist" /v "3" /t REG_SZ /d "ldpochfccmkkmhdbclfhpagapcfdljkj" /f >nul 2>&1
echo %c%• Configuring Chrome privacy settings...%u%
reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v "NetworkPredictionOptions" /t REG_DWORD /d "2" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v "SearchSuggestEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v "AlternateErrorPagesEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v "SpellCheckServiceEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v "SafeBrowsingExtendedReportingEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
) else (
echo %c%[3/8] Google Chrome not detected, skipping...%u%
)
if "%FIREFOX_FOUND%"=="true" (
echo.
echo %c%[4/8] Configuring Mozilla Firefox for Maximum Privacy...%u%
echo %c%• Disabling Firefox telemetry...%u%
reg add "HKLM\SOFTWARE\Policies\Mozilla\Firefox" /v "DisableTelemetry" /t REG_DWORD /d "1" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Mozilla\Firefox" /v "DisableDefaultBrowserAgent" /t REG_DWORD /d "1" /f >nul 2>&1
echo %c%• Installing uBlock Origin in Firefox...%u%
reg add "HKLM\SOFTWARE\Policies\Mozilla\Firefox\Extensions\Install" /v "1" /t REG_SZ /d "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Mozilla\Firefox\Extensions\Install" /v "2" /t REG_SZ /d "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi" /f >nul 2>&1
echo %c%• Configuring Firefox privacy preferences...%u%
if exist "%ProgramFiles%\Mozilla Firefox\defaults\pref" (
echo // Firefox Privacy Configuration - Generated by Batlez Tweaks > "%ProgramFiles%\Mozilla Firefox\defaults\pref\batlez_privacy.js" 2>nul
echo pref^("toolkit.telemetry.unified", false^); >> "%ProgramFiles%\Mozilla Firefox\defaults\pref\batlez_privacy.js" 2>nul
echo pref^("toolkit.telemetry.enabled", false^); >> "%ProgramFiles%\Mozilla Firefox\defaults\pref\batlez_privacy.js" 2>nul
echo pref^("datareporting.healthreport.uploadEnabled", false^); >> "%ProgramFiles%\Mozilla Firefox\defaults\pref\batlez_privacy.js" 2>nul
echo pref^("datareporting.policy.dataSubmissionEnabled", false^); >> "%ProgramFiles%\Mozilla Firefox\defaults\pref\batlez_privacy.js" 2>nul
echo pref^("privacy.trackingprotection.enabled", true^); >> "%ProgramFiles%\Mozilla Firefox\defaults\pref\batlez_privacy.js" 2>nul
)
if exist "%ProgramFiles(x86)%\Mozilla Firefox\defaults\pref" (
echo // Firefox Privacy Configuration - Generated by Batlez Tweaks > "%ProgramFiles(x86)%\Mozilla Firefox\defaults\pref\batlez_privacy.js" 2>nul
echo pref^("toolkit.telemetry.unified", false^); >> "%ProgramFiles(x86)%\Mozilla Firefox\defaults\pref\batlez_privacy.js" 2>nul
echo pref^("toolkit.telemetry.enabled", false^); >> "%ProgramFiles(x86)%\Mozilla Firefox\defaults\pref\batlez_privacy.js" 2>nul
echo pref^("datareporting.healthreport.uploadEnabled", false^); >> "%ProgramFiles(x86)%\Mozilla Firefox\defaults\pref\batlez_privacy.js" 2>nul
echo pref^("datareporting.policy.dataSubmissionEnabled", false^); >> "%ProgramFiles(x86)%\Mozilla Firefox\defaults\pref\batlez_privacy.js" 2>nul
echo pref^("privacy.trackingprotection.enabled", true^); >> "%ProgramFiles(x86)%\Mozilla Firefox\defaults\pref\batlez_privacy.js" 2>nul
)
) else (
echo %c%[4/8] Mozilla Firefox not detected, skipping...%u%
)
if "%OPERAGX_FOUND%"=="true" (
echo.
echo %c%[5/8] Configuring Opera GX for Maximum Privacy...%u%
echo %c%• Disabling Opera GX telemetry and ads...%u%
reg add "HKLM\SOFTWARE\Policies\Opera Software\Opera GX Stable" /v "MetricsReportingEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Opera Software\Opera GX Stable" /v "UserFeedbackAllowed" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Opera Software\Opera GX Stable" /v "DefaultSearchProviderEnabled" /t REG_DWORD /d "1" /f >nul 2>&1
echo %c%• Force installing uBlock Origin in Opera GX...%u%
reg add "HKLM\SOFTWARE\Policies\Opera Software\Opera GX Stable\ExtensionInstallForcelist" /v "1" /t REG_SZ /d "cjpalhdlnbpafiamejdnhcphjbkeiagm" /f >nul 2>&1
echo %c%• Configuring Opera GX gaming optimizations...%u%
reg add "HKLM\SOFTWARE\Policies\Opera Software\Opera GX Stable" /v "BackgroundModeEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Opera Software\Opera GX Stable" /v "HardwareAccelerationModeEnabled" /t REG_DWORD /d "1" /f >nul 2>&1
) else (
echo %c%[5/8] Opera GX not detected, skipping...%u%
)
if "%BRAVE_FOUND%"=="true" (
echo.
echo %c%[6/8] Configuring Brave Browser for Maximum Privacy...%u%
echo %c%• Enhancing Brave privacy settings...%u%
reg add "HKLM\SOFTWARE\Policies\BraveSoftware\Brave" /v "MetricsReportingEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\BraveSoftware\Brave" /v "SpellCheckServiceEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\BraveSoftware\Brave" /v "SafeBrowsingExtendedReportingEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
echo %c%• Installing additional privacy extensions in Brave...%u%
reg add "HKLM\SOFTWARE\Policies\BraveSoftware\Brave\ExtensionInstallForcelist" /v "1" /t REG_SZ /d "pkehgijcmpdhfbdbbnkijodmdjhbjlgp" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\BraveSoftware\Brave\ExtensionInstallForcelist" /v "2" /t REG_SZ /d "ldpochfccmkkmhdbclfhpagapcfdljkj" /f >nul 2>&1
echo %c%• Optimizing Brave for performance...%u%
reg add "HKLM\SOFTWARE\Policies\BraveSoftware\Brave" /v "BackgroundModeEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\BraveSoftware\Brave" /v "HardwareAccelerationModeEnabled" /t REG_DWORD /d "1" /f >nul 2>&1
) else (
echo %c%[6/8] Brave Browser not detected, skipping...%u%
)
if "%VIVALDI_FOUND%"=="true" (
echo.
echo %c%[7/8] Configuring Vivaldi Browser for Maximum Privacy...%u%
echo %c%• Disabling Vivaldi telemetry...%u%
reg add "HKLM\SOFTWARE\Policies\Vivaldi" /v "MetricsReportingEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Vivaldi" /v "UserFeedbackAllowed" /t REG_DWORD /d "0" /f >nul 2>&1
echo %c%• Installing privacy extensions in Vivaldi...%u%
reg add "HKLM\SOFTWARE\Policies\Vivaldi\ExtensionInstallForcelist" /v "1" /t REG_SZ /d "cjpalhdlnbpafiamejdnhcphjbkeiagm" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Vivaldi\ExtensionInstallForcelist" /v "2" /t REG_SZ /d "pkehgijcmpdhfbdbbnkijodmdjhbjlgp" /f >nul 2>&1
echo %c%• Configuring Vivaldi privacy settings...%u%
reg add "HKLM\SOFTWARE\Policies\Vivaldi" /v "NetworkPredictionOptions" /t REG_DWORD /d "2" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Vivaldi" /v "SpellCheckServiceEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
) else (
echo %c%[7/8] Vivaldi Browser not detected, skipping...%u%
)
echo.
echo %c%[8/8] Applying Universal Browser Optimizations...%u%
echo %c%• Configuring system-wide DNS for ad-blocking...%u%
netsh interface ip set dns "Wi-Fi" static 1.1.1.2 primary >nul 2>&1
netsh interface ip add dns "Wi-Fi" 1.0.0.2 index=2 >nul 2>&1
netsh interface ip set dns "Ethernet" static 1.1.1.2 primary >nul 2>&1
netsh interface ip add dns "Ethernet" 1.0.0.2 index=2 >nul 2>&1
echo %c%• Configuring Windows hosts file for ad-blocking...%u%
echo. >> "%SystemRoot%\System32\drivers\etc\hosts"
echo # Batlez Browser Privacy Optimizer - Added %date% %time% >> "%SystemRoot%\System32\drivers\etc\hosts"
echo 0.0.0.0 doubleclick.net >> "%SystemRoot%\System32\drivers\etc\hosts"
echo 0.0.0.0 googleadservices.com >> "%SystemRoot%\System32\drivers\etc\hosts"
echo 0.0.0.0 googlesyndication.com >> "%SystemRoot%\System32\drivers\etc\hosts"
echo 0.0.0.0 googletagmanager.com >> "%SystemRoot%\System32\drivers\etc\hosts"
echo 0.0.0.0 ads.yahoo.com >> "%SystemRoot%\System32\drivers\etc\hosts"
echo 0.0.0.0 adsystem.microsoft.com >> "%SystemRoot%\System32\drivers\etc\hosts"
echo %c%• Configuring Internet Explorer security...%u%
reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\Geolocation" /v "BlockAllWebsites" /t REG_DWORD /d "1" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Geolocation" /v "BlockAllWebsites" /t REG_DWORD /d "1" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\SQM" /v "OptedIn" /t REG_DWORD /d "0" /f >nul 2>&1
echo %c%• Verifying browser extension configuration...%u%
echo.
echo %c%Extension Policies Status:%u%
reg query "HKLM\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist" >nul 2>&1
if !errorlevel! equ 0 (
echo %c% ✓ Chrome policies: CONFIGURED%u%
) else (
echo %c% ✗ Chrome policies: NOT CONFIGURED%u%
)
reg query "HKLM\SOFTWARE\Policies\Microsoft\Edge\ExtensionInstallForcelist" >nul 2>&1
if !errorlevel! equ 0 (
echo %c% ✓ Edge policies: CONFIGURED%u%
) else (
echo %c% ✗ Edge policies: NOT CONFIGURED%u%
)
reg query "HKLM\SOFTWARE\Policies\Mozilla\Firefox\Extensions\Install" >nul 2>&1
if !errorlevel! equ 0 (
echo %c% ✓ Firefox policies: CONFIGURED%u%
) else (
echo %c% ✗ Firefox policies: NOT CONFIGURED%u%
)
echo %c%• Applying final browser security tweaks...%u%
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /v "1806" /t REG_DWORD /d "0" /f >nul 2>&1
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /v "1806" /t REG_DWORD /d "0" /f >nul 2>&1
cd /d "%TEMP%"
rmdir /s /q "BatlezBrowserExtensions" >nul 2>&1
echo.
echo %c%╔══════════════════════════════════════════════════════════════════════════════╗
echo ║ COMPREHENSIVE BROWSER OPTIMIZATION COMPLETED ║
echo ╚══════════════════════════════════════════════════════════════════════════════╝%u%
echo.
echo %c%Browser privacy and extension optimization has been successfully completed.%u%
echo.
echo %c%Configured Browsers:%u%
if "%EDGE_FOUND%"=="true" echo %c%• Microsoft Edge: Privacy hardened + uBlock Origin auto-installed%u%
if "%CHROME_FOUND%"=="true" echo %c%• Google Chrome: Privacy hardened + Extensions auto-installed%u%
if "%FIREFOX_FOUND%"=="true" echo %c%• Mozilla Firefox: Privacy hardened + Extensions auto-installed%u%
if "%OPERAGX_FOUND%"=="true" echo %c%• Opera GX: Gaming optimized + Privacy extensions installed%u%
if "%BRAVE_FOUND%"=="true" echo %c%• Brave Browser: Enhanced privacy + Additional extensions%u%
if "%VIVALDI_FOUND%"=="true" echo %c%• Vivaldi: Privacy optimized + Extensions auto-installed%u%
if "%CHROMIUM_FOUND%"=="true" echo %c%• Chromium: Universal configuration applied%u%
echo.
echo %c%System-Wide Optimizations:%u%
echo %c%• DNS configured for ad-blocking (Cloudflare with malware protection)%u%
echo %c%• Hosts file updated with ad-blocking entries%u%
echo %c%• Internet Explorer security hardened%u%
echo %c%• Browser telemetry and tracking disabled across all browsers%u%
echo.
echo %c%Auto-Installed Extensions:%u%
echo %c%• uBlock Origin - Advanced ad and tracker blocker%u%
echo %c%• Privacy Badger - Intelligent tracker protection%u%
echo %c%• Decentraleyes - CDN request protection%u%
echo.
echo %red%Next Steps:%u%
echo %c%• Restart all browsers to apply configurations%u%
echo %c%• Extensions will automatically install on browser restart%u%
echo %c%• Configure extension settings as needed%u%
echo.
echo %red%Performance Benefits:%u%
echo %c%• Significantly reduced tracking and telemetry%u%
echo %c%• Faster page loading with ad-blocking%u%
echo %c%• Enhanced privacy protection across all browsers%u%
echo %c%• Automatic malware and phishing protection%u%
echo.
echo %c%══════════════════════════ PRESS ANY KEY TO CONTINUE ══════════════════════════%u%
pause >nul
goto TweaksMenu
:K
cls
call :SetupConsole
echo.
echo.
echo %c%╔══════════════════════════════════════════════════════════════════════════════╗
echo ║ CUSTOM POWER PLAN OPTIMIZER ║
echo ╚══════════════════════════════════════════════════════════════════════════════╝%u%
echo.
echo %c%Choose your power plan optimization type:%u%
echo.
echo %c% ╔════════════════════════════════╗
echo ║ [1] Desktop Power Plan ║
echo ║ [2] Laptop Power Plan ║
echo ║ [3] View Current Plan ║
echo ║ ║
echo ║ [0] Return to Main Menu ║
echo ╚════════════════════════════════╝%u%
echo.
echo %c%Desktop Plan: Maximum performance, no power saving (recommended for gaming PCs)%u%
echo %c%Laptop Plan: Balanced performance with battery optimization (recommended for laptops)%u%
echo.
set /p choice="%c%Select your power plan type »%u% "
if "%choice%"=="0" goto TweaksMenu
if "%choice%"=="1" goto DesktopPowerPlan
if "%choice%"=="2" goto LaptopPowerPlan
if "%choice%"=="3" goto ViewCurrentPlan
cls
echo.
echo %red%╔══════════════════════════════════════════════════════════════════════════════╗
echo ║ INVALID INPUT ║
echo ╚══════════════════════════════════════════════════════════════════════════════╝%u%
echo.
echo %c%Please select a valid option [0-3] from the menu.%u%
echo.
echo %c%══════════════════════════ PRESS ANY KEY TO RETRY ══════════════════════════%u%
pause >nul
goto K
:ViewCurrentPlan
cls
call :SetupConsole
echo.
echo.
echo %c%╔══════════════════════════════════════════════════════════════════════════════╗
echo ║ CURRENT POWER PLAN STATUS ║
echo ╚══════════════════════════════════════════════════════════════════════════════╝%u%
echo.
echo %c%Active Power Plan:%u%
powercfg /getactivescheme
echo.
echo %c%Available Power Plans:%u%
powercfg /list
echo.
echo %c%══════════════════════════ PRESS ANY KEY TO CONTINUE ══════════════════════════%u%
pause >nul
goto K
:DesktopPowerPlan
cls
call :SetupConsole
echo.
echo.
echo %c%╔══════════════════════════════════════════════════════════════════════════════╗
echo ║ DESKTOP ULTIMATE PERFORMANCE PLAN ║
echo ╚══════════════════════════════════════════════════════════════════════════════╝%u%
echo.
echo %c%Desktop power plan features:%u%
echo %c%• Maximum CPU performance (100%% minimum, no throttling)%u%
echo %c%• All power saving features disabled%u%
echo %c%• USB and PCI power management off%u%
echo %c%• Display and sleep timeouts disabled%u%
echo %c%• Aggressive CPU boost and turbo modes%u%