Finely chop green onions and onions.
Crack the eggs into a bowl and whisk well.
Heat cooking oil in a pan and stir-fry green onions to make scallion oil.
Add onions and stir-fry.
Add rice and stir-fry evenly.
Pour in the eggs and quickly mix while stir-frying.
Season with soy sauce and salt.
Transfer to a bowl and serve.