Cimbali / CleanLinks

Converts obfuscated/nested links to genuine clean links.
https://addons.mozilla.org/en-GB/firefox/addon/clean-links-webext/
Mozilla Public License 2.0
76 stars 2 forks source link

Let user convert obfuscated link in Location bar only #62

Closed Cimbali closed 5 years ago

Cimbali commented 5 years ago

Right now the option "Clean outgoing HTTP Requests" is not very clear. It is more about the technique used (using webRequests rather than injecting javascript in the page) than about the UX.

What the users should be faced with is the choice of either only cleaning links that change the page (i.e. clicked, or "in Location bar only") or whether the add-on looks at all the HTTP traffic.

Furthermore, we really need both ways of cleaning the page:

So we should:

  1. Detect in webRequests whether the link is a "top level" request, modifying the location bar etc (Probably with documentUrl or frameId).
  2. Change the preference to modify either all requests or only "top level" requests, always with both mechanisms.