diff --git a/src/plugins/restore-devices/index.ts b/src/plugins/restore-devices/index.ts new file mode 100644 index 0000000..a5b2a6d --- /dev/null +++ b/src/plugins/restore-devices/index.ts @@ -0,0 +1,21 @@ +import { registerPlugin } from '@revenge-mod/plugins/internals' + +registerPlugin( + { + name: 'Restore Devices Setting', + author: 'Palm', + description: 'Brings the Devices settings page back', + id: 'palmdevs.restore-devices-setting', + version: '1.0.0', + icon: 'LaptopPhoneIcon', + beforeAppRender({ patcher, revenge: { modules } }) { + const DevicesSetting = modules.findByFilePath<{ usePredicate(): boolean }, true>( + 'modules/main_tabs_v2/native/settings/definitions/DevicesSetting.tsx', + true, + ) + + patcher.instead(DevicesSetting!, 'usePredicate', () => true) + }, + }, + true, +)