Visiting Less Wrong after being absent for a while can be a major time sink. The sidebar recent-posts and recent-comments links (which I usually have blocked, but not always; I haven't installed the relevant extensions on the system I'm on yet) draw me into interesting discussions, which frequently link back to other discussions, and so on.

To limit how deep I get drawn in, I try to hold back from reflexively clicking links in comments and posts. Instead I just hover over them (or press and hold on a touchscreen) to view the address, hoping to get a general idea of what they're about and whether I'm familiar with them (and occasionally saving them to a folder if I think I might want them later).

Recently, though, I've noticed that LW is replacing off-site links with indirect links, passed through the domain api.viglink.com. This means I can't just glance at the URL to see where it points; I have to either open it or paste it into the address bar and scroll through it looking for the embedded URL of the actual link. Is it important for it to do that? Is there a way to turn that function off, or a browser extension (preferrably Android-compatible) to reverse it?

(Initially posted about here in the current open thread, but I decided I wanted it to be more visible.)

New to LessWrong?

New Comment
20 comments, sorted by Click to highlight new comments since: Today at 2:35 PM

The Adblock Plus add-on for Firefox and Chrome will hide viglinks.

So will adding the line

0.0.0.0 api.viglink.com

to the /etc/hosts file according to at least a couple of writings on the web.

Thanks. Where should I look for that file, on a Windows XP or Vista PC or on an Android 4 tablet?

You'll have probably found it by now, but for anyone else, on Windows it's typically under your Windows install directory in .\System32\drivers\etc\hosts. On Android it's under /system/etc/hosts, but you need root access to edit it.

Edit: just remembered, you'll probably need elevated access on Windows boxes as well, and this can get a bit tricky on Vista. Right-click on your notepad icon and select "run as administrator" (which you'll only have if your account has admin privileges). Then open the hosts file from the above path inside notepad and edit it there.

Am going to refer you to google since I do not run Windows or Android.

Unless what I have read is unusually misinformative, though, it is possible on both. (On Android you need access to root.)

[-]CWG9y00

Another option: Saving to "Pocket" (getpocket.com) and reading there works on Android, and presumably on other platforms.

See http://lesswrong.com/lw/40p/proposal_all_amazon_hyperlinks_get_less_wrongs/

(Second hit in Google for "viglink site:lesswrong.com".)

Yes; I use that code on Amazon myself. Is there a point in particular you want to make about it?

Um... it explains why the Viglink stuff is there? Which is what you made a post to ask?

Recently, though, I've noticed that LW is replacing off-site links with indirect links, passed through the domain api.viglink.com. This means I can't just glance at the URL to see where it points; I have to either open it or paste it into the address bar and scroll through it looking for the embedded URL of the actual link. Is it important for it to do that?

Could you quote the particular passage that explains why all links to any external site are being intercepted and passed through api.viglink.com? Or did you mean to link a different Google hit? I thought I searched the site before asking the question, but I may have neglected to.

??? That page is exactly on point, as is the very first comment. What exactly don't you understand here?

Everything I see relates to appending a Viglink code, and only to links to Amazon. Again, could you quote the part I'm overlooking?

Er, from the first comment, the one I mentioned:

Back in August 2010, I helped install an even more universal solution in the form of VigLink to experiment and see if it would work well for us.

What, exactly, did you think 'even more universal' than an Amazon referral code meant?

I thought it meant more universal than lukeprog's proposed pseudocode; i.e., something guaranteed to work for all Amazon links (though as the replies point out, not when you open them in a new tab or window). Thanks for providing the quote.

(Also, to be pedantic: that's the most recent top-level comment, not the first. You might have LW set to sort by New or another setting on your browser.)

(It's also the top one if you sort comments by "Best".)

What's the purpose of the indirect linkage, why is foreign substance introduced into our precious bodily fluids, erm links?

"1. Sign Up Simply add a snippet of code to your site. 2. Get Clicked Link as you always have (or let us help). 3. Get Paid When a reader buys, you get a cut." Alternative to ads, presumably.

This doesn't explain why this happens to all links, not just the ones to amazon.com.

[-]Pfft10y00

It's not just for Amazon, it's also eBay etc. "VigLink covers more than 90% of the top 500 Internet retailers with affiliate programs".

It even intercepts links to appliedrationality.org. Don't they own LW in the first place?

It looks like the problem was fixed in the last day or so. (Either that, or Chrome for Android updated so that clicking and holding a link now shows what the site wants it to (the destination URL) rather than the actual link target (the viglink URL).)

Edit: Nope, it's back, or still happens for some links and not others.