I am working on a site with mixed content (http/https) when trying to work on an HTTPS page the admin js is not loaded so image inputs on custom content cannot use the remove option nad there is no other way to update the fiel as the "upload" is hidden, admin menu will not load.

what settings can i implement to make urls schemeless/protocoless?

I have tried changing the base url as well as code, see below, nothing has worked so far

function[ theme/module]_process_html(&$vars){
    foreach (array('head', 'styles', 'scripts') as $replace) {
        if (!isset($vars[$replace])) {
            continue;
        }
        $vars[$replace] = preg_replace('/(src|href|@import )(url\(|=)(")http(s?):/', '$1$2$3', $vars[$replace]);
    }
}