new feature coming soon

This commit is contained in:
2025-10-19 16:06:43 +02:00
parent b8c45f39f4
commit 71a925e002
10 changed files with 455 additions and 34 deletions

View File

@@ -0,0 +1,57 @@
using Microsoft.Win32;
using Perfect11.TweaksInterface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Perfect11.Inbox.DisableAds
{
public class Tweak : IPlugin
{
public string Name => "Disable ADs";
public string Description => "Disables ADs and promotions in Windows.";
public string Category => "Annoyances";
public string Execute()
{
// 1 ContentDeliveryManager
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"))
{
key?.SetValue("SubscribedContent-338393Enabled", 0, RegistryValueKind.DWord);
key?.SetValue("RotatingLockScreenEnabled", 0, RegistryValueKind.DWord);
key?.SetValue("RotatingLockScreenOverlayEnabled", 0, RegistryValueKind.DWord);
key?.SetValue("SubscribedContent-338387Enabled", 0, RegistryValueKind.DWord);
key?.SetValue("SilentInstalledAppsEnabled", 0, RegistryValueKind.DWord);
key?.SetValue("SoftLandingEnabled", 0, RegistryValueKind.DWord);
}
// 2 AdvertisingInfo
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo"))
{
key?.SetValue("Enabled", 0, RegistryValueKind.DWord);
}
// 3 Privacy
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Privacy"))
{
key?.SetValue("TailoredExperiencesWithDiagnosticDataEnabled", 0, RegistryValueKind.DWord);
}
// 4 Explorer
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"))
{
key?.SetValue("Start_IrisRecommendations", 0, RegistryValueKind.DWord);
key?.SetValue("ShowSyncProviderNotifications", 0, RegistryValueKind.DWord);
}
// 5 UserProfileEngagement
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement"))
{
key?.SetValue("ScoobeSystemSettingEnabled", 0, RegistryValueKind.DWord);
}
return "ADs disabled successfully.";
}
}
}