Update edupage.user.js

This commit is contained in:
Bruno Rybársky 2023-10-24 18:48:43 +02:00
parent 48546a977f
commit ba1e8ee66b

@ -1,7 +1,7 @@
// ==UserScript==
// @name Edupage H4x
// @namespace https://brn.systems
// @version 0.2.6
// @version 0.2.7
// @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
@ -17,6 +17,8 @@
// @grant GM_setValue
// @grant GM.getValue
// @grant GM.setValue
// @grant GM_registerMenuCommand
// @grant GM.registerMenuCommand
// ==/UserScript==
@ -24,15 +26,6 @@
(function() {
'use strict';
if(GM_config.get("modify_startbutton")){
//removes intro button
waitForKeyElements ("a.learnMoreBtn", deleteNotX);
}
function deleteNotX (jNode) {
jNode.remove ();
}
GM_config.init({
id: 'edupage_h4x_cnf',
title: GM_info.script.name + ' Settings',
@ -93,6 +86,10 @@
3274: "Zabudni na úlohy,",
};
function deleteNotX (jNode) {
jNode.remove ();
}
// Define your modified function
function modifiedGetLoggedUserType() {
// Your custom code here
@ -111,6 +108,11 @@
return url;
}
if(GM_config.get("modify_startbutton")){
//removes intro button
waitForKeyElements ("a.learnMoreBtn", deleteNotX);
}
// Find and replace the original function
if (typeof EdubarUtils !== 'undefined') {