feat(clean_url): whatsapp url

This commit is contained in:
MDLeom 2025-05-19 10:34:19 +00:00
parent 552bb8887c
commit 8ba26943e7
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,11 @@ const deSafelink = (urlStr) => {
url = new URL(url.searchParams.get('to'))
}
// WhatsApp
if (url.hostname === 'l.wl.co' && url.pathname === '/l') {
url = new URL(url.searchParams.get('u'))
}
// Google Ads
if (url.hostname.endsWith('doubleclick.net') || url.hostname.endsWith('googleadservices.com')) {
url = new URL(url.href.replaceAll('&', '&'))