MozillaZine

[Ext] Clean Links 2.4

Announce and Discuss the Latest Theme and Extension Releases.
diegocr

User avatar
 
Posts: 182
Joined: July 7th, 2008, 1:02 pm

Post Posted September 15th, 2013, 12:25 pm

Hi there,

Usually i announce my addons on this thread, but i think the changes made to the last release of Clean Links deserves a new thread.

For those unaware, Clean Links is a privacy tool intended to convert obfuscated/nested links to genuine clean links.

Eg: http://example.com/aHR0cDovL3d3dy5nb29nbGUuY29t ➠ http://www.google.com

It also allows to remove affiliate/tracking tags from URLs by the use of configurable patterns, being the most common used ones defined by default (ie, utm, aff, ref, etc)

CleanLinks is Featured on AMO and works with Firefox for Android 10.0a1 - 26.*, Firefox 8.0 and later, SeaMonkey 2.3 and later.

AMO Listing - GitHub Repository

The changes made to version 2.4 are as follow:

✔ Implemented HTTP Observer to catch 3xx redirections. For example, this should make possible to clear links hidden behind shortened URLs. This option is turned off by default, to use it enable "Redirect Watcher"

✔ Added option to skip links by their domain. By default the following domains are configured:

- accounts.google.com
- docs.google.com
- translate.google.com
- login.live.com
- plus.google.com
- www.facebook.com
- twitter.com
- static.ak.facebook.com
- www.linkedin.com

So, links such as "http://twitter.com/foo=http://nested.com" will be ignored.

✔ Fixed CTRL+Click handling and memory leak introduced in the last version (Ie, a compartment was keep resident when disabling/uninstalling the add-on)

✔ While previously the add-on just worked over HTTP and FTP links, this version should now work over any standard protocol as long it matches the pattern "[a-z]+:/"

✔ The empty hash-tag should no longer be added while on Event Delegation mode.

✔ The location/url-bar should no longer blink unless "Highlight Cleaned Links" option is turned on.

✔ "Remove From Links" pattern is now case-insensitive.

✔ window.open() calls are now intercepted and the link cleaned.

✔ Added cmd_copyLink's controller wrapper to clear links before they are copied to the clipboard using context-menu's "Copy Link Location" - Under Firefox for Android this should work over any of the items on the context-menu which involves handling links (ie, Copy Link, Open in NewTab, Bookmark, etc)

✔ Fixed issue with the toolbar button disappearing on browser updates.

✔ The patterns used on previous versions has been changed due the "Skip Domains" addition, thus the settings will be reset with this update.
Last edited by diegocr on September 19th, 2013, 9:30 am, edited 1 time in total.
You have your way. I have my way. As for the right way, the correct way, and the only way, it does not exist...
https://addons.mozilla.org/user/diegocr/

fire.Man
 
Posts: 66
Joined: November 6th, 2009, 7:13 am

Post Posted September 16th, 2013, 9:45 pm

hi diegocr
what is the RegEx syntax?
for instance, i'm trying to remove "?epl=" on links on this test page:
http://www.thefinfuelvaporizer.com/#
i'm used to PCRE but but CL keeps warning me of a bad expression when i try to do this:
\?epl=.+
or this...
\?epl=*

also tried a few other combinations, but nothing has worked so far

also i would suggest considering implementing a regular config UI with an edit control so expressions can be entered one per line - the current design is rather messy IMO

would also be good to make use of a right and/or middle click on the toolbar icon - such as opening the config UI on middle click

diegocr

User avatar
 
Posts: 182
Joined: July 7th, 2008, 1:02 pm

Post Posted September 17th, 2013, 8:11 am

Hi fire.Man,

You just have to specify the query key, and their value will be automatically stripped out at cleaning.

For example, by default we have "utm_\w+", that'll involve that "xyz.com/?utm_source=foo" is converted to "xyz.com/" - Or "foo.com/?id=2&utm_partner=john&acc=45" to "foo.com/?id=2&acc=45"

So, in your case you just need to enter "epl|" at the beginning of the "Remove from Links" pattern.

I'll keep your suggestions in mind for a further version, thanks.
You have your way. I have my way. As for the right way, the correct way, and the only way, it does not exist...
https://addons.mozilla.org/user/diegocr/

fire.Man
 
Posts: 66
Joined: November 6th, 2009, 7:13 am

Post Posted September 17th, 2013, 11:42 am

hmmm if i use only "epl", what happens when you come across a link like "http://steeple.org", or "site.com/steeple"?

diegocr

User avatar
 
Posts: 182
Joined: July 7th, 2008, 1:02 pm

Post Posted September 17th, 2013, 12:34 pm

Nothing, since that doesn't match a key=value pair.
You have your way. I have my way. As for the right way, the correct way, and the only way, it does not exist...
https://addons.mozilla.org/user/diegocr/

MC Fat Tongue

User avatar
 
Posts: 59
Joined: July 27th, 2013, 8:18 am

Post Posted September 17th, 2013, 8:10 pm

Hi Diego,

I'm reporting back as promised.

I've been using the new Clean Links 2.4 for a few days now, and all appears to be working as it should. I've not found any problems.

Kind regards.

fire.Man
 
