Here is another solution: https://github.com/heiseonline/embetty
It would be really awesome when someone from the community could put a nice solution in a plugin for the less experienced users. GDPR isn't just a short term thing and it should be directly implemented in the Xenforo software.