解决无法加载谷歌验证码的代码(在console中执行)


代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
!(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
);
}
});
})();

你可以在这里测试谷歌验证码:

https://testrecaptcha.github.io/


解决无法加载谷歌验证码的代码(在console中执行)
https://xiaoxinblog.xyz/posts/65d46cc7.html
发布于
2022年6月9日
许可协议