Detect old FriendPage as ProfilePage if there is the new Home tab button activated. Not fail-safe regarding manual clicks, but for automated usage probably good enough. Couldn't test if the other FriendPage[1-4] pages are still ever used. If so, this might fail for the 4 special Tsums that got their own pages. But for most JP users this should fix the issue.
Detect old FriendPage as ProfilePage if there is the new Home tab button activated. Not fail-safe regarding manual clicks, but for automated usage probably good enough. Couldn't test if the other FriendPage[1-4] pages are still ever used. If so, this might fail for the 4 special Tsums that got their own pages. But for most JP users this should fix the issue.