Remove unnecessary exceptions
This commit is contained in:
parent
2c28b50960
commit
629926126e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue