Xposed module: Enable background playback in YouTube
Simply grab the module from the Xposed Module Repository.
To build from source on your own device, feel free to clone this repository and use Gradle. You can read more about how to build locally on Android Developers if you are interested.