Skip to content

Commit

Permalink
Fix: Patterns for Chrome 90
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceiridge committed Apr 17, 2021
1 parent df15fd0 commit c29eaa8
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFramework>net5.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<Version>5.0.0.0</Version>
<Version>5.1.0.0</Version>
<Authors>Ceiridge</Authors>
<Company />
<Product>Chromium Developer Extension Warning Patcher</Product>
Expand Down
2 changes: 1 addition & 1 deletion ChromeDllInjector/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.0.0.0")]
[assembly: AssemblyVersion("5.1.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
2 changes: 1 addition & 1 deletion ChromeDllInjectorBuildZipper/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.0.0.0")]
[assembly: AssemblyVersion("5.1.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
4 changes: 2 additions & 2 deletions ChromePatcherDll/ChromePatcherDll.rc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ END

VS_VERSION_INFO VERSIONINFO
FILEVERSION 5,0,0,0
PRODUCTVERSION 5,0,0,0
PRODUCTVERSION 5,1,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -74,7 +74,7 @@ BEGIN
VALUE "LegalCopyright", "GNU General Public License 3, Ceiridge"
VALUE "OriginalFilename", "ChromePatcherDll.dll"
VALUE "ProductName", "Chromium Developer Extension Warning Patcher"
VALUE "ProductVersion", "5.0.0.0"
VALUE "ProductVersion", "5.1.0.0"
END
END
BLOCK "VarFileInfo"
Expand Down
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
# Disable Chromium's and Chrome's Developer Mode Extension Warning Popup & Elision WWW/HTTPS Hiding & Debugging Extension Popup
**Download** it in the [release section](https://github.com/Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher/releases). The patterns and patches auto-update with the `patterns.xml`. The [.NET 5 Desktop Runtime](https://dotnet.microsoft.com/download/dotnet/5.0/runtime) is required.
**Download** it in the [release section](https://github.com/Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher/releases). The [.NET 5 Desktop Runtime](https://dotnet.microsoft.com/download/dotnet/5.0/runtime) is required. All patterns and patches auto-update with the `patterns.xml` on every install.

## Supported browsers
See below for the custom paths (commandline option).
```javascript
(✓ represents fully supported and tested browsers)
- All x64 bit Chromium-based browsers, including:
(✓ represents mostly supported and tested browsers)
All x64 bit Chromium-based browsers, including:
- Chrome ✓
- Chromium
- Brave ✓
- Chromium ✓
- Edge ✓
- Brave ✓
- Ungoogled Chromium ?
- Opera ?
- Yandex Browser
- Vivaldi
- Blisk
- Colibri
- Epic Browser
- Iron Browser
- Ungoogled Chromium ?
```
## Gui Screenshot
![Gui Screenshot](https://raw.githubusercontent.com/Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher/master/media/guiscreenshot.png)
## Commandline Options
All commandline options are **optional** and not required. If none are given, the gui will start. **Warning**: The command line cannot uninstall the entire patcher and if you run it with customPath, all other installations will be removed!
All commandline options are **optional** and not required. If none are given, the gui will start. **Warning**: The inferior command line cannot uninstall the entire patcher and if you run it with customPath, all other installations will be removed!
```
ChromeDevExtWarningPatcher.exe
Expand All @@ -45,10 +46,10 @@ Chrome (default): "C:\Program Files (x86)\Google\Chrome\Application"
Brave: "C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application"
Edge: "C:\Program Files (x86)\Microsoft\Edge\Application"

Remember: The path always needs to include the latest version folder of the browser (e. g. 83.0.1123.123).
Create a new issue with a path, if you want to contribute to this list.
Remember: The folder of the path always needs to include the latest version folder of the browser (e. g. 83.0.1123.123).
(Create a new issue with a path, if you want to contribute to this list.)
```
Find more [here](https://github.com/Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher/tree/master/ChromeDevExtWarningPatcher/InstallationFinder/Defaults).
Find more paths [here](https://github.com/Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher/tree/master/ChromeDevExtWarningPatcher/InstallationFinder/Defaults).

## What can it patch

Expand Down Expand Up @@ -78,6 +79,6 @@ Chrome-Developer-Mode-Extension-Warning-Patcher is released into the public doma

Disclaimer: This repository and the used names "Chrome", "Chromium", "Edge" in this project are not affiliated with or endorsed by Google LLC, Microsoft, The Chromium Project, Microsoft Edge, Google Chrome or other third parties. This repository and the used names "Chrome", "Chromium", "Edge" are also not affiliated with any existing trademarks.

**No code was copied** or used from any other browser in this repository. Chromium is licensed under the open source BSD License.
No code was copied or used from any other browser in this repository. Chromium is licensed under the open source BSD License.

This repository does not infringe any copyright of proprietary browsers, as it only patches bytes on the end user's computer, without having any copyright-protected code or text included in this repository.
12 changes: 7 additions & 5 deletions patterns.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
Normally, I prefer JSON over XML, but C# already has XML parsing built-in, so no extra library is needed.
Create a new issue if a pattern stops working with any browser.
New method: Debug Chrome in WinDBG, download the respective chrome.dll.pdb and load it for the chrome.dll module. Then use x /D /f chrome_**!*FUNCTION_NAME* to search for functions. Note down the offset and find it in a disassembler to make a pattern/signature.
-->

<Defaults version="4.5">
<Defaults version="5.1">
<Patterns>
<Pattern name="Remove Extension Warning">
<!-- ShouldIncludeExtension; "ProxyOverriddenBubble.UserSelection" 2nd function in the vtable -->
Expand All @@ -22,16 +24,16 @@

<Pattern name="Remove Debug Warning">
<!-- MaybeAddInfoBar; "MaybeAddInfoBar" in the function -->
<BytePattern>41 57 41 56 41 55 41 54 56 57 53 48 83 EC ? 48 8B 05 ? ? ? ? 48 31 E0 48 89 44 24 ? 80 79 ? ? 0F 85 ? ? ? ? 48 89 CE 48 83 C2 ?</BytePattern> <!-- Chr 84 --> <!-- Not working anymore -->
<BytePattern>41 57 41 56 41 55 41 54 56 57 53 48 83 ec ? 48 8b 05 ? ? ? ? 48 31 e0 48 89 44 ? ? 80 79 ? ? 0f 85 ? ? ? ? 49 89 cd 48 83 c2 ? 48 8d 05 ? ? ? ? 48 89 d1 48 89 c2 e8 ? ? ? ? 48 8d 78 ? 48 85 c0 48 0f 44 f8 49 8b 55 ? 48 85 d2 74 ? 49 8d 45 ? 48 89 c1</BytePattern> <!-- Chr 90, only working for Chrome -->

<BytePattern>41 57 41 56 56 57 53 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 31 E0 48 89 84 24 ? ? ? ? 80 79 ? ? 74 ? 48 8B 8C 24 ? ? ? ? 48 31 E1 E8 ? ? ? ? 90 48 81 C4 ? ? ? ? 5B 5F 5E 41 5E 41 5F C3 48 89 CE 48 83 C2 ?</BytePattern> <!-- Edg 84 -->
</Pattern>

<Pattern name="Remove Elision">
<!-- ShouldPreventElision; "jknemblkbdhdcpllfgbfekkdciegfboi" or "omnibox.prevent_url_elisions" in the function or "https://support.google.com/chrome/?p=unauthenticated" 3rd function in the vtable OR IN EDGE: "https://to-be-replaced.invalid/chrome/?p=unauthenticated" or "https://permanently-removed.invalid/chrome/?p=unauthenticated" -->
<BytePattern>48 83 EC ? E8 ? ? ? ? 85 C0 0F 95 C0 48 83 C4 ? C3 ? ? ? ? ? ? ? ? ? ? ? ? ? 41 56</BytePattern> <!-- Chr 89 -->
<!-- ShouldPreventElision/GetElisionConfig; "jknemblkbdhdcpllfgbfekkdciegfboi" or "omnibox.prevent_url_elisions" in the function or "https://support.google.com/chrome/?p=unauthenticated" 3rd function in the vtable OR IN EDGE: "https://to-be-replaced.invalid/chrome/?p=unauthenticated" or "https://permanently-removed.invalid/chrome/?p=unauthenticated" -->
<BytePattern>41 56 56 57 53 48 83 ec ? 48 8b 05 ? ? ? ? 48 31 e0 48 89 44 ? ? 48 8b 01 ff 90 ? ? ? ? 31 ff 48 85 c0 0f 84 ? ? ? ? 4C 8b b0 ? ? ? ? 4D 85 f6 0f 84</BytePattern> <!-- Chr 90, not working for Brave/Edge -->

<BytePattern>56 48 83 EC ? 48 89 CE 48 8D 0D ? ? ? ? 31 D2 E8 ? ? ? ? 84 C0 75 ? 48 89 F1</BytePattern> <!-- Edg 84 -->
<BytePattern>56 48 83 EC ? 48 89 CE 48 8D 0D ? ? ? ? 31 D2 E8 ? ? ? ? 84 C0 75 ? 48 89 F1</BytePattern> <!-- Edg 84 (stopped working, Edge seems to have no Elision anymore anyway) -->
</Pattern>

<Pattern name="Remove Crash Warning">
Expand Down

0 comments on commit c29eaa8

Please sign in to comment.