I kinda wanted to start a thread on this topic.
I own a 97 though, I think they are a bit different.
I got fault codes leading to a diagnostic of a bad MAF sensor.
3 new ones and a used one were tried with no success. They all ran far worse than the original one I have (which is also cracked - the housing that is).
I got a theory though on why all the other ones were "bad".
Quick story for background.
A number of years ago I wanted to switch my MAF sensor for a 4Runner one at the advice of a couple of members here.
I got a new housing which could accommodate the 4Runner sensor and installed it.
I switched the wires around as instructed and fired the engine up. It ran badly. I got the original one back in and switched the wires back the way they should be.
Looking bad I think I know why it ran badly. I never adjusted the timing as those members stated I should do.
The idea was to make the engine a bit more responsive, not necessarily gain more power.
Fast forward a few years and I started having issues with the original MAF sensor.
I took it to different mechanics, one added an extra ground wire and it ran fine for a few months. Relapse. Took it to a different mechanic who cleaned it up. It ran fine for a few months. Relapse. Took it to another mechanic who said timing was wrong. Ran fine for a few months. Relapse. Took it again to a different mechanic who adjusted the timing yet again. Ran fine for a few months. Relapse, etc, etc.
After trying those 3 new sensors and the used one and failing to make the engine run smoothly, I came to the conclusion that the timing on my engine is set to run well with the bad MAF sensor I got.
Once a new sensor was installed nobody ever adjusted the timing.
So my original sensor could be faulty and running outside the normal parameters, but by adjusting the timing somehow it works (barely probably) within some normal parameters.
Long story for what I am about to say.
If you replace your MAF sensor, see if you can or should adjust the timing in case the new one runs worse than the original one.