Unlike the official App Store, where apps are vetted by Apple, these modified apps exist in a grey market. They are created by independent developers who inject code into the official YouTube app. Because these apps cannot be listed on the App Store, they are shared as .ipa files.
Ask below – someone in the thread may have tested it.