diff --git a/edupage.user.js b/edupage.user.js index 2efc7d6..4b2457b 100644 --- a/edupage.user.js +++ b/edupage.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Edupage H4x // @namespace https://brn.systems -// @version 0.2.16 +// @version 0.2.17 // @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,6 +85,10 @@ } }); + function custompost(url, data, success, dataType, eqav, oldpost){ + oldpost(url, data, success, dataType, unsafeWindow.maxEqav); + } + function oninit(){ GM_registerMenuCommand('Settings', () => { @@ -215,6 +219,11 @@ if (typeof unsafeWindow.barEncLink === 'function') { unsafeWindow.barEncLink = modifiedbarEncLink; unsafeWindow.AscMobileAppVersion = "69420"; + var edupost = unsafeWindow.$j.post; + function newpost(url, data, success, dataType, eqav){ + edupost(url, data, success, dataType, 7); + } + unsafeWindow.$j.post = newpost; console.log("barEncLink overriden successfully."); } else {