I couldn't use headless Chrome with --user-data-dir
parameter.
After some research I saw that it's happening by design in order to prevent bypassing Google's reCAPTCHA.
Since Chromium is open source, I would like to recompile it in order to support my need (inspired by this comment).
Where do I start?