MiddleClickTweaks: Fix Patch. (#1199)
Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com>
This commit is contained in:
parent
d74f3fb537
commit
32209bb390
1 changed files with 1 additions and 1 deletions
|
|
@ -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;};"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue