small ui fix
This commit is contained in:
@@ -999,11 +999,9 @@ function isValidImageUrl(url) {
|
||||
"rebrand.ly",
|
||||
"steamcommunity.com",
|
||||
"store.steampowered.com",
|
||||
"imgur.com",
|
||||
];
|
||||
if (bannedHosts.some((h) => host === h)) return false;
|
||||
if (host === "imgur.com" && !u.pathname.startsWith("/a/") && !u.pathname.startsWith("/gallery/")) return false;
|
||||
if (host === "steamcommunity.com") return false;
|
||||
const path = u.pathname.toLowerCase();
|
||||
return [".png", ".jpg", ".jpeg", ".gif", ".webp", ".avif"].some((ext) =>
|
||||
path.endsWith(ext),
|
||||
|
||||
Reference in New Issue
Block a user