feat: take care of reddit

This commit is contained in:
2025-11-28 12:28:36 +01:00
parent 1d5377ad6d
commit fa27167f5c
2 changed files with 8 additions and 2 deletions

View File

@@ -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"]
);