diff --git a/css/all.css b/css/all.css index fb04270..ad53d0b 100644 --- a/css/all.css +++ b/css/all.css @@ -18,6 +18,7 @@ background-color: var(--primary-color) !important; } +#header>header, #header>header nav, #header>header nav li button._1Z0RM, #header>header nav li a._1Z0RM { @@ -72,14 +73,17 @@ nav.nav-breadcrumb-nav-1251684582 span { /* Kept old classes to remain compatible with older versions of Schoology */ .StandardHeader-header-drop-menu-YShpU, -.Header-header-drop-menu-3SaYV { +.Header-header-drop-menu-3SaYV, +.HeaderDropMenu-menu-border-3vo5S { background-color: var(--hover-color) !important; } a.StandardHeader-header-drop-menu-YShpU:hover, .StandardHeader-header-drop-menu-YShpU li a:hover, a.Header-header-drop-menu-3SaYV:hover, -.Header-header-drop-menu-3SaYV li a:hover { +.Header-header-drop-menu-3SaYV li a:hover, +a.HeaderDropMenu-menu-border-3vo5S:hover, +.HeaderDropMenu-menu-border-3vo5S li a:hover { background-color: var(--background-color) !important; } diff --git a/css/modern/all.css b/css/modern/all.css index 3d858fc..c8e1dd4 100644 --- a/css/modern/all.css +++ b/css/modern/all.css @@ -344,6 +344,10 @@ variable-intellisense { background-color: var(--muted-text) !important; } +:root[modern=true][dark=true] #header > header li svg.util-v2-icon-height-2N1T4 { + filter: Hue-Rotate(200deg) Invert(1) Saturate(2); +} + :root[modern=true] .popups-box .popups-body, :root[modern=true] #popups-loading div { background-color: var(--primary) !important; @@ -774,19 +778,19 @@ variable-intellisense { background-color: var(--active) !important; } -:root[modern=true] div.les2- { +:root[modern=true] div.les2-, :root[modern=true] #header > header ul.util-width-thirty-nine-1B-gb { background-color: var(--secondary) !important; } -:root[modern=true] div.les2- ._3skcp { +:root[modern=true] div.les2- ._3skcp, :root[modern=true] #header > header ul.util-width-thirty-nine-1B-gb ._3skcp { border-color: var(--contrast-border) !important; } -:root[modern=true] div.les2- ._1wP6w { +:root[modern=true] div.les2- ._1wP6w, :root[modern=true] #header > header ul.util-width-thirty-nine-1B-gb ._1wP6w { color: var(--text) !important; } -:root[modern=true] div.les2- ._2wOCj { +:root[modern=true] div.les2- ._2wOCj, :root[modern=true] #header > header ul.util-width-thirty-nine-1B-gb ._2wOCj { color: var(--muted-text) !important; } diff --git a/js/all.js b/js/all.js index 1fe59f0..80aa685 100644 --- a/js/all.js +++ b/js/all.js @@ -914,7 +914,7 @@ let siteNavigationTileHelpers = { } }); - for (let candidateLabel of document.querySelectorAll("#header nav ul > li span._1D8fw")) { + for (let candidateLabel of document.querySelectorAll("#header nav ul > li button > span")) { if (candidateLabel.textContent == "Courses") { // a span inside a button inside a div (inside a li) coursesDropdownContainer = candidateLabel.parentElement.parentElement; @@ -979,7 +979,7 @@ let siteNavigationTileHelpers = { } }); - for (let candidateLabel of document.querySelectorAll("#header nav ul > li span._1D8fw")) { + for (let candidateLabel of document.querySelectorAll("#header nav ul > li button > span")) { if (candidateLabel.textContent == "Groups") { // a span inside a button inside a div (inside a li) groupsDropdownContainer = candidateLabel.parentElement.parentElement; diff --git a/js/version-specific.js b/js/version-specific.js index c5d5c5f..f90c61c 100644 --- a/js/version-specific.js +++ b/js/version-specific.js @@ -123,8 +123,8 @@ function saveBroadcasts(broadcasts, callback = undefined) { * @param {Date|number} timestamp Timestamp to show as the post time in the home feed * @returns {Broadcast} */ -function createBroadcast(id, title, message, timestamp = Date.now()) { - return { id: String(id), title, message, timestamp: +timestamp }; +function createBroadcast(id, title, message, timestamp = Date.now(), expires = undefined) { + return { id: String(id), title, message, timestamp: +timestamp, expires: expires !== undefined ? +expires : undefined }; } /** @@ -298,6 +298,36 @@ let migrationsTo = { } }, 50); }, + "7.8.6": function (currentVersion, previousVersion) { + saveBroadcasts([ + createBroadcast( + 670, + "Schoology Plus Fall 2023 Survey", + ` +
Occasionally we run this survey to understand how best to improve Schoology Plus for our users.
+Spend 10 minutes completing this year's survey and you'll be entered into a giveaway for one of + 20 Amazon gift cards totaling $150 + : ten $10 cards and ten $5 cards, so your chance of winning is higher than ever before! +
+Thank you for helping improve Schoology Plus! Your feedback is incredibly valuable to us and will likely impact to what extent Schoology Plus is improved in the future.
+Click here to visit survey.schoologypl.us and take the survey now!
+