ALBot

try to take over the albert.io world!

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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");
        })
    });
}