Update edupage.user.js

This commit is contained in:
Bruno Rybársky 2023-10-25 22:13:53 +02:00
parent 1c5346cf3a
commit 2085137481

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name Edupage H4x // @name Edupage H4x
// @namespace https://brn.systems // @namespace https://brn.systems
// @version 0.2.20 // @version 0.2.21
// @copyright Can be found at https://git.brn.systems/BRNSystems/Userscripts // @copyright Can be found at https://git.brn.systems/BRNSystems/Userscripts
// @description Gives you a bit more options on EduPage, some are broken // @description Gives you a bit more options on EduPage, some are broken
// @author BRNSystems // @author BRNSystems
@ -218,15 +218,15 @@
if(disable_encoding){ if(disable_encoding){
if (typeof unsafeWindow.barEncLink === 'function') { if (typeof unsafeWindow.barEncLink === 'function') {
unsafeWindow.barEncLink = modifiedbarEncLink; unsafeWindow.barEncLink = modifiedbarEncLink;
unsafeWindow.AscMobileAppVersion = "69420"; //unsafeWindow.AscMobileAppVersion = "69420";
var edupost = unsafeWindow.$j.post; function newpost(url, data, success, dataType, eqav) {
function newpost(url, data, success, dataType, eqav){ url += (url.indexOf('?') >= 0 ? '&' : '?')+'eqav='+eqav+'&maxEqav='+maxEqav
edupost(url, data, success, dataType, 7); return $j.origPost(url, data, success, dataType);
}
//unsafeWindow.$j.post = newpost;
MobileAppBridge.isActive = function() {
return false;
} }
unsafeWindow.$j.post = newpost;
//MobileAppBridge.isActive = function() {
// return false;
//}
console.log("barEncLink overriden successfully."); console.log("barEncLink overriden successfully.");
} }