diff --git a/src/plugins/experiments/index.tsx b/src/plugins/experiments/index.tsx index e916e158..9b6a3377 100644 --- a/src/plugins/experiments/index.tsx +++ b/src/plugins/experiments/index.tsx @@ -80,7 +80,7 @@ export default definePlugin({ }, // Change top right chat toolbar button from the help one to the dev one { - find: '"M9 3v18"', + find: '?"BACK_FORWARD_NAVIGATION":', replacement: { match: /hasBugReporterAccess:(\i)/, replace: "_hasBugReporterAccess:$1=true" diff --git a/src/plugins/vencordToolbox/index.tsx b/src/plugins/vencordToolbox/index.tsx index 1bc97cf5..5a7b8cad 100644 --- a/src/plugins/vencordToolbox/index.tsx +++ b/src/plugins/vencordToolbox/index.tsx @@ -129,9 +129,10 @@ export default definePlugin({ patches: [ { - find: '"M9 3v18"', + find: '?"BACK_FORWARD_NAVIGATION":', replacement: { - match: /focusSectionProps:"HELP".{0,20},className:(\i\.button)\}\),/, + // TODO: (?:\.button) is for stable compat and should be removed soon:tm: + match: /focusSectionProps:"HELP".{0,20},className:(\i(?:\.button)?)\}\),/, replace: "$& $self.renderVencordPopoutButton($1)," } }