From 20851374811c1bb990bce11c2ca339e8202950b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Wed, 25 Oct 2023 22:13:53 +0200 Subject: [PATCH] Update edupage.user.js --- edupage.user.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/edupage.user.js b/edupage.user.js index 3d43cc6..3037569 100644 --- a/edupage.user.js +++ b/edupage.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Edupage H4x // @namespace https://brn.systems -// @version 0.2.20 +// @version 0.2.21 // @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 @@ -218,15 +218,15 @@ if(disable_encoding){ 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; - MobileAppBridge.isActive = function() { - return false; + //unsafeWindow.AscMobileAppVersion = "69420"; + function newpost(url, data, success, dataType, eqav) { + url += (url.indexOf('?') >= 0 ? '&' : '?')+'eqav='+eqav+'&maxEqav='+maxEqav + return $j.origPost(url, data, success, dataType); } + unsafeWindow.$j.post = newpost; + //MobileAppBridge.isActive = function() { + // return false; + //} console.log("barEncLink overriden successfully."); }