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