wip
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
|
||||
<script async defer src="https://cdn.jsdelivr.net/gh/altcha-org/altcha/dist/altcha.min.js" type="module"></script>
|
||||
<title>Slop Farmer</title>
|
||||
</head>
|
||||
<body>
|
||||
@@ -11,5 +12,6 @@
|
||||
<input type="email" name="username" required />
|
||||
<label for="password">password:</label>
|
||||
<input type="password" name="password" required />
|
||||
<altcha-widget challengeurl="SERVER_URL/challenge"></altcha-widget>
|
||||
</form>
|
||||
</body>
|
||||
@@ -115,6 +115,9 @@ async function check_remote_slop(urls) {
|
||||
const check_url = new URL("check", API_URL)
|
||||
const request = new Request(check_url, {method: "POST", body: JSON.stringify({slop_urls: urls})})
|
||||
const response = await fetch(request)
|
||||
let domain_objects = await response.json()
|
||||
domain_objects.foreach((domain) => {insert_slop(domain, "/")})
|
||||
return domain_objects
|
||||
}
|
||||
|
||||
async function on_button_clicked_handler(tab) {
|
||||
|
||||
Reference in New Issue
Block a user