diff --git a/edupage.user.js b/edupage.user.js index 45e4fe8..64ad904 100644 --- a/edupage.user.js +++ b/edupage.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Edupage H4x // @namespace https://brn.systems -// @version 0.2.27 +// @version 0.2.28 // @copyright Can be found at https://git.brn.systems/BRNSystems/Userscripts // @description Gives you a bit more options on EduPage, some are broken // @author BRNSystems @@ -85,10 +85,6 @@ } }); - function custompost(url, data, success, dataType, eqav, oldpost){ - oldpost(url, data, success, dataType, unsafeWindow.maxEqav); - } - function oninit(){ GM_registerMenuCommand('Settings', () => { @@ -223,8 +219,8 @@ if (!eqav) { eqav = 1; } - if(data && data.length == 0) { - data = { + if(data && Object.keys(data).length === 0) { + datanew = { eqap: "", eqacs: "da39a3ee5e6b4b0d3255bfef95601890afd80709", eqaz: 0,