ALBot

try to take over the albert.io world!

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu betiği yüklemek için bir betik yöneticisi eklentisi yüklemeniz gerekecektir.

(Zaten bir betik yöneticim var, hadi yükleyelim!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

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