mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03:00
Improved stripTracking
This commit is contained in:
parent
f9e0cc40a4
commit
ddbe6b2a75
1 changed files with 2 additions and 2 deletions
|
|
@ -43,6 +43,7 @@ const
|
||||||
.replace(/^.+(www\.google|safelinks\.protection\.outlook\.com).+$/i, () => urlGetParam(url, 'url'))
|
.replace(/^.+(www\.google|safelinks\.protection\.outlook\.com).+$/i, () => urlGetParam(url, 'url'))
|
||||||
.replace(/^.+delivery-status\.com.+$/i, () => urlGetParam(url, 'fb'))
|
.replace(/^.+delivery-status\.com.+$/i, () => urlGetParam(url, 'fb'))
|
||||||
.replace(/^.+go\.dhlparcel\.nl.+\/([A-Za-z0-9_-]+)$/i, (...m) => base64Url(m[1]))
|
.replace(/^.+go\.dhlparcel\.nl.+\/([A-Za-z0-9_-]+)$/i, (...m) => base64Url(m[1]))
|
||||||
|
.replace(/^(.+mopinion\.com.+)\?.*$/i, (...m) => m[1])
|
||||||
// Mandrill
|
// Mandrill
|
||||||
.replace(/^.+\/track\/click\/.+\?p=.+$/i, () => {
|
.replace(/^.+\/track\/click\/.+\?p=.+$/i, () => {
|
||||||
let d = urlGetParam(url, 'p');
|
let d = urlGetParam(url, 'p');
|
||||||
|
|
@ -293,8 +294,7 @@ export const
|
||||||
|| [
|
|| [
|
||||||
'email.microsoftemail.com/open',
|
'email.microsoftemail.com/open',
|
||||||
'github.com/notifications/beacon/',
|
'github.com/notifications/beacon/',
|
||||||
'mandrillapp.com/track/open',
|
'/track/open', // mandrillapp.com list-manage.com
|
||||||
'list-manage.com/track/open',
|
|
||||||
'google-analytics.com'
|
'google-analytics.com'
|
||||||
].filter(uri => value.toLowerCase().includes(uri)).length
|
].filter(uri => value.toLowerCase().includes(uri)).length
|
||||||
)) {
|
)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue