diff --git a/src/clean_url.js b/src/clean_url.js index 48463ff1..3b861885 100644 --- a/src/clean_url.js +++ b/src/clean_url.js @@ -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('&', '&'))