add codeberg to list of repository sites

This commit is contained in:
Samidy 2025-10-29 21:56:19 +03:00 committed by GitHub
parent 8818169767
commit e0471d3c90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -532,7 +532,7 @@ browserAPI.runtime.onMessage.addListener((message, sender, sendResponse) => {
}
// Special handling for repository sites
const isRepoSite = ["github.com", "gitlab.com", "sourceforge.net"].some(
const isRepoSite = ["github.com", "gitlab.com", "sourceforge.net", "codeberg.org"].some(
(domain) =>
urlObj.hostname === domain || urlObj.hostname.endsWith("." + domain)
);
@ -641,7 +641,7 @@ function getStatusFromLists(url) {
// Special handling for repository hosting sites
const urlObj = new URL(url);
const domain = urlObj.hostname;
const isRepoSite = ["github.com", "gitlab.com", "sourceforge.net"].some(
const isRepoSite = ["github.com", "gitlab.com", "sourceforge.net", "codeberg.org"].some(
(domain) =>
urlObj.hostname === domain || urlObj.hostname.endsWith("." + domain)
);