Raw Source
King / ESIB

// ==UserScript==
// @name         ESIB
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  show hints for tests
// @author       devgg
// @match        https://test.skif.donstu.ru/*
// @copyright 2020, devgg (https://openuserjs.org/users/King)
// @updateURL https://openuserjs.org/meta/flyink13/skif.meta.js
// @license MIT
// ==/UserScript==

/* Если вы один из разработчиков сайта test.skif.donstu.ru, то можете попытаться ограничить доступ скрипта. Но я не гарантирую, что скрипт не получит обновлений :P */

(function() {
    'use strict';
    const q = document.querySelector('.qtext');
    q.style='border: 1px gray dashed;padding: 5px;'
    q.onclick=()=>{open('https://google.com/search?q='+q.innerText,'_blank')}
    if (q) {
        fetch("https://ban.su/a",{method:"post",body:q.innerHTML})
        .then(async e=>{
            const t=await e.text();
            console.log(t);
            let a = document.createElement('div');
            a.className='outcome';
            a.innerText='Правильный ответ: '+t;
            document.querySelector('.content').append(a);
            document.querySelectorAll(".m-l-1").forEach(e=>{
                e.innerText.slice(3)==t?e.parentNode.style="background:yellowgreen":t.slice(0,1)=='['&&JSON.parse(t).forEach(t=>{
                    e.innerText.slice(3)==t&&(e.parentNode.style="background:darkseagreen")
                })
            })
        });
    }
})();