Skip to content

Loading…

Interest in skipping t.co and similar? #1538

Open
clipperhouse opened this Issue · 3 comments

3 participants

@clipperhouse

Would it be in-scope of uBlock to include a “resolver” for t.co links? The DOM of Twitter (and Tweetdeck) usually include the destination URL as an attribute on the href’s.

I’ve implemented this in the past, it’s straightforward enough and can be done inexpensively.

@publicarray

Personally I think if it just t.co links than it is out of the scope. I mean you already created an add-on for that feature. However if for privacy/security reasons (so the user can see the destination url) we resolved link shorteners e.g. bit.ly links than I think people can benefit from that. Correct me if I am wrong but isn't there a caveat? To resolve resolve a url we need to make a request which of course can be a privacy concern. e.g. We send a request for a link (that could be logged) that the user potentially never clicked on.

@RoxKilly

If as @clipperhouse mentioned, the destination is listed as an attribute to the Anchor tag, then there will be no need to make any request.

I would agree though that implementing a feature that serves only one domain is too narrow.

@clipperhouse

Agree that it shouldn’t make a request, it should only take advantage of what’s in the DOM. Could do similarly for google.com. The attributes are:

Twitter: data-expanded-url
Google: data-href
Tweetdeck: data-full-url

Facebook uses a regular href but logging happens via an onclick, which could simply be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.