<file_sep># EStarGmbH-Solver
A Tampermonkey / Greasemonkey Script which auto-solves the EStarGmbH Arbeitssicherheitsmodule Questionnaire.

Main Author: <NAME>.
Use at your own risk!

Instructions: 
 * Just install in Tampermonkey / Greasemonkey
 * Open a Questionnaire in the EStarGmbH Platform
 * Script automatically runs, checks the correct answers, and switches to the next pages until the Questionnaire is solved.

More Info: https://blog.rootdir.net/blog/2020/04/06/estargmbh-arbeitschutz-tampermonkey-script/
<file_sep>// ==UserScript==
// @name         EstarGmbH Disable Wait Time
// @namespace    http://tampermonkey.net/
// @version      0.4
// @description  Disables the wait time on every page
// @author       <NAME>.
// @match        https://*.estargmbh.de/*
// @grant        none
// @require 	   http://code.jquery.com/jquery-3.4.1.min.js
// ==/UserScript==


$(document).ready(function() {

setTimeout(function() {
	$('#btnFragebogenForm').click()
	$('#btnNext').prop('disabled', false);
	$('#btnNext').html('<i class="fa fa-chevron-right fa-fw"></i>');
}, 500);

setTimeout(function() {
if ($("#btn").text()=='speichern') {
    $("#gelesen").click()
    $("#nonPrivateUse").attr('checked', true); // Fuer Betriebliche Kommunikationsmittel v1.1, Eintragen des Wertes #nonPrivateUse = keine private Nutzung, für Private Nutzung auf #privateUse aendern.
    setTimeout(function() {
        $("#btn").click()
        $('#btnNext').click()
    }, 600);
}else{
    $('#btnNext').click()
}
}, 600);

});
