Hi.
It may make the most sense to chalk this up to being a limited use hack with an approximate 60% chance of usability.
IME, make that ~20% if the device is really designed to be battery only.
And even then, some of the 20% may well fall into "I can't hear it so the noise/hum/interference isn't there" category
.
There are very good reasons to design and manufacture effect pedals to be battery only, and usually any of those reasons automatically mean that there's very little or no chance to use that design free from noise or other problems with a wall- or a cord wart.
I'm relatively young, so the battery eating effect pedals were probably even a bigger problem before I got into 'em in ~mid 80's, and there hasn't been a viable solution to that inconvenience as far as I know.
Other than rechargeable battery packs that is.
The problem with battery pack approach is the fact that any relatively modern battery bank has a smps section for multiple reasons, or at least some "smartness", so those can't be used with audio unless designed to.
And then the cost will be relatively high, prohibitive for most of us.
9V rechargeable batteries can't be used, because the chemistry is different with different technologies, and so is the (cell) voltage.
Perhaps some day a breakthrough is made, and we musicians can have reliable, high capacity 9V batteries to power our pedals with, but I for one wouldn't get my hopes up for that to happen.
Regards,
Sam