feat(clean_url): esvalabs

This commit is contained in:
MDLeom 2025-11-25 07:05:00 +00:00
parent d42792a433
commit 7d752c6167
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 4 additions and 3 deletions

View File

@ -26,7 +26,8 @@ const safeLinks = [
'safelinks\\.protection\\.outlook\\.com',
'\\.protection\\.sophos\\.com',
'linkprotect\\.cudasvc\\.com',
'ctp\\.trendmicro\\.com'
'ctp\\.trendmicro\\.com',
'urlsand\\.esvalabs\\.com'
]
const deSafelink = (urlStr) => {
@ -57,8 +58,8 @@ const deSafelink = (urlStr) => {
url = new URL(url.searchParams.get('to'))
}
// WhatsApp
if (url.hostname === 'l.wl.co' && url.pathname === '/l') {
// WhatsApp, Esvalabs
if ((url.hostname === 'l.wl.co' && url.pathname === '/l') || url.hostname === 'urlsand.esvalabs.com') {
url = new URL(url.searchParams.get('u'))
}