From 0a7e13a00c5d1321a0212e13f4611fac31e6809f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Wed, 25 Oct 2023 21:38:10 +0200 Subject: [PATCH] Update edupage.user.js --- edupage.user.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/edupage.user.js b/edupage.user.js index 70ce8df..2efc7d6 100644 --- a/edupage.user.js +++ b/edupage.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Edupage H4x // @namespace https://brn.systems -// @version 0.2.15 +// @version 0.2.16 // @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 @@ -43,6 +43,12 @@ default: false, title: 'Fakes you as an adult student(you might be able to sign your own grades)' }, + modify_agent: { + label: 'Fake mobile app', + type: 'checkbox', + default: false, + title: 'Fakes you as an adult student(you might be able to sign your own grades)' + }, modify_admin_stuff: { label: 'Fake admin', type: 'checkbox', @@ -92,6 +98,7 @@ let fake_logged_in = gmc.get("modify_logged_in"); let disable_encoding = gmc.get("modify_encoding"); let change_strings = gmc.get("modify_strings"); + let modify_agent = gmc.get("modify_agent"); let strings = { 3276: "budeme Ťa otravovať za", @@ -204,21 +211,17 @@ console.error('EdubarUtils not found or not a function.'); } - let _oldStartDrawing =StartDrawing; - function StartDrawing() { - _oldStartDrawing();//if you need previous function - //extend code here; - } - if(disable_encoding){ if (typeof unsafeWindow.barEncLink === 'function') { unsafeWindow.barEncLink = modifiedbarEncLink; + unsafeWindow.AscMobileAppVersion = "69420"; console.log("barEncLink overriden successfully."); } else { console.error('barEncLink not found or not a function.'); } } + if(change_strings){ if (typeof unsafeWindow.Langs === 'object') { for (var key in strings) {