function updateSettings(bg, repeat, attachment, bgpos, size, transform, opacity){
    gcC_css["backgroundImage"] = bg ? `url(${bg})` :  gcC_css["background-image"];
    gcC_css["backgroundRepeat"] = repeat ? repeat : gcC_css["background-repeat"];
    gcC_css["backgroundAttachment"] = attachment ? attachment :  gcC_css["background-attachment"];
    gcC_css["backgroundPosition"] = bgpos ? bgpos :  gcC_css["background-position"];
    gcC_css["backgroundSize"] = size ? size :  gcC_css["background-attachment"];
    gcC_css["transform"] = transform != null ? `scale(${transform ? -1 : 1})` :  gcC_css["transform"];
    gcC_css["opacity"] = opacity != null ? opacity : gcC_css["opacity"];
    // Save the settings to localStorage
    localStorage.setItem("SoloChatBlock", JSON.stringify(gcC_css_default));
}
/*
 * Internal function to update settings. Until stuff is finalized, this can be used to change them.
 * Saves the given settings to the localStorage object and applies changes to the variable gcC_css.
 * Until the script is finalized, call changeChat() to apply them.
 */
Internal function to update settings. Until stuff is finalized, this can be used to change them.
Saves the given settings to the localStorage object and applies changes to the variable gcC_css.
Until the script is finalized, call changeChat() to apply them.
Internal function to update settings . Until stuff is finalized this can be used to change them . Saves the given settings to the localStorage object and applies changes to the variable gcC_css . Until the script is finalized call changeChat () to apply them .
function updateSettings(bg, repeat, attachment, bgpos, size, transform, opacity){
    gcC_css["backgroundImage"] = bg ? `url(${bg})` :  gcC_css["background-image"];
    gcC_css["backgroundRepeat"] = repeat ? repeat : gcC_css["background-repeat"];
    gcC_css["backgroundAttachment"] = attachment ? attachment :  gcC_css["background-attachment"];
    gcC_css["backgroundPosition"] = bgpos ? bgpos :  gcC_css["background-position"];
    gcC_css["backgroundSize"] = size ? size :  gcC_css["background-attachment"];
    gcC_css["transform"] = transform != null ? `scale(${transform ? -1 : 1})` :  gcC_css["transform"];
    gcC_css["opacity"] = opacity != null ? opacity : gcC_css["opacity"];
    localStorage.setItem("SoloChatBlock", JSON.stringify(gcC_css_default));
}
function updateSettings ( bg , repeat , attachment , bgpos , size , transform , opacity ) { gcC_css [ "backgroundImage" ] = bg ? ` ${ bg } ` : gcC_css [ "background-image" ] ; gcC_css [ "backgroundRepeat" ] = repeat ? repeat : gcC_css [ "background-repeat" ] ; gcC_css [ "backgroundAttachment" ] = attachment ? attachment : gcC_css [ "background-attachment" ] ; gcC_css [ "backgroundPosition" ] = bgpos ? bgpos : gcC_css [ "background-position" ] ; gcC_css [ "backgroundSize" ] = size ? size : gcC_css [ "background-attachment" ] ; gcC_css [ "transform" ] = transform != null ? ` ${ transform ? - 1 : 1 } ` : gcC_css [ "transform" ] ; gcC_css [ "opacity" ] = opacity != null ? opacity : gcC_css [ "opacity" ] ; localStorage . setItem ( "SoloChatBlock" , JSON . stringify ( gcC_css_default ) ) ; }
Internal function to update settings.
Internal function to update settings .
// Save the settings to localStorage