Drain the tofu with a paper towel and cut it into small cubes.
Slice the green onion and finely chop the onion.
Heat cooking oil in a pan and sauté the green onion to release its aroma.
Beat the eggs and cook them in the pan, scrambling lightly, then set aside.
In the same pan, add the tofu and chopped onion, stir-frying until golden brown.
Add rice and stir-fry together, then mix in barbecue sauce.
Return the cooked egg to the pan and stir-fry until well combined.
Season with salt and pepper to taste, then serve.