NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name No logout
// @namespace https://etf.bg.ac.rs/
// @version 0.1
// @description Don't log-out from e-student automatically after 15 minutes.
// @author KockaAdmiralac
// @match https://student.etf.bg.ac.rs/*
// @grant none
// @license MIT
// ==/UserScript==
(function() {
'use strict';
setInterval(function() {
var fd = new FormData();
fd.append('menu', 'menu');
fd.append('javax.faces.ViewState', 'j_id1');
fd.append('menu:_idcl', 'menu_nav1_item0');
fetch('/pocetna.jsf', {
method: 'POST',
body: fd
}).then(function() {
window.min = 15;
window.sec = 0;
});
}, 60000);
})();