VC自动填充

vc自动填充脚本(除了hcaptcha验证),记得将wantedVPS的内容替换为你想要的vps序号,可以的话也修改一下密码。

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         VC自动填充
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  vc自动填充脚本(除了hcaptcha验证),记得将wantedVPS的内容替换为你想要的vps序号,可以的话也修改一下密码。
// @author       ChatGPT
// @match        https://free.vps.vc/create-vps
// @icon         https://free.vps.vc/img/favicon.png
// @grant        none
// @license      WTFPL
// ==/UserScript==

var selectos = document.querySelector('#os');
var purpose = document.querySelector('#purpose');
var password = document.getElementById('password');
var checkboxes = document.querySelectorAll('input[type="checkbox"]');
var wantedVPS = 'EU2';
var datacenterSelect = document.getElementById('datacenter');

if (selectos) {
    selectos.selectedIndex = 2;
}

if (purpose) {
    purpose.selectedIndex = 2;
}

if (password) {
    password.value = 'p@ssword!';
}

if (datacenterSelect) {
    Array.from(datacenterSelect.options).forEach(function(option) {
        if (option.value.includes(wantedVPS)) {
            option.selected = true;
        }
    });
}

checkboxes.forEach(function(checkbox) {
    checkbox.checked = true;
});