feat(clean_url): vkontakte url

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

View File

@ -44,6 +44,11 @@ const deSafelink = (urlStr) => {
url = new URL(url.searchParams.get('url'))
}
// VKontakte
if ((url.hostname === 'vk.com' || url.hostname === 'vkontakte.ru') && url.pathname === '/away.php') {
url = new URL(url.searchParams.get('to'))
}
// Google Ads
if (url.hostname.endsWith('doubleclick.net') || url.hostname.endsWith('googleadservices.com')) {
url = new URL(url.href.replaceAll('&', '&'))