mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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
|
// Strip tracking
|
||||||
stripTracking = text => text
|
stripTracking = text => text
|
||||||
|
.replace(/tracking\.(printabout\.nl[^?]+)\?.*/gsi, (...m) => m[1])
|
||||||
.replace(/^.+awstrack\.me\/.+(https:%2F%2F[^/]+)/gsi, (...m) => decodeURIComponent(m[1]))
|
.replace(/^.+awstrack\.me\/.+(https:%2F%2F[^/]+)/gsi, (...m) => decodeURIComponent(m[1]))
|
||||||
.replace(/([?&])utm_[a-z]+=[^&?#]*/gsi, '$1')
|
.replace(/([?&])utm_[a-z]+=[^&?#]*/gsi, '$1')
|
||||||
.replace(/&&+/, '');
|
.replace(/&&+/, '');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue