Update Compass QoL Enhancer to 1.12.0
- News feed items can now be opened by simply clicking on their background
This commit is contained in:
parent
c0854ffcb7
commit
ea7dcfd7dc
|
@ -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.11.0
|
// @version 1.12.0
|
||||||
// @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
|
||||||
|
@ -325,6 +325,13 @@ document.body.addEventListener("click", function(event) {
|
||||||
} else if (event.target.classList.contains("x-form-file-btn")) {
|
} else if (event.target.classList.contains("x-form-file-btn")) {
|
||||||
// Make Link Hints work with uploading files
|
// Make Link Hints work with uploading files
|
||||||
event.target.querySelector("input[type=file]").click();
|
event.target.querySelector("input[type=file]").click();
|
||||||
|
} else if (event.target.closest(".newsfeed-newsItem") && !event.target.closest("a")) {
|
||||||
|
// Expand news feed items by clicking on them
|
||||||
|
// the <a> check is to prevent expending by clicking on a link (say, to a file)
|
||||||
|
let seeMore = event.target.closest(".newsfeed-newsItem").querySelector(".newsfeed-newsItem-seeMoreCTA a");
|
||||||
|
if (seeMore) {
|
||||||
|
seeMore.click();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, {passive: true});
|
}, {passive: true});
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@ A userscript that adds small but useful features for Compass. Features include:
|
||||||
everything else
|
everything else
|
||||||
- The previous/next buttons and sessions dropdown are now links (you can now
|
- The previous/next buttons and sessions dropdown are now links (you can now
|
||||||
use [Link Hints] and ctrl-click to open them)
|
use [Link Hints] and ctrl-click to open them)
|
||||||
|
- News feed items can now be opened by simply clicking on their background
|
||||||
- The context menu that only says "Copy" is now suppressed
|
- The context menu that only says "Copy" is now suppressed
|
||||||
- The option to remember logins is unchecked by default
|
- The option to remember logins is unchecked by default
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue