tracking-params

Crates.iotracking-params
lib.rstracking-params
version0.1.6
sourcesrc
created_at2022-12-30 18:51:53.740606
updated_at2023-01-09 18:03:52.229896
descriptionRemoves unwanted tracking parameters from URLs
homepage
repositoryhttps://github.com/mustakimali/privacy-redirect
max_upload_size
id748002
size26,095
Mohammad Mustakim Ali (mustakimali)

documentation

https://docs.rs/tracking-params

README

tracking-params

Library to remove various known tracking parameters from a given URL.

Crates.io version Download docs.rs docs

Parser rules are defined in rules.rs file.

Example

let dirty_url = url::Url::parse("https://twitter.com/elonmusk/status/1608273870901096454?ref_src=twsrc%5EdUmBgUY").unwrap();
let clean_url = tracking_params::clean(dirty_url); // returns `Cleaned` which derefs to `url::Url`

assert_eq!(
    clean_url.to_string(),
    "https://twitter.com/elonmusk/status/1608273870901096454".to_string() // No `ref_src` tracking params
);
Commit count: 88

cargo fmt