Skip to content

Commit

Permalink
Fix #94 (webRequestBlocking Chr 108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceiridge committed Mar 3, 2023
1 parent 4dcfe7f commit 23251cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions patterns.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@

<Pattern name="Enable webRequestBlocking for MV3">
<!-- https://source.chromium.org/chromium/chromium/src/+/main:out/Debug/gen/extensions/common/api/permission_features.cc;l=848;drc=f7c258b9edbcebc3fb62f1df4af9d6afd3133d52 https://github.com/Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher/issues/82#issuecomment-1248272748 -->
<BytePattern>48 ? ? E8 ? ? ? ? 40 88 ? ? ? ? ? 44 89 ? ? ? ? ? 48 ? ? ? 48 ? ? ? ? ? ? 4C ? ? ? ? ? ? E8 ? ? ? ? 40 88 ? ? ? ? ? 41 BD 02 00 00 00 44 89 ? ? ? ? ? B9 B8 01 00 00 E8</BytePattern> <!-- Chr 108 New -->
<BytePattern>48 ? ? ? ? ? ? 4C ? ? ? ? ? ? 48 89 F9 E8 ? ? ? ? 40 ? ? ? ? ? ? C7 83 ? ? ? ? 02 00 00 00 B9 ? ? ? ? E8 ? ? ? ? 48 85 C0</BytePattern> <!-- Chr 110 New, now uses long mov instruction -->

<BytePattern>48 ? ? E8 ? ? ? ? 40 88 ? ? ? ? ? 44 89 ? ? ? ? ? 48 ? ? ? 48 ? ? ? ? ? ? 4C ? ? ? ? ? ? E8 ? ? ? ? 40 88 ? ? ? ? ? 41 BD 02 00 00 00 44 89 ? ? ? ? ? B9 B8 01 00 00 E8</BytePattern> <!-- Chr 108 -->

<BytePattern>44 48 B7 ? ? ? ? 44 89 AF ? ? ? ? 48 8D 05 ? ? ? ? 48 8D ? ? ? ? ? ? 48 89 ? 48 C7 42 ? 02 00 00 00 48 89 F9 E8 ? ? ? ? 44 ? ? ? ? ? ? BD 02 00 00 00 89 AF ? ? ? ? B9</BytePattern>
</Pattern>
Expand Down Expand Up @@ -153,7 +155,7 @@

<Patch pattern="Enable webRequestBlocking for MV3" group="6">
<PatchData type="x64" orig="0x02" patch="0x03" sig="false">
<Offset>0x36</Offset> <!-- Offset to get to mov r13d, 2 -->
<Offset>0x23</Offset> <!-- Offset to get to mov dword ptr ds:[rbx+0x144], 0x2 -->
</PatchData>
</Patch>

Expand Down

0 comments on commit 23251cc

Please sign in to comment.