Skip to content

Commit 1f36484

Browse files
committed
v1.0.3
1 parent 94c494c commit 1f36484

File tree

4 files changed

+118
-32
lines changed

4 files changed

+118
-32
lines changed

winscript-app/resources/index.html

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -557,19 +557,19 @@ <h1 class="title">WinScript</h1>
557557
</div>
558558
</details>
559559
<details>
560-
<summary><span>UI Settings</span></summary>
560+
<summary><span>Gaming Settings</span></summary>
561561
<div class="collapsable-content">
562562
<label class="checkbox-wrap">
563-
<input id="darkmode" type="checkbox" class="checkbox" />
564-
<span>Enable Dark Mode</span>
563+
<input id="mouseacc" type="checkbox" class="checkbox" />
564+
<span>Disable Mouse Acceleration</span>
565565
</label>
566566
<label class="checkbox-wrap">
567-
<input id="filextensions" type="checkbox" class="checkbox" />
568-
<span>Show File Extensions</span>
567+
<input id="gamemode" type="checkbox" class="checkbox" />
568+
<span>Disable Game Mode</span>
569569
</label>
570570
<label class="checkbox-wrap">
571-
<input id="snapflyout" type="checkbox" class="checkbox" />
572-
<span>Disable Snap Flyout</span>
571+
<input id="gamebar" type="checkbox" class="checkbox" />
572+
<span>Disable Game Bar</span>
573573
</label>
574574
</div>
575575
</details>
@@ -585,16 +585,24 @@ <h1 class="title">WinScript</h1>
585585
<span>Disable Sticky Keys</span>
586586
</label>
587587
<label class="checkbox-wrap">
588-
<input id="mouseacc" type="checkbox" class="checkbox" />
589-
<span>Disable Mouse Acceleration</span>
588+
<input id="numlockstartup" type="checkbox" class="checkbox" />
589+
<span>Disable Numlock on Startup</span>
590590
</label>
591591
<label class="checkbox-wrap">
592-
<input id="classicmenu" type="checkbox" class="checkbox" />
593-
<span>Set Classic Right-Click Menu</span>
592+
<input id="darkmode" type="checkbox" class="checkbox" />
593+
<span>Enable Dark Mode</span>
594594
</label>
595595
<label class="checkbox-wrap">
596-
<input id="numlockstartup" type="checkbox" class="checkbox" />
597-
<span>Disable Numlock on Startup</span>
596+
<input id="filextensions" type="checkbox" class="checkbox" />
597+
<span>Show File Extensions</span>
598+
</label>
599+
<label class="checkbox-wrap">
600+
<input id="snapflyout" type="checkbox" class="checkbox" />
601+
<span>Disable Snap Flyout</span>
602+
</label>
603+
<label class="checkbox-wrap">
604+
<input id="classicmenu" type="checkbox" class="checkbox" />
605+
<span>Set Classic Right-Click Menu</span>
598606
</label>
599607
</div>
600608
</details>
@@ -624,10 +632,18 @@ <h1 class="title">WinScript</h1>
624632
<input id="disablehibernation" type="checkbox" class="checkbox" />
625633
<span>Disable Hibernation</span>
626634
</label>
635+
<label class="checkbox-wrap">
636+
<input id="coreisolation" type="checkbox" class="checkbox" />
637+
<span>Disable Core Isolation</span>
638+
</label>
627639
<label class="checkbox-wrap">
628640
<input id="disableprefetch" type="checkbox" class="checkbox" />
629641
<span>Disable Prefetch</span>
630642
</label>
643+
<label class="checkbox-wrap">
644+
<input id="hags" type="checkbox" class="checkbox" />
645+
<span>Disable HAGS</span>
646+
</label>
631647
</div>
632648
<div class="card install">
633649
<div>

