This commit is contained in:
Jack Case
2025-10-20 19:16:10 +00:00
parent 8f9cb2c20a
commit a4c6ac4aa7
2 changed files with 5 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> --> <!-- <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> <title>Slop Farmer</title>
</head> </head>
<body> <body>
@@ -11,5 +12,6 @@
<input type="email" name="username" required /> <input type="email" name="username" required />
<label for="password">password:</label> <label for="password">password:</label>
<input type="password" name="password" required /> <input type="password" name="password" required />
<altcha-widget challengeurl="SERVER_URL/challenge"></altcha-widget>
</form> </form>
</body> </body>

View File

@@ -115,6 +115,9 @@ async function check_remote_slop(urls) {
const check_url = new URL("check", API_URL) const check_url = new URL("check", API_URL)
const request = new Request(check_url, {method: "POST", body: JSON.stringify({slop_urls: urls})}) const request = new Request(check_url, {method: "POST", body: JSON.stringify({slop_urls: urls})})
const response = await fetch(request) 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) { async function on_button_clicked_handler(tab) {