diff --git a/edupage.user.js b/edupage.user.js index e7f1bf1..0fce214 100644 --- a/edupage.user.js +++ b/edupage.user.js @@ -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') {