feat(clean_url): ShopMy url

This commit is contained in:
MDLeom 2025-05-18 08:43:19 +00:00
parent 6823609786
commit 5d562cd88e
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,11 @@ const deSafelink = (urlStr) => {
url = new URL(url.searchParams.get('a'))
}
// ShopMy
if (url.hostname === 'api.shopmy.us' && url.pathname === '/api/redirect_click') {
url = new URL(url.searchParams.get('url'))
}
// Google Ads
if (url.hostname.endsWith('doubleclick.net') || url.hostname.endsWith('googleadservices.com')) {
url = new URL(url.href.replaceAll('&', '&'))