Skip to content

Commit

Permalink
Merge pull request #190 from aopell/develop
Browse files Browse the repository at this point in the history
Added more blacklisted domains
  • Loading branch information
aopell authored Jun 7, 2020
2 parents 4d742a3 + 4784893 commit 9d6bfef
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 9d6bfef

Please sign in to comment.