Last active
October 17, 2019 14:25
-
-
Save MrCyjaneK/9becef2c84012d8c837bcc5cda3ee6ed to your computer and use it in GitHub Desktop.
Hack for https://eduinf.waw.pl/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Cyjan's Hack for eduinf.waw.pl | |
// @namespace https://eduinf.waw.pl/* | |
// @version 0.1 | |
// @description Pozdrawiam nauczycieli | |
// @author You | |
// @match https://eduinf.waw.pl/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
setTimeout(() => { | |
testuj_odp = function(odp,wej,wyj) | |
{ | |
var t; | |
wej.value = odp | |
if(wej.value == odp) | |
t = "<font color='Green'>DOBRZE</font>"; | |
else | |
t = "<b><font color='Red'>ŹLE</font></b>"; | |
document.getElementById("wyn"+wyj).innerHTML = t; | |
} | |
testuj_odp2 = function (odp1,odp2,wej1,wej2,wyj) | |
{ | |
var t; | |
wej1.value = odp1; | |
wej2.value = odp2; | |
if((wej1.value == odp1) && (wej2.value == odp2)) | |
t = "<font color='Green'>DOBRZE</font>"; | |
else | |
t = "<b><font color='Red'>ŹLE</font></b>"; | |
document.getElementById("wyn"+wyj).innerHTML = t; | |
} | |
let lista = document.getElementsByTagName("input") | |
for (i=0;i<lista.length;i++) { | |
if (lista[i].value == "Testuj") { | |
lista[i].click() | |
} | |
} | |
},2500); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment