CrafterSvK / huhuxd

// ==UserScript==
// @description Doesn't make sense
// @include https://bubo.sk/sutaz/lovcizazitkov
// @name huhuxd
// @license MIT
// ==/UserScript==

window.onload = function() {
    let klik = document.querySelector('[data-id="2074"]');

    klik.click();

    //Bypass security
    document.getElementsByClassName("form-control")[17].setAttribute("data-nette-rules", "");
    document.getElementsByClassName("form-control")[18].setAttribute("data-nette-rules", "");
    document.getElementsByClassName("form-control")[19].setAttribute("data-nette-rules", "");

    //generate email address
    let random_string = Math.random().toString(36).substring(7);
    let email = random_string + "@gmail.com";

    let catchpa = document.getElementsByClassName("col-sm-12")[206].innerHTML.substr(27, 6);

    document.getElementsByClassName("form-control")[17].value = "Ignác Kovešdi";
    document.getElementsByClassName("form-control")[18].value = email;
    document.getElementsByClassName("form-control")[19].value = catchpa;
}