-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from Ceiridge/net5ui
New WPF GUI (and .NET 5)
- Loading branch information
Showing
42 changed files
with
792 additions
and
862 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Application x:Class="ChromeDevExtWarningPatcher.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:ChromeDevExtWarningPatcher" | ||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" | ||
StartupUri="MainView.xaml"> | ||
<Application.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<materialDesign:BundledTheme BaseTheme="Dark" PrimaryColor="Blue" SecondaryColor="LightBlue" /> | ||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</Application.Resources> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using System; | ||
using System.Windows; | ||
using ChromeDevExtWarningPatcher.Patches; | ||
|
||
namespace ChromeDevExtWarningPatcher { | ||
public partial class App : Application { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Windows; | ||
|
||
[assembly: ThemeInfo( | ||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located | ||
//(used if a resource is not found in the page, | ||
// or application resource dictionaries) | ||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located | ||
//(used if a resource is not found in the page, | ||
// app, or any theme specific resource dictionaries) | ||
)] |
199 changes: 49 additions & 150 deletions
199
ChromeDevExtWarningPatcher/ChromeDevExtWarningPatcher.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,158 +1,57 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}</ProjectGuid> | ||
<OutputType>Exe</OutputType> | ||
<RootNamespace>ChromeDevExtWarningPatcher</RootNamespace> | ||
<AssemblyName>ChromeDevExtWarningPatcher</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<IsWebBootstrapper>false</IsWebBootstrapper> | ||
<PublishUrl>publish\</PublishUrl> | ||
<Install>true</Install> | ||
<InstallFrom>Disk</InstallFrom> | ||
<UpdateEnabled>false</UpdateEnabled> | ||
<UpdateMode>Foreground</UpdateMode> | ||
<UpdateInterval>7</UpdateInterval> | ||
<UpdateIntervalUnits>Days</UpdateIntervalUnits> | ||
<UpdatePeriodically>false</UpdatePeriodically> | ||
<UpdateRequired>false</UpdateRequired> | ||
<MapFileExtensions>true</MapFileExtensions> | ||
<ApplicationRevision>0</ApplicationRevision> | ||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> | ||
<UseApplicationTrust>false</UseApplicationTrust> | ||
<PublishWizardCompleted>true</PublishWizardCompleted> | ||
<BootstrapperEnabled>true</BootstrapperEnabled> | ||
<TargetFrameworkProfile /> | ||
<NuGetPackageImportStamp> | ||
</NuGetPackageImportStamp> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<ApplicationManifest>app.manifest</ApplicationManifest> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<ManifestCertificateThumbprint>3EAD0F383E7EB98A5C4542DC4DC9A22B6D1672B1</ManifestCertificateThumbprint> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<ManifestKeyFile>ChromeDevExtWarningPatcher_TemporaryKey.pfx</ManifestKeyFile> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<GenerateManifests>false</GenerateManifests> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<SignManifests>false</SignManifests> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetZone>LocalIntranet</TargetZone> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<StartupObject /> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="DotNetZip, Version=1.13.8.0, Culture=neutral, PublicKeyToken=6583c7c814667745, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\DotNetZip.1.13.8\lib\net40\DotNetZip.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Microsoft.Win32.TaskScheduler, Version=2.8.20.0, Culture=neutral, PublicKeyToken=c416bc1b32d97233, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\TaskScheduler.2.8.20\lib\net40\Microsoft.Win32.TaskScheduler.dll</HintPath> | ||
</Reference> | ||
<Reference Include="PresentationCore" /> | ||
<Reference Include="PresentationFramework" /> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Drawing" /> | ||
<Reference Include="System.Xaml" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="WindowsBase" /> | ||
</ItemGroup> | ||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net5.0-windows</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<UseWPF>true</UseWPF> | ||
<Version>5.0.0.0</Version> | ||
<Authors>Ceiridge</Authors> | ||
<Company /> | ||
<Product>Chromium Developer Extension Warning Patcher</Product> | ||
<Description>Patches Chromium and disables the developer extension warning among others</Description> | ||
<Copyright>GNU General Public License 3, Ceiridge</Copyright> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<PackageProjectUrl>https://github.com/Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher</RepositoryUrl> | ||
|
||
<DisableWinExeOutputInference>true</DisableWinExeOutputInference> | ||
<EnableDefaultApplicationDefinition>false</EnableDefaultApplicationDefinition> | ||
<StartupObject>ChromeDevExtWarningPatcher.MainClass</StartupObject> | ||
<ApplicationManifest>app.manifest</ApplicationManifest> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="CommandLineOptions.cs" /> | ||
<Compile Include="CustomCheckBox.cs" /> | ||
<Compile Include="InstallationFinder\Defaults\CustomPath.cs" /> | ||
<Compile Include="InstallationFinder\Defaults\Yandex.cs" /> | ||
<Compile Include="InstallationFinder\InstallationPaths.cs" /> | ||
<Compile Include="PatcherInstaller.cs" /> | ||
<Compile Include="Patches\BytePatch.cs" /> | ||
<Compile Include="InstallationFinder\Defaults\Brave.cs" /> | ||
<Compile Include="InstallationFinder\Defaults\Chrome.cs" /> | ||
<Compile Include="InstallationFinder\Defaults\Edge.cs" /> | ||
<Compile Include="InstallationFinder\Installation.cs" /> | ||
<Compile Include="InstallationFinder\InstallationManager.cs" /> | ||
<Compile Include="PatcherGui.xaml.cs"> | ||
<DependentUpon>PatcherGui.xaml</DependentUpon> | ||
</Compile> | ||
<Compile Include="Patches\BytePatchManager.cs" /> | ||
<Compile Include="Patches\BytePatchPattern.cs" /> | ||
<Compile Include="Program.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="Properties\Resources.Designer.cs"> | ||
<AutoGen>True</AutoGen> | ||
<DesignTime>True</DesignTime> | ||
<DependentUpon>Resources.resx</DependentUpon> | ||
</Compile> | ||
<None Include="..\LICENSE"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="app.config" /> | ||
<None Include="app.manifest" /> | ||
<None Include="ChromeDevExtWarningPatcher_TemporaryKey.pfx" /> | ||
<None Include="packages.config" /> | ||
<None Include="Resources\ChromeDllInjector.zip" /> | ||
<PackageReference Include="CommandLineParser" Version="2.8.0" /> | ||
<PackageReference Include="MaterialDesignThemes" Version="4.0.0" /> | ||
<PackageReference Include="System.Drawing.Common" Version="5.0.2" /> | ||
<PackageReference Include="TaskScheduler" Version="2.9.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> | ||
<Visible>False</Visible> | ||
<ProductName>.NET Framework 3.5 SP1</ProductName> | ||
<Install>false</Install> | ||
</BootstrapperPackage> | ||
<Compile Update="Properties\Resources.Designer.cs"> | ||
<DesignTime>True</DesignTime> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>Resources.resx</DependentUpon> | ||
</Compile> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Page Include="PatcherGui.xaml"> | ||
<SubType>Designer</SubType> | ||
<Generator>MSBuild:Compile</Generator> | ||
</Page> | ||
<EmbeddedResource Update="Properties\Resources.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\lib\commandlineparser_commandline\src\CommandLine\CommandLine.csproj"> | ||
<Project>{29d94f79-97b1-4801-8a65-4a8becbf2d46}</Project> | ||
<Name>CommandLine</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="Properties\Resources.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> | ||
<SubType>Designer</SubType> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<PropertyGroup> | ||
<PostBuildEvent>cmd.exe /c ..\..\..\signall.bat</PostBuildEvent> | ||
</PropertyGroup> | ||
</Project> | ||
|
||
<Target Name="PostBuild" AfterTargets="PostBuildEvent"> | ||
<Exec Command="cmd.exe /c ..\signall.bat" /> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
using CommandLine; | ||
using System.Collections.Generic; | ||
|
||
namespace ChromeDevExtWarningPatcher { | ||
public class CommandLineOptions { | ||
[Option("groups", Required = false, HelpText = "Set what patch groups you want to use. See patterns.xml to get the group ids (comma-separated: 0,1,2,etc.)", Separator = ',')] | ||
public IEnumerable<int> Groups { get; set; } | ||
|
||
[Option('w', "noWait", Required = false, HelpText = "Disable the almost-pointless wait after finishing")] | ||
public bool NoWait { get; set; } | ||
|
||
[Option("customPath", Required = false, HelpText = "Instead of automatically detecting and patching all chrome.dll files, define a custom Application-folder path (see README) (string in quotes is recommended)")] | ||
public string CustomPath { get; set; } | ||
} | ||
} | ||
using System.Collections.Generic; | ||
using CommandLine; | ||
|
||
namespace ChromeDevExtWarningPatcher { | ||
public class CommandLineOptions { | ||
[Option("groups", Required = false, HelpText = "Set what patch groups you want to use. See patterns.xml to get the group ids (comma-separated: 0,1,2,etc.)", Separator = ',')] | ||
public IEnumerable<int> Groups { get; set; } = new List<int>(); | ||
|
||
[Option('w', "noWait", Required = false, HelpText = "Disable the almost-pointless wait after finishing")] | ||
public bool NoWait { get; set; } | ||
|
||
[Option("customPath", Required = false, HelpText = "Instead of automatically detecting and patching all chrome.dll files, define a custom Application-folder path (see README) (string in quotes is recommended)")] | ||
public string? CustomPath { get; set; } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
ChromeDevExtWarningPatcher/ComponentModels/InstallationElement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using ChromeDevExtWarningPatcher.InstallationFinder; | ||
|
||
namespace ChromeDevExtWarningPatcher.ComponentModels { | ||
public class InstallationElement : SelectionListElement { | ||
public InstallationPaths Paths { get; set; } | ||
|
||
public InstallationElement(string name, InstallationPaths paths) : base(name) { | ||
this.Paths = paths; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace ChromeDevExtWarningPatcher.ComponentModels { | ||
public class MainModel { | ||
public SelectionListModel BrowserListModel { get; set; } = new SelectionListModel(); | ||
public SelectionListModel PatchListModel { get; set; } = new SelectionListModel(); | ||
} | ||
} |
Oops, something went wrong.