Addon icon indicating copy to clipboard operation
Addon copied to clipboard

Whitelist domains (skip list)

Open DmitrySandalov opened this issue 3 years ago • 1 comments

Problem:

  • Opening the following link with CleanURLs 1.25.0 default settings gives 404 error https://www.email.kommersant.ru/click.html?x=a62e&lc=ru2T&mc=o&s=6WjJ&u=y&z=euvioDh&
  • Expected: the browser would open resolved link https://www.kommersant.ru/doc/5481757

Workaround:

  • Disabling Filter in Configs (of CleanURLs) or disabling extension opens the link as expected

Suggestions:

  • Add a new user-defined option to CleanURLs to have a list of domains, for which CleanURLs' filtering would be skipped (URLs would not be processed in any way)
  • (More sophisticated) have a key-value user-defined white list, where domains would be a key and params would be a value (or vice-versa), e.g. {"www.email.kommersant.ru": "x", "www.email.kommersant.ru": "s"} - only x and s would be kept as is for the specified domain (this whitelisting would have higher priority than data.json rules)

Motivation:

  • This would allow users to make a few fine tuning rules, while still using official data.json (without the need to host one themselves)
  • This would reduce development burden of adding some rarely non-widespread domains to the official data.json

DmitrySandalov avatar Jul 30 '22 00:07 DmitrySandalov

duplicate of #93

inson1 avatar Dec 15 '23 15:12 inson1