-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b64ae81
commit 52cc57c
Showing
6 changed files
with
178 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if(window.location.search.includes("6LdIFr0ZAAAAAO3vz0O0OQrtAefzdJcWQM2TMYQH")) { | ||
console.log("[SAGE] [RECAPTCHA] init"); | ||
setInterval(() => { | ||
if(document.querySelector(".recaptcha-checkbox-expired")) { | ||
console.log("[SAGE] [RECAPTCHA] detected stuck recaptcha; reloading"); | ||
window.location.reload(); | ||
} | ||
}, 500); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
if(window.location.hash === "#sage") { | ||
console.log("[SAGE] [STEAM] init"); | ||
setTimeout(() => { | ||
// the setTimeout makes sure the DOM is setup and we can actually add the css | ||
const css = document.createElement("style"); | ||
css.innerText = `.section_title,.row_flex,.form_row:last-child,.responsive_header,#global_header,#footer,#footer_spacer{display:none !important;}.responsive_page_content,.responsive_page_template_content,.joinsteam_content_container{padding:0px !important;}#captcha_entry{position: fixed;top: 0;left: 0;height: 100vh;width: 100vw;display: flex;justify-content: center;align-items: center;}`; | ||
document.head.appendChild(css); | ||
}, 0); | ||
setInterval(() => { | ||
const token = document.getElementById("g-recaptcha-response"); | ||
if(token && token.value) { | ||
const gid = document.getElementById("captchagid").value; | ||
console.log("[SAGE] [STEAM] captcha solved", token.value); | ||
const origin = document.referrer ? new URL(document.referrer).origin : "https://sage.leodev.xyz"; | ||
document.location = `${origin}/gen#token=${token.value}&gid=${gid}`; | ||
}; | ||
}, 500); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters