Skip to content

Commit efae34d

Browse files
authored
增加脚本运行时悬浮提示
1 parent 8174f3d commit efae34d

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

renew.user.js

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,43 @@
1515
// @downloadURL https://raw.githubusercontent.com/GitHub30/extend-vps-exp/refs/heads/main/renew.user.js
1616
// @supportURL https://github.com/GitHub30/extend-vps-exp
1717
// ==/UserScript==
18-
19-
/**
18+
/*
2019
* @description 脚本主逻辑,根据当前页面路径执行不同任务
20+
* =================================================================================================
21+
* 使用说明 (Usage Instructions)
22+
* =================================================================================================
23+
* 1. 请将登录页面设为浏览器书签: https://secure.xserver.ne.jp/xapanel/login/xvps/
24+
* (Bookmark the login page)
25+
*
26+
* 2. 每天访问一次该书签。
27+
* (Visit the bookmark once every day.)
28+
*
29+
* 3. (可选) 首次访问时,在登录页面输入您的邮箱和密码,脚本会自动保存。之后访问将自动填充和登录。
30+
* (Optional) On your first visit, enter your email and password on the login page.
31+
* The script will save them automatically for future auto-login.
32+
*
33+
* =================================================================================================
34+
* 工作流程 (Workflow)
35+
* =================================================================================================
36+
* 1. 登录页面: 自动填充已保存的凭据并提交。
37+
* (Login Page: Auto-fills saved credentials and submits.)
38+
*
39+
* 2. VPS管理主页: 检查免费VPS的到期日期。如果明天到期,则跳转到续期页面。
40+
* (VPS Dashboard: Checks the expiration date. If it expires tomorrow, it navigates to the renewal page.)
41+
*
42+
* 3. 续期申请页: 自动点击“确认”按钮,进入验证码页面。
43+
* (Renewal Page: Clicks the confirmation button to proceed to the CAPTCHA page.)
44+
*
45+
* 4. 验证码页:
46+
* a. 提取验证码图片。
47+
* b. 发送到外部API服务进行识别。
48+
* c. 自动填充识别结果。
49+
* d. 监听 Cloudflare Turnstile (一种人机验证) 的令牌生成,一旦生成,立即提交表单。
50+
* (CAPTCHA Page: Extracts the CAPTCHA image, sends it to a recognition service,
51+
* fills the result, and submits the form once the Cloudflare Turnstile token is ready.)
52+
* =================================================================================================
2153
*/
54+
2255
(function () {
2356
'use strict';
2457

0 commit comments

Comments
 (0)