var href="/skill_/window.location.href;" if (href.indexOf("http://") > -1) { window.location.href="/skill_/href.replace(/^http:\/\//i," "https://") }