MiddleClickTweaks: Fix Patch. (#1199)

Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com>
This commit is contained in:
Etorix 2026-06-23 21:10:28 -07:00 • committed by GitHub
parent d74f3fb537
commit 32209bb390
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,7 +103,7 @@ export default definePlugin({
// Detects paste events triggered by the "browser" outside of input fields.
find: 'document.addEventListener("paste",',
replacement: {
match: /(?<=getMigrationStatus\(\)\);.{0,50}\i\((\i)\)\{)/,
match: /(?<=\.getMigrationStatus\(\)\);.{0,50}\i\((\i)\)\{)/,
replace: "if($1.target.tagName===\"BUTTON\"||$self.isPastingDisabled(false)){$1.preventDefault?.();$1.stopPropagation?.();return;};"
}
},