mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-09 06:28:28 +03:00
Strip tracking printabout.nl
This commit is contained in:
parent
5f788dfda7
commit
304c55f038
1 changed files with 1 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ const
|
|||
|
||||
// Strip tracking
|
||||
stripTracking = text => text
|
||||
.replace(/tracking\.(printabout\.nl[^?]+)\?.*/gsi, (...m) => m[1])
|
||||
.replace(/^.+awstrack\.me\/.+(https:%2F%2F[^/]+)/gsi, (...m) => decodeURIComponent(m[1]))
|
||||
.replace(/([?&])utm_[a-z]+=[^&?#]*/gsi, '$1')
|
||||
.replace(/&&+/, '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue