136 lines
No EOL
8.1 KiB
HTML
136 lines
No EOL
8.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<title>nadeko.net Protection</title>
|
|
<meta content="text/html; charset=utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<!--<script src="{{captcha_frontend_js}}" async defer></script>-->
|
|
<style>
|
|
html {
|
|
background-color: #111111;
|
|
}
|
|
|
|
body {
|
|
color: aliceblue;
|
|
font-size: 1em;
|
|
margin: 0;
|
|
padding: 0;
|
|
text-align: center;
|
|
}
|
|
|
|
p {
|
|
margin: 5px;
|
|
font-family: 'Franklin Gothic Medium', sans-serif;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
margin: 5px;
|
|
font-family: 'Franklin Gothic Medium', sans-serif;
|
|
font-weight: lighter;
|
|
text-align: center;
|
|
}
|
|
|
|
a:link,
|
|
a:visited {
|
|
color: rgb(231, 196, 255);
|
|
text-decoration: none;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
padding-bottom: 1em;
|
|
color: rgb(184, 184, 184);
|
|
/* background-color: #f1f1f1; */
|
|
position: fixed;
|
|
width: 100%;
|
|
bottom: 0;
|
|
font-size: 1;
|
|
}
|
|
|
|
.header {
|
|
font-size: small;
|
|
margin: 0px;
|
|
width: max-content;
|
|
/* height: 200px; */
|
|
/* outline: dashed 2px white; */
|
|
/* Center child horizontally*/
|
|
display: flex;
|
|
flex: 2 1 auto;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
|
|
.content {
|
|
margin: 10px auto;
|
|
max-width: 90%;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
#mcaptcha__widget-container {
|
|
margin: 10px 0px;
|
|
height: 88px;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="content">
|
|
<h3>Verifying that you are not a bot/abuser</h3>
|
|
<h3>Verificando que no seas un bot/abusador</h3>
|
|
<form action="" method="POST" id="captcha-form">
|
|
<label data-mcaptcha_url="https://mcaptcha.nadeko.net/widget/?sitekey={{captcha_site_key}}"
|
|
for="mcaptcha__token" id="mcaptcha__token-label">
|
|
<p>Looks like you don't have javacript enabled, don't worry, you can still access this site following
|
|
this <a href="https://mcaptcha.org/docs/user-manual/how-to-mcaptcha-without-js/">instructions</a>
|
|
</p>
|
|
<p>Parece que no tienes javascript habilitado, no te preocupes, aun puedes acceder al sitio siguiendo
|
|
estas <a href="https://mcaptcha.org/docs/user-manual/how-to-mcaptcha-without-js/">instrucciones</a>
|
|
</p>
|
|
Token: <input type="text" name="mcaptcha__token" id="mcaptcha__token" />
|
|
</label>
|
|
<div id="mcaptcha__widget-container"></div>
|
|
<script>!function (e, t) { "object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.mcaptchaGlue = t() : e.mcaptchaGlue = t() }(self, (() => { return e = { 260: function (e) { var t; t = () => (() => { "use strict"; var e = {}; return { 166: function (e, t) { var n, i = this && this.__extends || (n = function (e, t) { return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (e, t) { e.__proto__ = t } || function (e, t) { for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]) }, n(e, t) }, function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null"); function i() { this.constructor = e } n(e, t), e.prototype = null === t ? Object.create(t) : (i.prototype = t.prototype, new i) }); Object.defineProperty(t, "__esModule", { value: !0 }), t.ConfigurationError = void 0; var r = function (e) { function t() { var t = null !== e && e.apply(this, arguments) || this; return t.message = "Provide either widget link or site key to display mCaptcha widget", t } return i(t, e), t }(Error); t.ConfigurationError = r; var o = function () { function e(e, t) { var n = this; if (this.handle = function (e) { console.log("message received from ".concat(e.origin, " with data: ").concat(e.data.token)), new URL(e.origin).host == n.widgetLink.host ? n.updateState(e.data.token) : console.error("expected message from ".concat(n.widgetLink.host, " but received message from ").concat(e.origin, ". Aborting.")) }, this.updateState = t, e.widgetLink && e.siteKey) throw new r; if (e.widgetLink) this.widgetLink = e.widgetLink; else { if (!e.siteKey) throw new r; e.siteKey.instanceUrl ? (this.widgetLink = e.siteKey.instanceUrl, this.widgetLink.pathname = "/widget/", this.widgetLink.search = "?sitekey=".concat(e.siteKey.key)) : this.widgetLink = new URL("https://demo.mcaptcha.org/widget/?sitekey=".concat(e.siteKey.key)) } } return e.prototype.listen = function () { window.addEventListener("message", this.handle) }, e.prototype.destroy = function () { window.removeEventListener("message", this.handle) }, e }(); t.default = o } }[166](0, e), e })(), e.exports = t() }, 942: (e, t) => { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), t.ID = t.INPUT_LABEL_ID = t.INPUT_NAME = void 0, t.INPUT_NAME = "mcaptcha__token", t.INPUT_LABEL_ID = "mcaptcha__token-label", t.ID = "mcaptcha__widget-container" }, 166: function (e, t, n) { "use strict"; var i = this && this.__importDefault || function (e) { return e && e.__esModule ? e : { default: e } }; Object.defineProperty(t, "__esModule", { value: !0 }), t.ConfigurationError = void 0; var r = n(260); Object.defineProperty(t, "ConfigurationError", { enumerable: !0, get: function () { return r.ConfigurationError } }); var o = i(n(695)); (0, n(695).run)(), t.default = o.default }, 695: function (e, t, n) { "use strict"; var i = this && this.__importDefault || function (e) { return e && e.__esModule ? e : { default: e } }; Object.defineProperty(t, "__esModule", { value: !0 }), t.run = void 0; var r = i(n(260)), o = n(942), a = function (e) { var t = this; this.setToken = function (e) { return t.inputElement.value = e }, this.receiver = new r.default(e, this.setToken), this.receiver.listen(); var n = document.getElementById(o.ID); if (null == n) throw new Error("Element ".concat(o.ID, "'s parent element is undefined")); var i = document.getElementById(o.INPUT_LABEL_ID); null !== i && (i.style.display = "none"), this.inputElement = document.getElementById(o.INPUT_NAME), this.inputElement.id = o.INPUT_NAME, this.inputElement.name = o.INPUT_NAME, this.inputElement.hidden = !0, this.inputElement.required = !0, this.inputElement.style.display = "none", n.appendChild(this.inputElement); var a = "mcaptcha-widget__iframe", s = document.createElement("iframe"); s.title = "mCaptcha", s.src = this.receiver.widgetLink.toString(), s.ariaRoleDescription = "presentation", s.name = a, s.id = a, s.scrolling = "no"; try { s.sandbox = "allow-same-origin allow-scripts allow-popups" } catch (e) { try { s.sandbox.add("allow-same-origin"), s.sandbox.add("allow-scripts"), s.sandbox.add("allow-popups") } catch (e) { s.setAttribute("sandbox", "allow-same-origin allow-scripts allow-popups") } } s.width = "100%", s.height = "100%", s.frameBorder = "0", n.appendChild(s) }; t.run = function () { var e = document.getElementById(o.INPUT_LABEL_ID); if (null === e || !e.dataset.mcaptcha_url) throw new Error('Couldn\'t find "mcaptcha_url" dataset in elmement (ID='.concat(o.INPUT_LABEL_ID, ")")); var t = { widgetLink: new URL(e.dataset.mcaptcha_url) }; new a(t) }, t.default = a } }, t = {}, function n(i) { var r = t[i]; if (void 0 !== r) return r.exports; var o = t[i] = { exports: {} }; return e[i].call(o.exports, o, o.exports, n), o.exports }(166); var e, t }));</script>
|
|
<!-- </div> -->
|
|
</form>
|
|
<span style="color: rgb(131, 255, 54);">
|
|
<p>(This will not leave any cookies in your browser)</p>
|
|
<p>(Esto no dejará ninguna cookie en tu navegador)</p>
|
|
</span>
|
|
<script>
|
|
// Yes this is made by a LLM becuase I suck at javascript
|
|
function captchaCallback() {
|
|
setTimeout(() => {
|
|
document.querySelector('#captcha-form').submit();
|
|
}, 500);
|
|
}
|
|
function submitForm() {
|
|
document.getElementById('captcha-form').submit();
|
|
}
|
|
function checkTokenValue() {
|
|
var tokenInput = document.getElementById('mcaptcha__token');
|
|
if (tokenInput.value.trim() !== "") {
|
|
submitForm();
|
|
}
|
|
}
|
|
setInterval(checkTokenValue, 500);
|
|
</script>
|
|
</div>
|
|
<footer>
|
|
<p>Beta feature to prevent bots, false positives can happen.</p>
|
|
<p>Funcionalidad beta para evitar bots, pueden producirse falsos positivos.</p>
|
|
</footer>
|
|
</body>
|
|
|
|
</html> |