File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ The following query string parameters are stripped:
12
12
13
13
- fbclid
14
14
- gclid
15
+ - mkt_tok
15
16
- utm_source
16
17
- utm_medium
17
18
- utm_term
Original file line number Diff line number Diff line change 1
- var utm_re = new RegExp ( '([\?\&]((g|fb)clid|utm_(source|medium|term|campaign|content|cid|reader|name))=[^&#]+)' , 'ig' ) ;
1
+ var utm_re = new RegExp ( '([\?\&](mkt_tok| (g|fb)clid|utm_(source|medium|term|campaign|content|cid|reader|name))=[^&#]+)' , 'ig' ) ;
2
2
3
3
chrome . webRequest . onBeforeRequest . addListener ( function ( details ) {
4
4
var url = details . url ;
5
5
var queryStringIndex = url . indexOf ( '?' ) ;
6
- if ( url . indexOf ( 'utm_' ) > queryStringIndex || url . indexOf ( 'clid' ) > queryStringIndex ) {
6
+ if ( url . indexOf ( 'utm_' ) > queryStringIndex ||
7
+ url . indexOf ( 'clid' ) > queryStringIndex ||
8
+ url . indexOf ( 'mkt_tok' ) > queryStringIndex ) {
7
9
var stripped = url . replace ( utm_re , '' ) ;
8
10
if ( stripped . charAt ( queryStringIndex ) === '&' ) {
9
11
stripped = stripped . substr ( 0 , queryStringIndex ) + '?' +
You can’t perform that action at this time.
0 commit comments