Skip to content

Commit

Permalink
Added StartRecommendationsTips & StartAccountNotifications functions
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 committed May 16, 2024
1 parent 1194bd2 commit 66151da
Show file tree
Hide file tree
Showing 16 changed files with 453 additions and 59 deletions.
16 changes: 16 additions & 0 deletions Wrapper/Config/config_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,22 @@
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Region": "Privacy & Telemetry",
"Control": "cmb",
"Required": "false",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide"
},
"One": {
"Tag": "Show"
}
},
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Region": "UI & Personalization",
"Control": "cmb",
Expand Down
18 changes: 17 additions & 1 deletion Wrapper/Config/config_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,23 @@
"Region": "Privacy & Telemetry",
"Control": "cmb",
"Required": "false",
"Function": "BrowsingHistory",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide"
},
"One": {
"Tag": "Show"
}
},
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Region": "Privacy & Telemetry",
"Control": "cmb",
"Required": "false",
"Function": "StartAccountNotifications",
"Arg": {
"Zero": {
"Tag": "Hide"
Expand Down
16 changes: 15 additions & 1 deletion Wrapper/Localizations/de-DE/tooltip_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,20 @@
}
}
},
{
"Region": "Privacy & Telemetry",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Microsoft-Kontobezogene Benachrichtigungen werden im Startmenü nicht angezeigt."
},
"One": {
"Tag": "Show",
"ToolTip": "Zeigen Sie Benachrichtigungen zu Microsoft-Konten im Startmenü im Startmenü an (Standardeinstellung)."
}
}
},
{
"Region": "UI & Personalization",
"Function": "ThisPC",
Expand Down Expand Up @@ -1385,7 +1399,7 @@
"Two": {
"Tag": "Extension",
"ToolTip": "Erweiterung."
}
},
"Three": {
"Tag": "Icon",
"ToolTip": "Pfad zum Symbol."
Expand Down
20 changes: 17 additions & 3 deletions Wrapper/Localizations/de-DE/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,29 @@
},
{
"Region": "Privacy & Telemetry",
"Function": "BrowsingHistory",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Zeigt keine Websites aus dem Browserverlauf im Startmenü an."
"ToolTip": "Im Startmenü werden keine Empfehlungen für Tipps, Verknüpfungen, neue Apps und mehr angezeigt."
},
"One": {
"Tag": "Show",
"ToolTip": "Zeigt Websites aus dem Browserverlauf im Startmenü an (Standardeinstellung)."
"ToolTip": "Empfehlungen für Tipps, Verknüpfungen, neue Apps und mehr im Startmenü anzeigen (Standardeinstellung)."
}
}
},
{
"Region": "Privacy & Telemetry",
"Function": "StartAccountNotifications",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Microsoft-Kontobezogene Benachrichtigungen werden im Startmenü nicht angezeigt."
},
"One": {
"Tag": "Show",
"ToolTip": "Microsoft-Kontobezogene Benachrichtigungen im Startmenü im Startmenü anzeigen (Standardeinstellung)."
}
}
},
Expand Down
16 changes: 15 additions & 1 deletion Wrapper/Localizations/en-US/tooltip_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,20 @@
}
}
},
{
"Region": "Privacy & Telemetry",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Do not show Microsoft account-related notifications on Start Menu in the Start menu."
},
"One": {
"Tag": "Show",
"ToolTip": "Show Microsoft account-related notifications on Start Menu in the Start menu (default value)."
}
}
},
{
"Region": "UI & Personalization",
"Function": "ThisPC",
Expand Down Expand Up @@ -1378,7 +1392,7 @@
"Tag": "",
"ToolTip": "Register app, calculate hash, and associate with an extension with the 'How do you want to open this' pop-up hidden."
},
"One": {
"One": {
"Tag": "ProgramPath",
"ToolTip": "Path to executable file."
},
Expand Down
20 changes: 17 additions & 3 deletions Wrapper/Localizations/en-US/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,29 @@
},
{
"Region": "Privacy & Telemetry",
"Function": "BrowsingHistory",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Do not show websites from your browsing history in the Start menu."
"ToolTip": "Do not show recommendations for tips, shortcuts, new apps, and more in the Start menu."
},
"One": {
"Tag": "Show",
"ToolTip": "Show websites from your browsing history in the Start menu (default value)."
"ToolTip": "Show recommendations for tips, shortcuts, new apps, and more in the Start menu (default value)."
}
}
},
{
"Region": "Privacy & Telemetry",
"Function": "StartAccountNotifications",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Do not show Microsoft account-related notifications on Start Menu in the Start menu."
},
"One": {
"Tag": "Show",
"ToolTip": "Show Microsoft account-related notifications on Start Menu in the Start menu (default value)."
}
}
},
Expand Down
18 changes: 16 additions & 2 deletions Wrapper/Localizations/ru-RU/tooltip_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,20 @@
}
}
},
{
"Region": "Privacy & Telemetry",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Не показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню \"Пуск\"."
},
"One": {
"Tag": "Show",
"ToolTip": "Показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню \"Пуск\" (значение по умолчанию)."
}
}
},
{
"Region": "UI & Personalization",
"Function": "ThisPC",
Expand Down Expand Up @@ -1378,11 +1392,11 @@
"Tag": "",
"ToolTip": "Зарегистрируйте приложение, рассчитайте хэш и свяжите его с расширением со скрытым всплывающим окном 'Как вы хотите открыть это'."
},
"One": {
"One": {
"Tag": "ProgramPath",
"ToolTip": "Путь до исполняемого файла."
},
"Two": {
"Two": {
"Tag": "Extension",
"ToolTip": "Расширение."
},
Expand Down
20 changes: 17 additions & 3 deletions Wrapper/Localizations/ru-RU/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,29 @@
},
{
"Region": "Privacy & Telemetry",
"Function": "BrowsingHistory",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Не показать веб-сайты из журнала браузера в меню \"Пуск\"."
"ToolTip": "Не показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню \"Пуск\"."
},
"One": {
"Tag": "Show",
"ToolTip": "Показать веб-сайты из журнала браузера в меню \"Пуск\" (значение по умолчанию)."
"ToolTip": "Показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню \"Пуск\" (значение по умолчанию)."
}
}
},
{
"Region": "Privacy & Telemetry",
"Function": "StartAccountNotifications",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Не показывать в меню \"Пуск\" уведомления, связанные с учетной записью Microsoft."
},
"One": {
"Tag": "Show",
"ToolTip": "Переодически показывать в меню \"Пуск\" уведомления, связанные с учетной записью Microsoft (значение по умолчанию)."
}
}
},
Expand Down
53 changes: 53 additions & 0 deletions src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
winutil = "$env:TEMP\Winutil.log"
# https://www.youtube.com/watch?v=5NBqbUUB1Pk
WinClean = "$env:ProgramFiles\WinClean Plus Apps"
# https://github.com/Atlas-OS/Atlas
AtlasOS = "$env:SystemRoot\AtlasModules"
}
foreach ($Tweaker in $Tweakers.Keys)
{
Expand Down Expand Up @@ -2238,6 +2240,57 @@ function BingSearch
}
}
}

