I have not replaced the MAF sensor harness/wiring, but I have thrown $500 of parts at this problem so far.
Also, I replaced the entire cooling system (radiator, expansion tank, hoses, tstat, water pump) right after the occasional rough idle developed. That line of google searches led me to vacuum leaks and/or a dirty MAF.
I cleaned the MAF and cleaned the electrical connections prior to anything else so far.
P0344 is my current trouble code that is pointing me at those sensors and the VANOS solenoid
But what I think you are saying is “dude… $25 crosses this off of the possibility list.”
I hear you… ordering MAF harness that tomorrow.