After hours of searching for methods, I was not able to find any ways that would simply work.
The only way I could find was Setting the "pageLoadingStrategy" capability value to "eager", and then immediately executing some javascript so it could change the navigator.webdriver value before the page was rendered. But then you need to change the value after every request and it's not really reliable.
How do you set this before executing any requests? Is there a flag?