TCW Chrome Ext - outdated snippets

//For dev.to bug where a highlight class adds a bg to the button's parent div

if (url.includes("dev.to")) {
    setTimeout(() => { //To account for delay from fetching disable from storage 
        var div = document.getElementsByClassName("saveCodeBtnDiv");
        for (i = 0; i < div.length; i++) {
            div[i].style.background = "white";
        }
    }, 50);
}
<!DOCTYPE html>
<html>

<head>
    <style>
        body {
            background: #f0f4f7;
            padding: 0 10px;
        }
        .row {
            margin-left: auto;
            margin-right: auto;
            display: flex;
        }
        .row>.form-col {
            width: 75%;
            background: white;
            border-radius: 12px;
            padding: 10px;
        }
        .row>.button-col {
            width: 25%;
        }
        .form-group {
            margin-bottom: 15px;
        }
        .form-group>label {
            font-size: .6rem;
            color: #9e9e9e;
        }
        .form-group>.input {
            border: 1px solid lightgray;
            border-radius: 5px;
            padding: 10px;
            width:96%;
        }
    </style>
</head>

<body>
    <header>
        <h1>Save Code Snippet</h1>
    </header>
    <div class="row">
        <div class="form-col">
            <div class="form-group">
                <label for="title">Title</label>
                <input name="title" type="text" id="title" class="input"
                    placeholder="What does this code do?" required value="">
            </div>
            <div class="form-group">
                <label for="code">Code</label>
                <textarea name="code" type="text" id="code" class="input"
                    placeholder="What does this code do?" required value=""></textarea>
            </div>
        </div>
        <div class="button-col">
            <p>btn here</p>
        </div> 
    </div>
</body>

</html>
    var xmlhttp = new XMLHttpRequest();
    xmlhttp.onreadystatechange = function () {
        if (xmlhttp.readyState == XMLHttpRequest.DONE) {   // XMLHttpRequest.DONE == 4
            if (xmlhttp.status == 200) {
                document.getElementById("myDiv").innerHTML = "";
                document.getElementById("myDiv").appendChild(buildList(xmlhttp.responseText));
            }
            else if (xmlhttp.status == 400) {
                alert('There was an error 400');
            }
            else {
                alert('something else other than 200 was returned');
            }
        }
    };
    
    xmlhttp.open("GET", "https://www.thiscodeworks.com/user/" + userID + "/extension", true);
    xmlhttp.send();
    

Similiar Collections