Beat the eggs and set aside.
Finely chop the onion and green onion.
Heat cooking oil in a pan, then stir-fry the onion and green onion.
Add the rice and stir-fry evenly.
Add the soft tofu and stir-fry while breaking it up and mixing well.
Pour in the beaten eggs and quickly stir to cook.
Season with soy sauce and salt to taste.
Transfer the finished fried rice to a bowl.