Add files via upload

This commit is contained in:
Belim 2020-08-22 16:09:19 +02:00 committed by GitHub
parent d42dc1c384
commit b7b2011b15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
81 changed files with 5710 additions and 0 deletions

View file

@ -0,0 +1,54 @@
using Microsoft.Win32;
namespace Privatezilla.Setting.Edge
{
internal class DisableAutoFillCredits : SettingBase
{
private const string EdgeKey = @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge";
private const int DesiredValue = 0;
public override string ID()
{
return "Disable AutoFill for credit cards";
}
public override string Info()
{
return "Microsoft Edge's AutoFill feature lets users auto complete credit card information in web forms using previously stored information.";
}
public override bool CheckSetting()
{
return !(
RegistryHelper.IntEquals(EdgeKey, "AutofillCreditCardEnabled", DesiredValue)
);
}
public override bool DoSetting()
{
try
{
Registry.SetValue(EdgeKey, "AutofillCreditCardEnabled", DesiredValue, RegistryValueKind.DWord);
return true;
}
catch
{ }
return false;
}
public override bool UndoSetting()
{
try
{
Registry.SetValue(EdgeKey, "AutofillCreditCardEnabled", 1, RegistryValueKind.DWord);
return true;
}
catch
{ }
return false;
}
}
}

View file

@ -0,0 +1,54 @@
using Microsoft.Win32;
namespace Privatezilla.Setting.Edge
{
internal class BlockEdgeRollout : SettingBase
{
private const string EdgeKey = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate";
private const int DesiredValue = 1;
public override string ID()
{
return "Block Installation of New Microsoft Edge";
}
public override string Info()
{
return "This will block Windows 10 Update Force Installing of the new Chromium-based Microsoft Edge web browser if it's not installed already on the device.";
}
public override bool CheckSetting()
{
return !(
RegistryHelper.IntEquals(EdgeKey, "DoNotUpdateToEdgeWithChromium", DesiredValue)
);
}
public override bool DoSetting()
{
try
{
Registry.SetValue(EdgeKey, "DoNotUpdateToEdgeWithChromium", DesiredValue, RegistryValueKind.DWord);
return true;
}
catch
{ }
return false;
}
public override bool UndoSetting()
{
try
{
Registry.SetValue(EdgeKey, "DoNotUpdateToEdgeWithChromium", 0, RegistryValueKind.DWord);
return true;
}
catch
{ }
return false;
}
}
}

View file

@ -0,0 +1,54 @@
using Microsoft.Win32;
namespace Privatezilla.Setting.Edge
{
internal class DisableSync : SettingBase
{
private const string EdgeKey = @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge";
private const int DesiredValue = 1;
public override string ID()
{
return "Disable synchronization of data";
}
public override string Info()
{
return "This setting will disable synchronization of data using Microsoft sync services.";
}
public override bool CheckSetting()
{
return !(
RegistryHelper.IntEquals(EdgeKey, "SyncDisabled", DesiredValue)
);
}
public override bool DoSetting()
{
try
{
Registry.SetValue(EdgeKey, "SyncDisabled", DesiredValue, RegistryValueKind.DWord);
return true;
}
catch
{ }
return false;
}
public override bool UndoSetting()
{
try
{
Registry.SetValue(EdgeKey, "SyncDisabled", 0, RegistryValueKind.DWord);
return true;
}
catch
{ }
return false;
}
}
}

View file

@ -0,0 +1,54 @@
using Microsoft.Win32;
namespace Privatezilla.Setting.Edge
{
internal class EdgeBackground : SettingBase
{
private const string EdgeKey = @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge";
private const int DesiredValue = 0;
public override string ID()
{
return "Prevent Edge running in background";
}
public override string Info()
{
return "On the new Chromium version of Microsoft Edge, extensions and other services can keep the browser running in the background even after it's closed.";
}
public override bool CheckSetting()
{
return !(
RegistryHelper.IntEquals(EdgeKey, "BackgroundModeEnabled", DesiredValue)
);
}
public override bool DoSetting()
{
try
{
Registry.SetValue(EdgeKey, "BackgroundModeEnabled", DesiredValue, RegistryValueKind.DWord);
return true;
}
catch
{ }
return false;
}
public override bool UndoSetting()
{
try
{
Registry.SetValue(EdgeKey, "BackgroundModeEnabled", 1, RegistryValueKind.DWord);
return true;
}
catch
{ }
return false;
}
}
}