mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 23:08:08 +08:00
Strip tracking of zalando.nl
This commit is contained in:
parent
dfc1058839
commit
50dffed895
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ const
|
|||
stripTracking = url => {
|
||||
url = url
|
||||
.replace(/tracking\.(printabout\.nl[^?]+)\?.*/i, (...m) => m[1])
|
||||
.replace(/(zalando\.nl[^?]+)\?.*/i, (...m) => m[1])
|
||||
.replace(/^.+(awstrack\.me|redditmail\.com)\/.+(https:%2F%2F[^/]+).*/i, (...m) => decodeURIComponent(m[2]))
|
||||
.replace(/^.+(www\.google|safelinks\.protection\.outlook\.com).+$/i, () => urlGetParam(url, 'url'))
|
||||
.replace(/^.+delivery-status\.com.+$/i, () => urlGetParam(url, 'fb'))
|
||||
|
|
Loading…
Reference in a new issue