Topic: [Moddiction] CPanel Proxy Fix
So after some research I have looked into how I can run YouHosting with a proxy server such as CloudFlare. This is a simple little JQuery snippet that you can add to your CPanel theme and it will replace all main-hosting.com text with your own domain. If you find any errors let feel free to fix them. This is a very hacky method and there is not much I can do to make it better. I've kinda abandoned this so dont expect much updates from me on this anymore.
var htmlString = $('body').html().toString();
var index = htmlString.indexOf("main-hosting.com");
if (index != -1)$("body").html($("body").html().replace(/main-hosting.com/g,'YourDomain.com'));
Be sure to replace YouDomain.com with your domain. Example: piehost.com You have to add this code bellow to all your CPanel layouts. You must add it at the end of the layout right above </body>. Make sure you have JQuery enabled!