ALBot

try to take over the albert.io world!

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         ALBot
// @namespace    https://samyok.us/
// @version      0.3.1
// @description  try to take over the albert.io world!
// @author       You
// @match        https://www.albert.io/*
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js
// @resource customCSS  https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css
// @grant       GM_addStyle
// @grant       GM_getResourceText
// ==/UserScript==
/*global $ toastr*/
const newCSS = GM_getResourceText("customCSS");
GM_addStyle(newCSS);
(function() {
    toastr.options = {
        "closeButton": false,
        "debug": false,
        "newestOnTop": false,
        "progressBar": false,
        "positionClass": "toast-bottom-right",
        "preventDuplicates": false,
        "onclick": null,
        "showDuration": "300",
        "hideDuration": "1000",
        "timeOut": "5000",
        "extendedTimeOut": "1000",
        "showEasing": "swing",
        "hideEasing": "linear",
        "showMethod": "fadeIn",
        "hideMethod": "fadeOut"
    };
    'use strict';
    setTimeout(startBot, 5000);
})();
function startBot() {
    $.get("https://auctioneer.hqknight.online/ping", data=>{
        if(!data.online) return false;
        $(".assignment-stage__footer-content").find("button").text("CONTINUE").click(()=>{
            setTimeout(addButton, 1000);
        });
    });
}
function addButton(){
    $("<button class='sg-button'>Answer</button>").appendTo(".ie-stats-wrapper").click(()=>{
        let question = $(".markdown-renderer-v2.mcq__question-content").text();
        console.log(question);
        $.get("https://auctioneer.hqknight.online/?username=" + $(".global-nav__username").text() + "&q=" + question, data => {
            console.log(data);
            toastr.success(data.answer, "Answer");
        })
    });
}