Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb68883781 | ||
|
|
542b9f9dba |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
scripts/
|
||||
node_modules/
|
||||
node_modules/
|
||||
package/
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 2,
|
||||
"name": "Slop Farmer",
|
||||
"version": "0.4",
|
||||
"version": "0.4.1",
|
||||
|
||||
"author": "Jack Case",
|
||||
"description": "Crowd-source AI slop pages and domains",
|
||||
@@ -16,7 +16,7 @@
|
||||
"content_security_policy": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'; worker-src 'self' blob:",
|
||||
|
||||
"browser_action": {
|
||||
"default_icon": "icons/virus-slash.png",
|
||||
"default_icon": "icons/virus_black_32.png",
|
||||
"default_title": "Slop Farmer",
|
||||
"default_popup": "pages/action_popup.html",
|
||||
"default_area": "navbar",
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
<altcha-widget challengeurl="https://api.slopfarmer.jack-case.pro/altcha-challenge"></altcha-widget>
|
||||
<button id="signup-button">sign up</button>
|
||||
</form>
|
||||
<h2></h2>
|
||||
</div>
|
||||
|
||||
<div id="login" style="visibility: collapse;">
|
||||
|
||||
@@ -66,7 +66,7 @@ async function submit_signup_form() {
|
||||
|
||||
console.log(response)
|
||||
if (response.ok) {
|
||||
|
||||
popup_state.page_elements.get("signup_status").textContent = "check your email for a verification link from slopfarmer@jack-case.pro. It may be in your spam folder."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,6 +86,7 @@ async function initialize_popup() {
|
||||
const report_section = document.getElementById("report")
|
||||
|
||||
const signup_button = document.getElementById("signup-select") as HTMLButtonElement
|
||||
const signup_status = signup_section.querySelector("h2")
|
||||
const login_button = document.getElementById("login-select") as HTMLButtonElement
|
||||
const report_button = document.getElementById("report-button") as HTMLButtonElement
|
||||
const report_status = report_section.querySelector("h2")
|
||||
@@ -99,6 +100,7 @@ async function initialize_popup() {
|
||||
page_elements.set("login_form", login_form as HTMLElement)
|
||||
page_elements.set("login_status", login_status)
|
||||
page_elements.set("signup_form", signup_form as HTMLElement)
|
||||
page_elements.set("signup_status", signup_status)
|
||||
page_elements.set("report_button", report_button)
|
||||
page_elements.set("report_status", report_status)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user