Greasy Fork

Greasy Fork is available in English.

Hax自动抢鸡

Hax自动抢鸡脚本

当前为 2024-02-15 提交的版本,查看 最新版本

// ==UserScript==
// @name         Hax自动抢鸡
// @namespace    NoNameGMM
// @version      1.0
// @description  Hax自动抢鸡脚本
// @license      GPL-3.0
// @author       NoNameGMM
// @match        https://hax.co.id/*
// @icon         https://www.nonamegmm.eu.org/favicon.ico
// ==/UserScript==

(function() {
    'use strict';
    var selectElement = document.getElementById("os");
    var optionElement = selectElement.options[1];
    optionElement.selected = true;

    var purposeElement = document.getElementById("purpose");
    var purposeoptionElement = purposeElement.options[4];
    purposeoptionElement.selected = true;

    var checkbox = document.querySelectorAll('input[name="agreement[]"]');
    for (var i = 0; i < checkbox.length; i++) {
        checkbox[i].checked = true;
    }
    
    var passwordInput = document.querySelector('#password');
    passwordInput.value = 'your_password';
})();