d
This commit is contained in:
parent
fe8ef319ee
commit
c80e503c78
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Edupage H4x
|
// @name Edupage H4x
|
||||||
// @namespace https://brn.systems
|
// @namespace https://brn.systems
|
||||||
// @version 0.2.14
|
// @version 0.2.15
|
||||||
// @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
|
||||||
@ -204,9 +204,15 @@
|
|||||||
console.error('EdubarUtils not found or not a function.');
|
console.error('EdubarUtils not found or not a function.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let _oldStartDrawing =StartDrawing;
|
||||||
|
function StartDrawing() {
|
||||||
|
_oldStartDrawing();//if you need previous function
|
||||||
|
//extend code here;
|
||||||
|
}
|
||||||
|
|
||||||
if(disable_encoding){
|
if(disable_encoding){
|
||||||
if (typeof window.barEncLink === 'function') {
|
if (typeof unsafeWindow.barEncLink === 'function') {
|
||||||
window.barEncLink = modifiedbarEncLink;
|
unsafeWindow.barEncLink = modifiedbarEncLink;
|
||||||
console.log("barEncLink overriden successfully.");
|
console.log("barEncLink overriden successfully.");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -214,15 +220,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(change_strings){
|
if(change_strings){
|
||||||
if (typeof window.Langs === 'object') {
|
if (typeof unsafeWindow.Langs === 'object') {
|
||||||
for (var key in strings) {
|
for (var key in strings) {
|
||||||
var value = strings[key];
|
var value = strings[key];
|
||||||
window.Langs[key] = value;
|
unsafeWindow.Langs[key] = value;
|
||||||
}
|
}
|
||||||
console.log("Strings overriden successfully.");
|
console.log("Strings overriden successfully.");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.error('window.Langs not found or not a function.');
|
console.error('Langs not found or not a function.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user