User:It's moon/common.js

From Just Solve the File Format Problem
< User:It's moon(Difference between revisions)
Jump to: navigation, search
m (Fix attempt)
Line 1: Line 1:
// Automatically submit Special:Captcha
+
// Confirm common.js is loading
 +
console.log("common.js loaded");
 +
 
 +
// Automatically submit CAPTCHA after 5 seconds
 
$(function () {
 
$(function () {
   if (location.href.includes("action=submit")) {
+
   setTimeout(function () {
    setTimeout(function () {
+
    if ($("#wpCaptchaWord").length) {
      if ($("#wpCaptchaWord").length) {
+
      console.log("CAPTCHA detected — submitting");
        $("#wpCaptchaWord").val("herpderp");
+
      $("#wpCaptchaWord").val("herpderp").trigger("input");
        $("#wpSave").click();
+
      $("#wpSave").click();
      }
+
     } else {
     }, 300);
+
      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);
});
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox