Compare commits
No commits in common. "ea2571b7566eb6ff84124a2dc1c58e5ef812ace1" and "45f190ebcdc51a34c9e63fcbe57309c5bdd628c1" have entirely different histories.
ea2571b756
...
45f190ebcd
|
@ -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.3.0
|
// @version 1.2.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
|
||||||
|
@ -79,14 +79,6 @@ function handleNewNode(node) {
|
||||||
for (let i = 0; i < panel.items.items.length; i++) {
|
for (let i = 0; i < panel.items.items.length; i++) {
|
||||||
handlePanelItem(panel, panel.items.items[i], i === 0, tabToOpen);
|
handlePanelItem(panel, panel.items.items[i], i === 0, tabToOpen);
|
||||||
}
|
}
|
||||||
} else if (node.closest("[id^='wikibrowserpanel-'], #CompassWidgetsWikiBrowserPanel")) {
|
|
||||||
// Make files and folders in wiki/resources clickable for Link Hints
|
|
||||||
if (node.localName === "td") {
|
|
||||||
node.setAttribute("role", "button");
|
|
||||||
}
|
|
||||||
for (let expander of node.querySelectorAll("td, .x-tree-expander")) {
|
|
||||||
expander.setAttribute("role", "button");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,11 +155,6 @@ function handlePanelItem(panel, panelItem, isDefault, tabToOpen) {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
// /Communicate/SchoolDocumentation.aspx does not have tabs
|
|
||||||
if (!panelItem.tab) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
panelItem.tab.preventDefault = false;
|
panelItem.tab.preventDefault = false;
|
||||||
panelItem.tab.el.dom.href = panelItemHash;
|
panelItem.tab.el.dom.href = panelItemHash;
|
||||||
|
|
||||||
|
|
12
README.md
12
README.md
|
@ -20,17 +20,13 @@ Hacky script to disable the client-side file limit per tab
|
||||||
|
|
||||||
A userscript that adds small but useful features for Compass. Features include:
|
A userscript that adds small but useful features for Compass. Features include:
|
||||||
- The ability to close windows by clicking on the background
|
- The ability to close windows by clicking on the background
|
||||||
- Calendar events are now links (they work with [Link Hints] now! you can also
|
- Calendar events are now links (they work with [Link Hints](https://lydell.github.io/LinkHints/)
|
||||||
ctrl+click on "standard classes" and learning tasks)
|
now! you can also ctrl+click on "standard classes" and learning tasks)
|
||||||
- Tabs are now links (you can refresh pages and the tab will automatically
|
- Tabs are now links (you can refresh pages and the tab will automatically
|
||||||
open. you can also ctrl+click on them)
|
open. you can also ctrl+click on them)
|
||||||
- Files and folders in Resources is now marked clickable ([Link Hints] can now
|
|
||||||
open them!)
|
|
||||||
- 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
|
||||||
|
|
||||||
[Link Hints]: https://lydell.github.io/LinkHints/
|
|
||||||
|
|
||||||
## Elements with ID lister
|
## Elements with ID lister
|
||||||
|
|
||||||
A userscript that adds a "Show elements popup" option to the Monkey Menu which
|
A userscript that adds a "Show elements popup" option to the Monkey Menu which
|
||||||
|
@ -38,8 +34,8 @@ lists all elements with an ID
|
||||||
|
|
||||||
## Image Loader Placeholder Remover
|
## Image Loader Placeholder Remover
|
||||||
|
|
||||||
Removes image loading placeholders from images loaded via Javascript, such as
|
Removes image loading placeholders from https://closertoday.co.uk,
|
||||||
https://closeronline.co.uk, https://wired.com, and https://knowyourmeme.com.
|
https://www.indiatoday.in, and https://www.vice.com (article only).
|
||||||
|
|
||||||
## nightly.link buttons
|
## nightly.link buttons
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue