User:It's moon/common.js
From Just Solve the File Format Problem
< User:It's moon(Difference between revisions)
m (Fix attempt) |
|||
| Line 1: | Line 1: | ||
| − | // Automatically submit | + | // Confirm common.js is loading |
| + | console.log("common.js loaded"); | ||
| + | |||
| + | // Automatically submit CAPTCHA after 5 seconds | ||
$(function () { | $(function () { | ||
| − | + | setTimeout(function () { | |
| − | + | if ($("#wpCaptchaWord").length) { | |
| − | + | console.log("CAPTCHA detected — submitting"); | |
| − | + | $("#wpCaptchaWord").val("herpderp").trigger("input"); | |
| − | + | $("#wpSave").click(); | |
| − | + | } else { | |
| − | } | + | console.log("CAPTCHA not found"); |
| − | } | + | } |
| + | }, 5000); | ||
}); | }); | ||
Revision as of 04:55, 23 May 2025
// Confirm common.js is loading
console.log("common.js loaded");
// Automatically submit CAPTCHA after 5 seconds
$(function () {
setTimeout(function () {
if ($("#wpCaptchaWord").length) {
console.log("CAPTCHA detected — submitting");
$("#wpCaptchaWord").val("herpderp").trigger("input");
$("#wpSave").click();
} else {
console.log("CAPTCHA not found");
}
}, 5000);
});