Canary Fixes

This commit is contained in:
thororen1234 2024-11-03 03:15:59 -05:00
parent bfda6a5c26
commit 109a1508b6
27 changed files with 43 additions and 43 deletions

View file

@ -58,13 +58,13 @@ export default definePlugin({
replacement: {
// Find the Edit User Profile button and insert our custom button.
// A bit jank, but whatever
match: /,(.{11}\.Button,.{58}\.USER_SETTINGS_EDIT_USER_PROFILE}\))/,
replace: ",$self.insertScanQrButton($1)",
match: /,(.{0,10}\.Button.{0,50},children:.{0,50}}\))]/,
replace: ",$self.insertScanQrButton($1)]",
},
},
// Insert a Scan QR Code MenuItem in the Swith Accounts popout
{
find: ".SWITCH_ACCOUNTS_MANAGE_ACCOUNTS,",
find: 'id:"manage-accounts"',
replacement: {
match: /(id:"manage-accounts",.*?)}\)\)(,\i)/,
replace: "$1}),$self.ScanQrMenuItem)$2"