This commit is contained in:
thororen1234 2024-11-03 12:05:09 -05:00
parent c2287a1d59
commit fe69a03e7c
26 changed files with 42 additions and 42 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: /,(.{0,10}\.Button.{0,50},children:.{0,50}}\))]/,
replace: ",$self.insertScanQrButton($1)]",
match: /,(.{11}\.Button,.{58}\.USER_SETTINGS_EDIT_USER_PROFILE}\))/,
replace: ",$self.insertScanQrButton($1)",
},
},
// Insert a Scan QR Code MenuItem in the Swith Accounts popout
{
find: 'id:"manage-accounts"',
find: "#{intl::SWITCH_ACCOUNTS_MANAGE_ACCOUNTS},",
replacement: {
match: /(id:"manage-accounts",.*?)}\)\)(,\i)/,
replace: "$1}),$self.ScanQrMenuItem)$2"