adblock-lists icon indicating copy to clipboard operation
adblock-lists copied to clipboard

Clean Facebook URLs

Open fmarier opened this issue 1 month ago • 1 comments

From https://community.brave.app/t/copy-clean-link-doesnt-work-on-facebook/645771/2, the following URL:

https://www.facebook.com/watch/?v=1346180517208814&__cft__[0]=AZXVYHDsyFUS-sUmRNubMBuneMaDe4dapIjw--y4OO-86f7v4Br0TchpPEzWnMFy6bYe5w8abEIK_qPIevmQJBiPfaUio7dPLbnwD_e9ew8C1wE_PIy2FsqelpnSNRUssV1x9cyl33u-V3D_8dWfhBzOVFTmmm70SRZ03swAfrhoeT22aLzYp7J9H_NjT_RWRfzI1v4T7_FLc-MD8FphbP0y&__tn__=%2CO%2CP-R

should ideally be shortened to:

https://www.facebook.com/watch/?v=1346180517208814

fmarier avatar Nov 18 '25 23:11 fmarier

Firefox has the following rules:

  "facebook": {
    "queryParams": ["__cft__[0]", "__cft__%5B0%5D", "__tn__"],
    "topLevelSites": ["www.facebook.com"]
  }
  "facebook": {
    "queryParams": ["tracking", "extid", "mibextid"],
    "topLevelSites": ["www.facebook.com"]
  },

and Adguard also has that second block: https://github.com/AdguardTeam/AdguardFilters/blob/173a71d6e943284e22346ab23e9233c88e8f1b52/TrackParamFilter/sections/specific.txt#L1823-L1826

fmarier avatar Nov 18 '25 23:11 fmarier