Posts: 66
Joined: November 6th, 2009, 7:13 am

Post Posted September 18th, 2013, 6:24 am

thanks diegocr
the other dumb mistake i made was testing with Delegation mode active and expecting to see changes when i reloaded the page :)

evofire
 
Posts: 5
Joined: September 7th, 2013, 9:18 am

Post Posted September 19th, 2013, 10:44 pm

hi diegocr
i just checked my email, thx for your reply, about the 3)Yes, upgraded to 2.4.1 fixed the Clean Links icon at the bottom addon bar problem, thx
and the 2) about imdb.com , why i dont enabled "Event Delegation Mode",
please check the clip here -> http://youtu.be/-v4JDpYGSSE

another question...
i search the Clean Links xpi, found some code is about the css of the
"Highlight Cleaned Links", how to change it ?
because if visited a link, actually the link color is changed
but if enabled "Highlight Cleaned Links", all links is rgb(0,0,0)
how to change it just with a underline
or a light background with a border
ofc dont force the link color to rgb(0,0,0)
may be like this -> http://youtu.be/pf4J7B0RLQ4

diegocr

User avatar
 
Posts: 182
Joined: July 7th, 2008, 1:02 pm

Post Posted September 20th, 2013, 9:27 am

Hi Folks,

Thank you all for your tests and reporting back. Well, i can now announce the release of the version 2.4.1, which has been fully approved already and fixes the following issues:

✔ Check if the protocol for the cleaned link can be handled by the browser, falling back to the original link if it doesn't. (there were issues with magnet: links resolving to udp://...)

✔ Fixed issue with the toolbar button being incorrectly re-attached on restart.


@evofire

You have a good point there, FireGestures could indeed be a good reason not to use Delegation, issue 3 in the tracker suggest to use an additional http observer to catch urls being loaded, thus neither Delegation nor DOM traversing would be needed to achieve the purpose of cleaning links (and hence it'll be a perfect companion to FireGestures), but i'm afraid this might slows down the browser... i'll need to do several tests before this gets implemented, so this isn't going to be available in the short term, if it does..

I've filed issue 5 for you, stating the highlighting style should be configurable. Version 2.4.2 is already in the making, to add that and other minor improvements.
You have your way. I have my way. As for the right way, the correct way, and the only way, it does not exist...
https://addons.mozilla.org/user/diegocr/

evofire
 
Posts: 5
Joined: September 7th, 2013, 9:18 am

Post Posted September 21st, 2013, 4:36 am

Thankyou diegocr,

this is good news for me, all my problem is the highlighting style only, so we can know which link is visited, no need to open the link again

it is useful of the web page content many redirect link

Eiland
 
Posts: 12
Joined: November 10th, 2005, 4:00 am
Location: Banja Luka, BiH

Post Posted September 22nd, 2013, 2:28 am

Any idea if the module will work for Thunderbird, too? get a lot of mails from FB telling me to check videos, with the link being like http://www.facebook.com/l/JAQHEGMRh/htt ... 2F74924830

diegocr

User avatar
 
Posts: 182
Joined: July 7th, 2008, 1:02 pm

Post Posted September 24th, 2013, 12:00 pm

Hi Eiland, next version will be compatible with Thunderbird (I'm atm working on this, and got it to properly catch nested links, but i need to do more tests)
You have your way. I have my way. As for the right way, the correct way, and the only way, it does not exist...
https://addons.mozilla.org/user/diegocr/

firefoxvn
 
Posts: 1
Joined: October 2nd, 2013, 4:12 am

Post Posted October 2nd, 2013, 4:30 am

Hi, diegocr. When middle click on the link, the new tab doesn't open new tab next to current tab.
Please fix this error. Thank you!

diegocr

User avatar
 
Posts: 182
Joined: July 7th, 2008, 1:02 pm

Post Posted October 2nd, 2013, 1:00 pm

Hi firefoxvn et all.

Version 2.4.2 has already been released so i'll take the chance to announce it, the changes on this release are as follow:

✔ Added Thunderbird compatibility (Event Delegation Mode, only)

✔ Highlight's Style is now configurable.

✔ Fixed Toolbar Button's Popup.

✔ Redirect Watcher now uses channel's URI rather than originalURI...

✔ Added option to turn off Copy Link Location's controller.

firefoxvn, your concern is already fixed for 2.4.3.

Btw, If someone want to help testing by installing Clean Links straight from its repository check out this extension:

https://addons.mozilla.org/addon/GitHub ... Installer/

Cheers.
You have your way. I have my way. As for the right way, the correct way, and the only way, it does not exist...
https://addons.mozilla.org/user/diegocr/

Apollo702
 
Posts: 19
Joined: June 2nd, 2011, 2:31 am

Post Posted October 3rd, 2013, 9:34 pm

I apologize for not responding sooner as I have not been able to get online for weeks now. Anyways, I just updated CL again and there still is an icon issue:

It no longer vanishes but strangely enough it still wont stay in place. Normally when icons get jumpy they seem to be anchored to the far right of the navigation bar. I have CL placed in a custom toolbar and it always jumps just one spot to the right.

I tried a fresh localstore.rdf file and the problem persists. I have many icons and this is the only one struggling. Do you have any ideas on why or what can be done?

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 2 guests