mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-09-15 08:20:18 +03:00
Update list of tracking parameters
The browsers Firefox and Brave also implement URL parameter stripping. The list of tracking parameters in Fedilab is updated to match the combined list of these implementations/browsers.
This commit is contained in:
parent
6b168c302a
commit
d73a8a8325
1 changed files with 72 additions and 21 deletions
|
@ -397,34 +397,85 @@ public class Helper {
|
|||
public static final int NOTIFICATION_USER_NOTIF = 411;
|
||||
public static final int NOTIFICATION_THEMING = 412;
|
||||
/*
|
||||
* List from ClearUrls
|
||||
* https://gitlab.com/KevinRoebert/ClearUrls/blob/master/data/data.min.json#L106
|
||||
* Sources for the list of tracking parameters:
|
||||
* - Firefox: https://firefox.settings.services.mozilla.com/v1/buckets/main/collections/query-stripping/records
|
||||
* - Brave: https://github.com/brave/brave-core/blob/master/components/query_filter/utils.cc
|
||||
*/
|
||||
private static final String[] UTM_PARAMS = {
|
||||
"utm_\\w+",
|
||||
"ga_source",
|
||||
"ga_medium",
|
||||
"ga_term",
|
||||
"ga_content",
|
||||
"ga_campaign",
|
||||
"ga_place",
|
||||
"yclid",
|
||||
"ref_\\w+",
|
||||
"__hsfp",
|
||||
"__hssc",
|
||||
"__hstc",
|
||||
"__s",
|
||||
"_bhlid",
|
||||
"_branch_match_id",
|
||||
"_branch_referrer",
|
||||
"_gl",
|
||||
"_hsenc",
|
||||
"_kx",
|
||||
"_openstat",
|
||||
"at_recipient_id",
|
||||
"at_recipient_list",
|
||||
"bbeml",
|
||||
"bsft_clkid",
|
||||
"bsft_uid",
|
||||
"ck_subscriber_id",
|
||||
"dclid",
|
||||
"et_rid",
|
||||
"fb_action_ids",
|
||||
"fb_action_types",
|
||||
"fb_source",
|
||||
"fb_ref",
|
||||
"fb_comment_id",
|
||||
"fbclid",
|
||||
"action_object_map",
|
||||
"action_type_map",
|
||||
"action_ref_map",
|
||||
"gs_l",
|
||||
"gbraid",
|
||||
"gclid",
|
||||
"guce_referrer",
|
||||
"guce_referrer_sig",
|
||||
"h_sid",
|
||||
"h_slt",
|
||||
"hsCtaTracking",
|
||||
"hsctatracking",
|
||||
"igsh",
|
||||
"igshid",
|
||||
"irclickid",
|
||||
"mc_eid",
|
||||
"mkt_tok",
|
||||
"hmb_campaign",
|
||||
"hmb_medium",
|
||||
"hmb_source",
|
||||
"[\\?|&]ref[\\_]?"
|
||||
|
||||
"ml_subscriber",
|
||||
"ml_subscriber_hash",
|
||||
"msclkid",
|
||||
"mtm_cid",
|
||||
"oft_c",
|
||||
"oft_ck",
|
||||
"oft_d",
|
||||
"oft_id",
|
||||
"oft_ids",
|
||||
"oft_k",
|
||||
"oft_lk",
|
||||
"oft_sk",
|
||||
"oly_anon_id",
|
||||
"oly_enc_id",
|
||||
"pk_cid",
|
||||
"rb_clickid",
|
||||
"s_cid",
|
||||
"sc_customer",
|
||||
"sc_eh",
|
||||
"sc_uid",
|
||||
"si",
|
||||
"sms_click",
|
||||
"sms_source",
|
||||
"sms_uph",
|
||||
"srsltid",
|
||||
"ss_email_id",
|
||||
"ttclid",
|
||||
"twclid",
|
||||
"unicorn_click_id",
|
||||
"vero_conv",
|
||||
"vero_id",
|
||||
"vgo_ee",
|
||||
"wbraid",
|
||||
"wickedid",
|
||||
"yclid",
|
||||
"ymclid",
|
||||
"ysclid"
|
||||
};
|
||||
public static int counter = 1;
|
||||
private static int notificationId = 1;
|
||||
|
|
Loading…
Reference in a new issue