Skip to content

Comment on Copy & paste some text from this article. Notice anything funny?

Comments

In case anybody else doesn't see it immediately (it took me a couple of tries) -- the 'funny' bit is that it automagically appends "Read More: <link>" to your selection.

I haven't pored through their code, but I already know that my initial suspicion (binding CTRL+C with JS) isn't accurate, as right-clicking -> copy also appends it.

It's interesting at the very least, and I don't know how they're doing it. Anybody have an idea?

In fact, your initial suspicion seems to be correct after a (very quick) glance at the code. They are handling both of those cases separately.

http://tcr.tynt.com/javascripts/Tracer.js

I didn't notice because I highlighted + middle clicked.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.