Skip to content

Commit

Permalink
Added more blacklisted domains
Browse files Browse the repository at this point in the history
  • Loading branch information
aopell committed Jun 7, 2020
1 parent 1c25ed2 commit 4784893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4784893

Please sign in to comment.