Dice the tofu into small cubes.
Finely chop the green onion and onion.
Heat cooking oil in a pan and sauté the green onion and onion.
Add the tofu and stir-fry until golden brown.
Beat the eggs and pour into the pan, scrambling them.
Add the rice and mix well with the other ingredients while stir-frying.
Season with soy sauce and salt to taste.
Serve in a bowl and top with pepper or sesame oil if desired.