function changeChat(){
    if(!settings){
        return;
    }
    updateBlockLive = true;
    old_gcC_css = $("#gcContent").css(["backgroundImage", "backgroundRepeat", "backgroundAttachment", "backgroundPosition", "backgroundSize", "transform", "opacity"]);
    // If it's not set yet, create the object in localStorage using the defaults. Hail persistence!
    !settings.getItem("SoloChatBlock") ? localStorage.setItem("SoloChatBlock", JSON.stringify(gcC_css_default)) : null;
    // Load in whatever the last saved ssettings were, or the defaults if we just set them
    gcC_css = JSON.parse(settings.getItem("SoloChatBlock"));
    // Apply the CSS and hide the chat
    $("#gcContent").css(gcC_css);
    $("#gcChatContent").css("display", "none");
}
/*
 * Function that actually replaces the chatbox with an image.
 * Loads in the last saved settings, or the default if nothing was set.
 */
Function that actually replaces the chatbox with an image.
Loads in the last saved settings, or the default if nothing was set.
Function that actually replaces the chatbox with an image . Loads in the last saved settings or the default if nothing was set .
function changeChat(){
    if(!settings){
        return;
    }
    updateBlockLive = true;
    old_gcC_css = $("#gcContent").css(["backgroundImage", "backgroundRepeat", "backgroundAttachment", "backgroundPosition", "backgroundSize", "transform", "opacity"]);
    !settings.getItem("SoloChatBlock") ? localStorage.setItem("SoloChatBlock", JSON.stringify(gcC_css_default)) : null;
    gcC_css = JSON.parse(settings.getItem("SoloChatBlock"));
    $("#gcContent").css(gcC_css);
    $("#gcChatContent").css("display", "none");
}
function changeChat ( ) { if ( ! settings ) { return ; } updateBlockLive = true ; old_gcC_css = $ ( "#gcContent" ) . css ( [ "backgroundImage" , "backgroundRepeat" , "backgroundAttachment" , "backgroundPosition" , "backgroundSize" , "transform" , "opacity" ] ) ; ! settings . getItem ( "SoloChatBlock" ) ? localStorage . setItem ( "SoloChatBlock" , JSON . stringify ( gcC_css_default ) ) : null ; gcC_css = JSON . parse ( settings . getItem ( "SoloChatBlock" ) ) ; $ ( "#gcContent" ) . css ( gcC_css ) ; $ ( "#gcChatContent" ) . css ( "display" , "none" ) ; }
Function that actually replaces the chatbox with an image.
Function that actually replaces the chatbox with an image .
// If it's not set yet, create the object in localStorage using the defaults. Hail persistence! // Load in whatever the last saved ssettings were, or the defaults if we just set them // Apply the CSS and hide the chat