From cee8135a184ec000dd678b4e7e881487fe1221e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Thu, 26 Oct 2023 17:09:50 +0200 Subject: [PATCH] r --- edupage.user.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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,