  const url = $("url").value;
        if (!url.startsWith("http://") && !url.startsWith("https://")) {
          alert("Invalid url");
          return;
        }

        loading = true;
        $("report").toggleAttribute("disabled");
        $("report").setAttribute("aria-busy", "true");
        $("report").textContent = "";

        const res = await fetch("/api/report", {
          method: "POST",
          headers: {
            "Content-Type": "application/json",
          },
          body: JSON.str