If you're using a modified YouTube version, it's against YouTube's Terms of Service. But don't worry, the legal repercussions are often on developers rather than on users. There are still many more modified YouTube options like the Internet e YouTube Vanced. Google may crack down on all these YouTube alternative clients in the future.