Remove obsolete features
Removes d.tech institution-specific customizations, CBL grade
calculation, changelogs, remote configuration, grade calculation,
external/prerelease branches, and more.
Change-Id: I199b489f7395d36f97965e281b91895dae263006
Reviewed-on: https://src.jottocraft.com/c/dtps/+/137
Reviewed-by: spike <[email protected]>
diff --git a/chrome/loader.js b/chrome/loader.js
index e317d2b..9516c08 100644
--- a/chrome/loader.js
+++ b/chrome/loader.js
@@ -35,9 +35,6 @@
//Globally-Unique User ID
let guuid = window.ENV && window.ENV.current_user_global_id;
- const useClassicDTPS = window.location.search && window.location.search.includes("classicEdition=true");
- if (useClassicDTPS) light = false;
-
let dtpsHeadLoaded = false;
function injectDTPSLoaderHead(node) {
if (dtpsHeadLoaded) return;
@@ -58,7 +55,7 @@
dtpsBodyLoaded = true;
node.insertAdjacentHTML("afterbegin", /*html*/`
<div dtps="true" id="dtpsNativeOverlay" style="background-color: inherit; position: fixed; top: 0px; left: 0px; width: 100%; height: 100vh; z-index: 99;text-align: center;z-index: 999;transition: opacity 0.2s;">
- <img dtps="true" style="height: 90px; margin-top: 132px;" src="${useClassicDTPS ? "https://i.imgur.com/fqqPF9i.png" : (light ? "https://i.imgur.com/bZHcHoE.png" : "https://i.imgur.com/NrjqsVI.png")}" />
+ <img dtps="true" style="height: 90px; margin-top: 132px;" src="${light ? "https://i.imgur.com/bZHcHoE.png" : "https://i.imgur.com/NrjqsVI.png"}" />
<br dtps="true" />
<div dtps="true" class="progress"><div id="dtpsLoadingScreenBar" dtps="true" class="indeterminate"></div></div>
<style dtps="true">body {background-color: ${light ? "white" : "#151515"}; --crxElements: ${light ? "#ececec" : "#2b2b2b"}; --crxText: ${light ? "#333" : "#efefef"}; overflow: hidden;}*,:after,:before{box-sizing:border-box}.progress{background:var(--crxElements);position:relative;width:600px;height:5px;overflow:hidden;border-radius:12px;backdrop-filter:opacity(.4);display:inline-block;margin-top:75px}.progress .indeterminate{position:absolute;background:#e3ba4b;height:5px;animation:indeterminate 1.4s infinite;animation-timing-function:linear}@keyframes indeterminate{0%{width:5%;left:-15%}to{width:100%;left:110%}}p{font-family:BlinkMacSystemFont,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;color: var(--crxText);margin-top: 24px;}</style>
@@ -97,11 +94,7 @@
//Get Power+ base URL
var baseURL = "https://powerplus.app";
- if (useClassicDTPS) {
- baseURL = "https://classic.powerplus.app";
- } else if (window.localStorage.externalReleaseURL && (window.localStorage.dtpsLoaderPref == "external")) {
- baseURL = window.localStorage.externalReleaseURL;
- } else if (window.localStorage.dtpsLoaderPref == "local") {
+ if (window.localStorage.dtpsLoaderPref == "local") {
baseURL = "http://localhost:2750";
}
@@ -130,19 +123,14 @@
let uh = Array.from(new Uint8Array(data)).map((b) => b.toString(16).padStart(2, '0')).join('');
//Determine LMS script to load
- var lmsScript = null;
- if (window.location.hostname === "dtechhs.instructure.com") {
- lmsScript = "dtech";
- } else {
- lmsScript = "canvas";
- }
+ var lmsScript = "canvas";
//Check for debugging LMS overrides
if (window.localStorage.dtpsLMSOverride) lmsScript = window.localStorage.dtpsLMSOverride;
//Add script to DOM
var s = document.createElement("script");
- s.src = useClassicDTPS ? "https://classic.powerplus.app/init.js" : baseURL + "/scripts/lms/" + lmsScript + ".js?uh=" + uh;
+ s.src = baseURL + "/scripts/lms/" + lmsScript + ".js?uh=" + uh;
s.async = false;
s.setAttribute("dtps", "true");
document.documentElement.appendChild(s);
@@ -173,7 +161,6 @@
let releaseType = null;
const loaderPref = window.localStorage.getItem("dtpsLoaderPref");
- if (loaderPref === "external") releaseType = "Power+ (external)";
if (loaderPref === "local") releaseType = "Power+ (local)";
node.insertAdjacentHTML("beforeend", /*html*/`