Skip to content

Commit

Permalink
feat(plugins): add restore-devices plugin
Browse files Browse the repository at this point in the history
Co-authored-by: PalmDevs <[email protected]>
  • Loading branch information
nexpid and PalmDevs committed Jan 1, 2025
1 parent df43c77 commit 64fda3b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/plugins/restore-devices/index.ts
Original file line number Diff line number Diff line change
@@ -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,
)

0 comments on commit 64fda3b

Please sign in to comment.