ClearURLs / Rules

Rules database of the ClearURLs WebExtension.
https://docs.clearurls.xyz/latest/specs/rules/
GNU Lesser General Public License v3.0
129 stars 51 forks source link

🛒 Aliexpress rules need enhancement #17

Open backed80405 opened 3 years ago

backed80405 commented 3 years ago

still have these parameters,pls fix

example 1: https://www.aliexpress.com/item/4001147595415.html?pvid=61933b68-35f5-4820-98d0-0eaef897172d&_t=gps-id:pcDetailBottomMoreOtherSeller,scm-url:1007.33416.213724.0,pvid:61933b68-35f5-4820-98d0-0eaef897172d,tpp_buckets:668%230%23131923%230_668%23888%233325%2312_23416%230%23213724%230_23416%234721%2321967%23832_23416%234722%2321972%238_668%232846%238109%231935_668%235811%2327177%2329_668%232717%237561%23355_668%231000022185%231000066058%230_668%233422%2315392%23473_4452%230%23226710%230_4452%233474%2315675%23357_4452%234862%2324463%23590_4452%233098%239599%23112_4452%235108%2323442%23551_4452%233564%2316062%23817

backed80405 commented 3 years ago

example 2: https://www.aliexpress.com/item/1005002315715116.html?algo_exp_id=15a27a48-0762-4dee-a308-b2868ee8f632-6

aha999 commented 2 years ago

Just noticed this issue on my side and searched for it here... There's also another issue for this here: https://github.com/ClearURLs/Addon/issues/81 I have this link: https://www.aliexpress.com/item/1005001472307338.html?algo_exp_id=b13fd996-02c2-4b2c-94c9-26ec25eb7f8d-2&pdp_ext_f=%7B%22sku_id%22%3A%2212000016265829061%22%7D&pdp_pi=-1%3B13.8%3B-1%3B2.35%40salePrice%3BEUR%3Bsearch-mainSearch

How the link should look like: https://www.aliexpress.com/item/1005001472307338.html

maybe @KevinRoebert can help...

Edit: another: https://www.aliexpress.com/item/32799226539.html?pvid=c39045ba-fbad-4b93-bdd3-4d0e6ab59793&_t=gps-id%3ApcDetailBottomMoreThisSeller%2Cscm-url%3A1007.13339.274681.0%2Cpvid%3Ac39045ba-fbad-4b93-bdd3-4d0e6ab59793%2Ctpp_buckets%3A668%232846%238114%231999&pdp_ext_f=%257B%2522sku_id%2522%253A%252212000024121003397%2522%252C%2522sceneId%2522%253A%25223339%2522%257D&pdp_pi=-1%253B38.64%253B-1%253B-1%2540salePrice%253BEUR%253Brecommend-recommend

hackguy25 commented 2 years ago

The sheer amount of possible tracking parameters AliExpress uses is overwhelming, I propose a filter specific for URLs of the form https://www.aliexpress.com/item/[0-9]*.html and https://www.aliexpress.com/i/[0-9]*.html is added, which removes all of them. I have been doing this manually for years and it never broke the link. An example rule could be something like this:

"aliexpress item": {
    "urlPattern": "^https?:\\/\\/(?:[a-z0-9-]+\\.)*?aliexpress(?:\\.[a-z]{2,}){1,}\\/(i|item)\\/[0-9]*\\.html",
    "completeProvider": false,
    "rules": [
        ".*"
    ],
    "referralMarketing": [],
    "rawRules": [],
    "exceptions": [],
    "redirections": [],
    "forceRedirection": false
}

Disclaimer: I am not well-versed with regex, so please double check the urlPattern.