Triplanar mapping from Local Space - problem when scaling. How to make it work?

I have an idea. Why not use the object scale independently with this node?

image

or

image