This commit is contained in:
Bruno Rybársky 2023-10-24 19:19:12 +02:00
parent 18db61e7ed
commit 4572eaf977

@ -1,7 +1,7 @@
// ==UserScript==
// @name Edupage H4x
// @namespace https://brn.systems
// @version 0.2.12
// @version 0.2.13
// @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
@ -23,10 +23,11 @@
( async function() {
( function() {
'use strict';
GM_config.init({
let gmc = new GM_config(
{
id: 'edupage_h4x_cnf',
title: GM_info.script.name + ' Settings',
fields: {
@ -72,13 +73,25 @@
default: false,
title: 'Disables ?eqa=gibberish'
},
},
'events': {
'init': oninit
}
})
});
GM_registerMenuCommand('Settings', () => {
GM_config.open()
})
function oninit(){
let removeintrobtn = gmc.get("modify_startbutton");
let fake_adult_student = gmc.get("modify_adult_student");
let fake_admin = gmc.get("modify_admin_stuff");
let fake_not_restricted = gmc.get("modify_restricted");
let fake_logged_in = gmc.get("modify_logged_in");
let disable_encoding = gmc.get("modify_encoding");
let change_strings = gmc.get("modify_strings");
let strings = {
3276: "budeme Ťa otravovať za",
3275: "Teraz ťa nebudeme chvíľu otravovať, ale",
@ -108,14 +121,6 @@
return url;
}
let removeintrobtn = await GM_config.getValue("modify_startbutton");
let fake_adult_student = await GM_config.getValue("modify_adult_student");
let fake_admin = await GM_config.getValue("modify_admin_stuff");
let fake_not_restricted = await GM_config.getValue("modify_restricted");
let fake_logged_in = await GM_config.getValue("modify_logged_in");
let disable_encoding = await GM_config.getValue("modify_encoding");
let change_strings = await GM_config.getValue("modify_strings");
if(removeintrobtn){
//removes intro button
waitForKeyElements ("a.learnMoreBtn", deleteNotX);
@ -219,5 +224,6 @@
console.error('window.Langs not found or not a function.');
}
}
}
})();