Grumpy Wise King autofill

Auto-fills in random answers for the Grumpy King and Wise King

目前为 2020-06-25 提交的版本。查看 最新版本

// ==UserScript==
// @name         Grumpy Wise King autofill
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Auto-fills in random answers for the Grumpy King and Wise King
// @author       u/EatWoolooAsMutton
// @match        http://www.neopets.com/medieval/wiseking.phtml
// @match        http://www.neopets.com/medieval/grumpyking.phtml
// @grant        none
// ==/UserScript==

(function() {
    var d = document;
    var select = d.getElementsByName("form")[0].getElementsByTagName("select");
    for (var i = 0; i < select.length; i++) {
        var option = select[i].getElementsByTagName("option");
        var answer = option[Math.floor(Math.random() * (option.length - 1)) + 1];
        answer.selected = true;
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址