a
This commit is contained in:
parent
18db61e7ed
commit
4572eaf977
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Edupage H4x
|
// @name Edupage H4x
|
||||||
// @namespace https://brn.systems
|
// @namespace https://brn.systems
|
||||||
// @version 0.2.12
|
// @version 0.2.13
|
||||||
// @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
|
||||||
@ -23,10 +23,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
( async function() {
|
( function() {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
GM_config.init({
|
let gmc = new GM_config(
|
||||||
|
{
|
||||||
id: 'edupage_h4x_cnf',
|
id: 'edupage_h4x_cnf',
|
||||||
title: GM_info.script.name + ' Settings',
|
title: GM_info.script.name + ' Settings',
|
||||||
fields: {
|
fields: {
|
||||||
@ -72,13 +73,25 @@
|
|||||||
default: false,
|
default: false,
|
||||||
title: 'Disables ?eqa=gibberish'
|
title: 'Disables ?eqa=gibberish'
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
'events': {
|
||||||
|
'init': oninit
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
GM_registerMenuCommand('Settings', () => {
|
GM_registerMenuCommand('Settings', () => {
|
||||||
GM_config.open()
|
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 = {
|
let strings = {
|
||||||
3276: "budeme Ťa otravovať za",
|
3276: "budeme Ťa otravovať za",
|
||||||
3275: "Teraz ťa nebudeme chvíľu otravovať, ale",
|
3275: "Teraz ťa nebudeme chvíľu otravovať, ale",
|
||||||
@ -108,14 +121,6 @@
|
|||||||
return url;
|
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){
|
if(removeintrobtn){
|
||||||
//removes intro button
|
//removes intro button
|
||||||
waitForKeyElements ("a.learnMoreBtn", deleteNotX);
|
waitForKeyElements ("a.learnMoreBtn", deleteNotX);
|
||||||
@ -219,5 +224,6 @@
|
|||||||
console.error('window.Langs not found or not a function.');
|
console.error('window.Langs not found or not a function.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
Loading…
Reference in New Issue
Block a user