Update Compass QoL Enhancer to 1.17.1
- Fix fixing links in lesson plans inside Resources
This commit is contained in:
parent
75f8ab9924
commit
b090d0d774
|
@ -2,7 +2,7 @@
|
||||||
// @name Compass QoL Enhancer
|
// @name Compass QoL Enhancer
|
||||||
// @namespace blankie-scripts
|
// @namespace blankie-scripts
|
||||||
// @match http*://*.compass.education/*
|
// @match http*://*.compass.education/*
|
||||||
// @version 1.17.0
|
// @version 1.17.1
|
||||||
// @author blankie
|
// @author blankie
|
||||||
// @description A userscript that adds small but useful features for Compass, such as the ability to close windows by clicking on the background
|
// @description A userscript that adds small but useful features for Compass, such as the ability to close windows by clicking on the background
|
||||||
// @inject-into page
|
// @inject-into page
|
||||||
|
@ -444,7 +444,9 @@ function handleNewNode(node, observer) {
|
||||||
handleLearningTasksTable(node);
|
handleLearningTasksTable(node);
|
||||||
} else if (node.classList.contains("x-grid-view") && unsafeWindow.Ext.getCmp(node.id).up("#submissionsPanel")) {
|
} else if (node.classList.contains("x-grid-view") && unsafeWindow.Ext.getCmp(node.id).up("#submissionsPanel")) {
|
||||||
handleLearningTaskSubmissionTable(node);
|
handleLearningTaskSubmissionTable(node);
|
||||||
} else if (node.classList.contains("cke")) {
|
}
|
||||||
|
|
||||||
|
if (node.classList.contains("cke")) {
|
||||||
let instance = unsafeWindow.CKEDITOR.instances[node.id.substring(4)];
|
let instance = unsafeWindow.CKEDITOR.instances[node.id.substring(4)];
|
||||||
handleCKEditor(instance);
|
handleCKEditor(instance);
|
||||||
} else if (node.localName === "a" && /\bcke_/.test(node.closest("body").className)) {
|
} else if (node.localName === "a" && /\bcke_/.test(node.closest("body").className)) {
|
||||||
|
|
Loading…
Reference in New Issue