feat: take care of reddit
This commit is contained in:
@@ -28,12 +28,18 @@ browser.webRequest.onBeforeRequest.addListener(
|
||||
return {
|
||||
redirectUrl: `https://${GOTHUB}/${org}/${repo}`
|
||||
};
|
||||
} else if (url.hostname === "www.reddit.com") {
|
||||
url.hostname = "old.reddit.com"
|
||||
return {
|
||||
redirectUrl: url.toString()
|
||||
};
|
||||
}
|
||||
},
|
||||
{ urls: [
|
||||
"*://www.youtube.com/*",
|
||||
"*://youtube.com/*",
|
||||
"*://github.com/*",
|
||||
"*://www.reddit.com/*",
|
||||
]},
|
||||
["blocking"]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user