MarkaPola / Linkificator

Firefox Add-on to convert text links into clickable links
12 stars 2 forks source link

Clean links #1

Closed FatOrangutan closed 9 years ago

FatOrangutan commented 9 years ago

I am trying to include the functionality of Clean Links addon (https://addons.mozilla.org/en-us/firefox/addon/clean-links/) in this addon since I don't like the idea of two addons scanning through all the links in every page. I had two questions:

  1. Is this possible, using the Custom Rules?
  2. If yes, can you give me an example of what to enter in the Pattern and URL fields?

Thanks.

MarkaPola commented 9 years ago

Linkificator and 'Clean Links' do not work on the same elements of HTML documents. Linkificator does not process anchor tags (<a>) so adding a custom rule will not help because this rule will never be applied to <a> elements. The solution seems to install both extensions and ensure 'Clean Links' is configured in delegation mode (default). So Linkificator will transform all URLs in anchors and, by clicking on these links, 'Clean Links' will clean-up, if needed, the URL.