|
15 | 15 | // @downloadURL https://raw.githubusercontent.com/GitHub30/extend-vps-exp/refs/heads/main/renew.user.js |
16 | 16 | // @supportURL https://github.com/GitHub30/extend-vps-exp |
17 | 17 | // ==/UserScript== |
18 | | - |
19 | | -/** |
| 18 | +/* |
20 | 19 | * @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 | + * ================================================================================================= |
21 | 53 | */ |
| 54 | + |
22 | 55 | (function () { |
23 | 56 | 'use strict'; |
24 | 57 |
|
|
0 commit comments