Crates.io | tracking-params |
lib.rs | tracking-params |
version | 0.1.6 |
source | src |
created_at | 2022-12-30 18:51:53.740606 |
updated_at | 2023-01-09 18:03:52.229896 |
description | Removes unwanted tracking parameters from URLs |
homepage | |
repository | https://github.com/mustakimali/privacy-redirect |
max_upload_size | |
id | 748002 |
size | 26,095 |
Parser rules are defined in rules.rs file.
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
);