Finely chop the onion and green onion.
Add cooking oil to a pan and sauté the onion and green onion.
Add the soft tofu and gently mash it with a spatula while sautéing.
Beat the eggs and add them in, mixing everything together.
Season with soy sauce, salt, and pepper.
Spoon the sauce over rice to finish.