Remove unnecessary exceptions

This commit is contained in:
Michał Szopiński 2020-07-17 15:19:05 +02:00
parent 2c28b50960
commit 629926126e
1 changed files with 0 additions and 8 deletions

View File

@ -1,11 +1,5 @@
const oldReddit = "https://old.reddit.com";
const excludedSubdomains = [
"blog.reddit.com",
"mod.reddit.com",
"oauth.reddit.com",
"out.reddit.com"];
const excludedPaths = [
"/chat",
"/gallery",
"/poll",
"/rpan",
@ -19,8 +13,6 @@ chrome.webRequest.onBeforeRequest.addListener(
if (urlParser.hostname == "old.reddit.com") return;
if (excludedSubdomains.indexOf(urlParser.hostname) != -1) return;
for (const path of excludedPaths) {
if (urlParser.pathname.indexOf(path) == 0) return;
}