解决google reCaptcha 认证问题

参考

https://xiaoxinblog.xyz/posts/65d46cc7.html

F12 open console

键盘输入
允许粘贴


!(function () {
  "use strict";
  document.querySelectorAll("script").forEach(function (e) {
    if (
      e.src.indexOf("googleapis.com") >= 0 ||
      e.src.indexOf("themes.googleusercontent.com") >= 0 ||
      e.src.indexOf("www.google.com/recaptcha/") >= 0
    ) {
      let c = e.src
        .replace("http://", "https://")
        .replace("googleapis.com", "proxy.ustclug.org")
        .replace(
          "themes.googleusercontent.com",
          "google-themes.lug.ustc.edu.cn"
        )
        .replace("www.google.com/recaptcha/", "www.recaptcha.net/recaptcha/");
      e.parentNode.replaceChild(
        (function (e) {
          let c = document.createElement("script");
          return (c.src = e), c;
        })(c),
        e
      );
    }
  });
})();






posted @ 2024-11-12 19:55  scott_h  阅读(0)  评论(0编辑  收藏  举报