We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a4e854 commit cf5a56aCopy full SHA for cf5a56a
packages/captcha/captcha.user.js
@@ -1,11 +1,10 @@
1
// ==UserScript==
2
// @name SWVerifyCode
3
// @namespace https://github.com/WindrunnerMax/TKScript
4
-// @version 1.1
+// @version 1.1.1
5
// @description try to take over the world!
6
// @author Czy
7
-// @match *://jwgl.sdust.edu.cn/
8
-// @match *://jwgl.sdust.edu.cn/jsxsd/
+// @match *://jwgl.sdust.edu.cn/*
9
// @grant none
10
// ==/UserScript==
11
@@ -164,7 +163,7 @@ function main() {
164
163
(function () {
165
"use strict";
166
const img = document.getElementById("SafeCodeImg");
167
- img.onload = function () {
168
- main();
169
- };
+ if (!img) return void 0;
+ img.onload = main;
+ img.complete && main();
170
})();
0 commit comments