<#
.SYNOPSIS
Microsoft account-related notifications on Start Menu
.PARAMETER Hide
Do not show Microsoft account-related notifications on Start Menu in the Start menu
.PARAMETER Show
Show Microsoft account-related notifications on Start Menu in the Start menu
.EXAMPLE
StartAccountNotifications -Hide
.EXAMPLE
StartAccountNotifications -Show
.NOTES
Current user
#>
function StartAccountNotifications
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Hide"
)]
[switch]
$Hide,

[Parameter(
Mandatory = $true,
ParameterSetName = "Show"
)]
[switch]
$Show
)

switch ($PSCmdlet.ParameterSetName)
{
"Hide"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_AccountNotifications -PropertyType DWord -Value 0 -Force
}
"Show"
{
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_AccountNotifications -Force -ErrorAction Ignore
}
}
}
#endregion Privacy & Telemetry

#region UI & Personalization
Expand Down
8 changes: 8 additions & 0 deletions src/Sophia_Script_for_Windows_10/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,14 @@ BingSearch -Disable
# Enable Bing search in the Start Menu (default value)
# Включить поиск через Bing в меню "Пуск" (значение по умолчанию)
# BingSearch -Enable

# Do not show Microsoft account-related notifications on Start Menu in the Start menu
# Не показывать в меню "Пуск" уведомления, связанные с учетной записью Microsoft
StartAccountNotifications -Hide

# Show Microsoft account-related notifications on Start Menu in the Start menu (default value)
# Переодически показывать в меню "Пуск" уведомления, связанные с учетной записью Microsoft (значение по умолчанию)
# StartAccountNotifications -Show
#endregion Privacy & Telemetry

#region UI & Personalization
Expand Down
53 changes: 53 additions & 0 deletions src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
winutil = "$env:TEMP\Winutil.log"
# https://www.youtube.com/watch?v=5NBqbUUB1Pk
WinClean = "$env:ProgramFiles\WinClean Plus Apps"
# https://github.com/Atlas-OS/Atlas
AtlasOS = "$env:SystemRoot\AtlasModules"
}
foreach ($Tweaker in $Tweakers.Keys)
{
Expand Down Expand Up @@ -2244,6 +2246,57 @@ function BingSearch
}
}
}

<#
.SYNOPSIS
Microsoft account-related notifications on Start Menu
.PARAMETER Hide
Do not show Microsoft account-related notifications on Start Menu in the Start menu
.PARAMETER Show
Show Microsoft account-related notifications on Start Menu in the Start menu
.EXAMPLE
StartAccountNotifications -Hide
.EXAMPLE
StartAccountNotifications -Show
.NOTES
Current user
#>
function StartAccountNotifications
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Hide"
)]
[switch]
$Hide,

[Parameter(
Mandatory = $true,
ParameterSetName = "Show"
)]
[switch]
$Show
)

switch ($PSCmdlet.ParameterSetName)
{
"Hide"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_AccountNotifications -PropertyType DWord -Value 0 -Force
}
"Show"
{
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_AccountNotifications -Force -ErrorAction Ignore
}
}
}
#endregion Privacy & Telemetry

#region UI & Personalization
Expand Down
Loading

0 comments on commit 66151da

Please sign in to comment.