winscript-app/resources/js/scripts.js

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const scripts = {
187187
],
188188
wsearch: [
189189
"echo -- Disabling Windows Search",
190-
'powershell -Command "try { Disable-WindowsOptionalFeature -FeatureName "SearchEngine-Client-Package" -Online -NoRestart -ErrorAction Stop; Write-Output "Successfully disabled the feature SearchEngine-Client-Package." } catch { Write-Output "Feature not found." }"',
190+
'sc stop "wsearch" && sc config "wsearch" start=disabled'
191191
],
192192
wtelemetry: [
193193
"echo -- Disabling Windows Telemetry",
@@ -855,6 +855,10 @@ const scripts = {
855855
"sc config wuauserv start=demand",
856856
"sc config wudfsvc start=demand",
857857
],
858+
hags : [
859+
"echo -- Disabling HAGS",
860+
'reg add "HKLM\\SYSTEM\\CurrentControlSet\\Control\\GraphicsDrivers" /v "HwSchMode" /t REG_DWORD /d 1 /f',
861+
],
858862
storagesense: [
859863
"echo -- Disabling Storage Sense",
860864
'powershell -command "Set-ItemProperty -Path "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy" -Name "01" -Value 0 -Force"',
@@ -863,12 +867,15 @@ const scripts = {
863867
"echo -- Disabling Hibernation",
864868
"powercfg.exe /hibernate off",
865869
],
870+
coreisolation: [
871+
"echo -- Disabling Core Isolation",
872+
'reg add "HKLM\\SOFTWARE\\CurrentControlSet\\CurrentControlSet\\Control\\DeviceGuard\\Scenarios\\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d 0 /f',
873+
],
866874
disableprefetch: [
867875
"echo -- Disabling Prefetch",
868876
"sc stop sysmain",
869877
"sc config sysmain start=disabled",
870878
],
871-
872879
darkmode: [
873880
"echo -- Enabling Dark Mode",
874881
'reg add "HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize" /v "AppsUseLightTheme" /t REG_DWORD /d 0 /f',
@@ -884,6 +891,19 @@ const scripts = {
884891
'reg add "HKCU\\Control Panel\\Mouse" /v "MouseThreshold1" /t REG_SZ /d "0" /f',
885892
'reg add "HKCU\\Control Panel\\Mouse" /v "MouseThreshold2" /t REG_SZ /d "0" /f',
886893
],
894+
gamemode: [
895+
"echo -- Disabling Game Mode",
896+
'reg add "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\GameDVR" /v "AutoGameModeEnabled" /t REG_DWORD /d 0 /f',
897+
'reg add "HKCU\\SOFTWARE\\Microsoft\\GameBar" /v "AutoGameModeEnabled" /t REG_DWORD /d 0 /f',
898+
],
899+
gamebar: [
900+
"echo -- Disabling Game Bar",
901+
'reg add "HKLM\\SOFTWARE\\Polices\\Microsoft\\Windows\\GameDVR" /v "AllowGameDVR" /t REG_DWORD /d 0 /f',
902+
'reg add "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\GameDVR" /v "AppCaptureEnabled" /t REG_DWORD /d 0 /f',
903+
'reg add "HKCU\\SOFTWARE\\Microsoft\\GameBar" /v "UseNexusForGameBarEnabled" /t REG_DWORD /d 0 /f',
904+
'reg add "HKCU\\SOFTWARE\\Microsoft\\GameBar" /v "ShowStartupPanel" /t REG_DWORD /d 0 /f',
905+
],
906+
887907
classicmenu: [
888908
"echo -- Setting Classic Right-Click Menu",
889909
'reg add "HKCU\\Software\\Classes\\CLSID\\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\\InprocServer32" /f /ve',
@@ -1004,14 +1024,21 @@ const checkboxItems = [
10041024

10051025
{ id: "ultimateperformance", type: "ultimateperformance" },
10061026
{ id: "manualservices", type: "manualservices" },
1027+
{ id: "hags", type: "hags" },
10071028
{ id: "storagesense", type: "storagesense" },
10081029
{ id: "disablehibernation", type: "disablehibernation" },
1030+
{ id: "coreisolation", type: "coreisolation" },
10091031
{ id: "disableprefetch", type: "disableprefetch" },
10101032

1033+
1034+
{ id: "mouseacc", type: "mouseacc" },
1035+
{ id: "gamemode", type: "gamemode" },
1036+
{ id: "gamebar", type: "gamebar" },
1037+
1038+
10111039
{ id: "darkmode", type: "darkmode" },
10121040
{ id: "filextensions", type: "filextensions" },
10131041
{ id: "classicmenu", type: "classicmenu" },
1014-
{ id: "mouseacc", type: "mouseacc" },
10151042
{ id: "endtask", type: "endtask" },
10161043
{ id: "stickykeys", type: "stickykeys" },
10171044
{ id: "taskbarwidgets", type: "taskbarwidgets" },

winscript-online/index.html

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -559,19 +559,19 @@ <h1 class="title">WinScript</h1>
559559
</div>
560560
</details>
561561
<details>
562-
<summary><span>UI Settings</span></summary>
562+
<summary><span>Gaming Settings</span></summary>
563563
<div class="collapsable-content">
564564
<label class="checkbox-wrap">
565-
<input id="darkmode" type="checkbox" class="checkbox" />
566-
<span>Enable Dark Mode</span>
565+
<input id="mouseacc" type="checkbox" class="checkbox" />
566+
<span>Disable Mouse Acceleration</span>
567567
</label>
568568
<label class="checkbox-wrap">
569-
<input id="filextensions" type="checkbox" class="checkbox" />
570-
<span>Show File Extensions</span>
569+
<input id="gamemode" type="checkbox" class="checkbox" />
570+
<span>Disable Game Mode</span>
571571
</label>
572572
<label class="checkbox-wrap">
573-
<input id="snapflyout" type="checkbox" class="checkbox" />
574-
<span>Disable Snap Flyout</span>
573+
<input id="gamebar" type="checkbox" class="checkbox" />
574+
<span>Disable Game Bar</span>
575575
</label>
576576
</div>
577577
</details>
@@ -587,16 +587,24 @@ <h1 class="title">WinScript</h1>
587587
<span>Disable Sticky Keys</span>
588588
</label>
589589
<label class="checkbox-wrap">
590-
<input id="mouseacc" type="checkbox" class="checkbox" />
591-
<span>Disable Mouse Acceleration</span>
590+
<input id="numlockstartup" type="checkbox" class="checkbox" />
591+
<span>Disable Numlock on Startup</span>
592592
</label>
593593
<label class="checkbox-wrap">
594-
<input id="classicmenu" type="checkbox" class="checkbox" />
595-
<span>Set Classic Right-Click Menu</span>
594+
<input id="darkmode" type="checkbox" class="checkbox" />
595+
<span>Enable Dark Mode</span>
596596
</label>
597597
<label class="checkbox-wrap">
598-
<input id="numlockstartup" type="checkbox" class="checkbox" />
599-
<span>Disable Numlock on Startup</span>
598+
<input id="filextensions" type="checkbox" class="checkbox" />
599+
<span>Show File Extensions</span>
600+
</label>
601+
<label class="checkbox-wrap">
602+
<input id="snapflyout" type="checkbox" class="checkbox" />
603+
<span>Disable Snap Flyout</span>
604+
</label>
605+
<label class="checkbox-wrap">
606+
<input id="classicmenu" type="checkbox" class="checkbox" />
607+
<span>Set Classic Right-Click Menu</span>
600608
</label>
601609
</div>
602610
</details>
@@ -626,10 +634,18 @@ <h1 class="title">WinScript</h1>
626634
<input id="disablehibernation" type="checkbox" class="checkbox" />
627635
<span>Disable Hibernation</span>
628636
</label>
637+
<label class="checkbox-wrap">
638+
<input id="coreisolation" type="checkbox" class="checkbox" />
639+
<span>Disable Core Isolation</span>
640+
</label>
629641
<label class="checkbox-wrap">
630642
<input id="disableprefetch" type="checkbox" class="checkbox" />
631643
<span>Disable Prefetch</span>
632644
</label>
645+
<label class="checkbox-wrap">
646+
<input id="hags" type="checkbox" class="checkbox" />
647+
<span>Disable HAGS</span>
648+
</label>
633649
</div>
634650
<div class="card install">
635651
<div>

winscript-online/js/scripts.js

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const scripts = {
187187
],
188188
wsearch: [
189189
"echo -- Disabling Windows Search",
190-
'powershell -Command "try { Disable-WindowsOptionalFeature -FeatureName "SearchEngine-Client-Package" -Online -NoRestart -ErrorAction Stop; Write-Output "Successfully disabled the feature SearchEngine-Client-Package." } catch { Write-Output "Feature not found." }"',
190+
'sc stop "wsearch" && sc config "wsearch" start=disabled'
191191
],
192192
wtelemetry: [
193193
"echo -- Disabling Windows Telemetry",
@@ -855,6 +855,10 @@ const scripts = {
855855
"sc config wuauserv start=demand",
856856
"sc config wudfsvc start=demand",
857857
],
858+
hags : [
859+
"echo -- Disabling HAGS",
860+
'reg add "HKLM\\SYSTEM\\CurrentControlSet\\Control\\GraphicsDrivers" /v "HwSchMode" /t REG_DWORD /d 1 /f',
861+
],
858862
storagesense: [
859863
"echo -- Disabling Storage Sense",
860864
'powershell -command "Set-ItemProperty -Path "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy" -Name "01" -Value 0 -Force"',
@@ -863,12 +867,15 @@ const scripts = {
863867
"echo -- Disabling Hibernation",
864868
"powercfg.exe /hibernate off",
865869
],
870+
coreisolation: [
871+
"echo -- Disabling Core Isolation",
872+
'reg add "HKLM\\SOFTWARE\\CurrentControlSet\\CurrentControlSet\\Control\\DeviceGuard\\Scenarios\\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d 0 /f',
873+
],
866874
disableprefetch: [
867875
"echo -- Disabling Prefetch",
868876
"sc stop sysmain",
869877
"sc config sysmain start=disabled",
870878
],
871-
872879
darkmode: [
873880
"echo -- Enabling Dark Mode",
874881
'reg add "HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize" /v "AppsUseLightTheme" /t REG_DWORD /d 0 /f',
@@ -884,6 +891,19 @@ const scripts = {
884891
'reg add "HKCU\\Control Panel\\Mouse" /v "MouseThreshold1" /t REG_SZ /d "0" /f',
885892
'reg add "HKCU\\Control Panel\\Mouse" /v "MouseThreshold2" /t REG_SZ /d "0" /f',
886893
],
894+
gamemode: [
895+
"echo -- Disabling Game Mode",
896+
'reg add "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\GameDVR" /v "AutoGameModeEnabled" /t REG_DWORD /d 0 /f',
897+
'reg add "HKCU\\SOFTWARE\\Microsoft\\GameBar" /v "AutoGameModeEnabled" /t REG_DWORD /d 0 /f',
898+
],
899+
gamebar: [
900+
"echo -- Disabling Game Bar",
901+
'reg add "HKLM\\SOFTWARE\\Polices\\Microsoft\\Windows\\GameDVR" /v "AllowGameDVR" /t REG_DWORD /d 0 /f',
902+
'reg add "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\GameDVR" /v "AppCaptureEnabled" /t REG_DWORD /d 0 /f',
903+
'reg add "HKCU\\SOFTWARE\\Microsoft\\GameBar" /v "UseNexusForGameBarEnabled" /t REG_DWORD /d 0 /f',
904+
'reg add "HKCU\\SOFTWARE\\Microsoft\\GameBar" /v "ShowStartupPanel" /t REG_DWORD /d 0 /f',
905+
],
906+
887907
classicmenu: [
888908
"echo -- Setting Classic Right-Click Menu",
889909
'reg add "HKCU\\Software\\Classes\\CLSID\\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\\InprocServer32" /f /ve',
@@ -1004,14 +1024,21 @@ const checkboxItems = [
10041024

10051025
{ id: "ultimateperformance", type: "ultimateperformance" },
10061026
{ id: "manualservices", type: "manualservices" },
1027+
{ id: "hags", type: "hags" },
10071028
{ id: "storagesense", type: "storagesense" },
10081029
{ id: "disablehibernation", type: "disablehibernation" },
1030+
{ id: "coreisolation", type: "coreisolation" },
10091031
{ id: "disableprefetch", type: "disableprefetch" },
10101032

1033+
1034+
{ id: "mouseacc", type: "mouseacc" },
1035+
{ id: "gamemode", type: "gamemode" },
1036+
{ id: "gamebar", type: "gamebar" },
1037+
1038+
10111039
{ id: "darkmode", type: "darkmode" },
10121040
{ id: "filextensions", type: "filextensions" },
10131041
{ id: "classicmenu", type: "classicmenu" },
1014-
{ id: "mouseacc", type: "mouseacc" },
10151042
{ id: "endtask", type: "endtask" },
10161043
{ id: "stickykeys", type: "stickykeys" },
10171044
{ id: "taskbarwidgets", type: "taskbarwidgets" },

0 commit comments

Comments
 (0)