From 47848939cf15addfaf63f5db23a8a4a7255830a4 Mon Sep 17 00:00:00 2001 From: Aaron Opell Date: Sat, 6 Jun 2020 17:04:04 -0700 Subject: [PATCH] Added more blacklisted domains --- js/all.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/all.js b/js/all.js index e488f95a..e88da94d 100644 --- a/js/all.js +++ b/js/all.js @@ -18,10 +18,10 @@ // Check Schoology domain { - const BLACKLISTED_DOMAINS = ["asset-cdn.schoology.com", "ui.schoology.com", "www.schoology.com", "api.schoology.com", "developers.schoology.com", "schoology.com", "support.schoology.com"]; + const BLACKLISTED_DOMAINS = ["asset-cdn.schoology.com", "developer.schoology.com", "support.schoology.com", "info.schoology.com", "files-cdn.schoology.com", "status.schoology.com", "ui.schoology.com", "www.schoology.com", "api.schoology.com", "developers.schoology.com", "schoology.com", "support.schoology.com"]; let dd = Setting.getValue("defaultDomain"); - if (dd !== window.location.host && !BLACKLISTED_DOMAINS.includes(window.location.host) && !window.location.host.match(/.*\.app\.schoology\.com/)) { + if (dd !== window.location.host && !BLACKLISTED_DOMAINS.includes(window.location.host) && !window.location.host.match(/.*\.apps\.schoology\.com/)) { Setting.setValue("defaultDomain", window.location.host); let bgColor = document.querySelector("#header header").style.backgroundColor;