Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

More and more I find that when I copy text from a news site, the site adds in its own advertising/footnote link to my clipboard, so that when I paste, the copied text is appended with something like:

[Text I copied] FOR MORE, GO READ AT

I admire the technical abilities that made this possible, but I would like to stop it on my browser. I looked through about:config for "clipboard" and "copy," but the only setting I found was autocopy on highlight.

Is there a good way to stop this so that when I copy I get only the text I highlighted, relying only on Firefox's built-in copy feature and not triggering anybody's JavaScript or other site customizations? I don't like sites telling my browser how to work.

As an example, copy one of the fun "facts" here - when you paste, you'll have the following text appended:

Read more:

They aren't just hijacking the control-C keystroke, I get it when I select "copy" from the right click menu, as well.

I would like my browser to completely ignore this trick.

I replicated this on Firefox, IE, and Google Chrome.

share|improve this question
I think that IE doesn’t do that. – kinokijuf Feb 13 '12 at 17:25
Are you pressing [Ctrl]+[C] to copy? The system's copy hotkey may be getting intercepted by JavaScript and setting Selecton+Junk to the Clipboard. A more likely case is that there is hidden text (via CSS) that is being included in your selections. If you include a link to such an article, we can examine it and find a workaround or solution to this horrible practice. – iglvzx Feb 13 '12 at 23:59
Further reading: – Josh Lee Feb 27 '12 at 16:23
up vote 5 down vote accepted

It turns out this JavaScript code is being served by a "service" called Redirecting to in my hosts file solved the problem for me. From what I read elsewhere, there may be multiple servers that need to be blocked. Adblock list subscriptions may also take care of the problem, and you may be able to set up a filter in your ad blocking software to correct it.

What I would really like would be a flag in about:config to remove permission for JavaScript to modify the clipboard.

share|improve this answer

To disable this behavior in Firefox:

  1. In the URL bar, type: about:config
  2. Press Enter
  3. In the search box, type: dom.event.clipboardevents.enabled
  4. Double-click it to toggle its value to false.
share|improve this answer

What you describe only happens when I select one of the advertisement links that is underlined in green:

Advertisement Link

So when you copy that, nobody is hi-jacking your clipboard. You're copying the hyperlink from the website.

To prevent these links from being inserted into the website, look into advertisement blocking solutions for your browser.

share|improve this answer
No, I am afraid it happens on every line. However, I've discovered it may be blocked by some ad blocking lists. – skiphoppy Feb 15 '12 at 22:03
I tried it with Firefox, Chrome and IE. They all showed the same behavior. I assume where the links are placed and how they look might even differ between instances. – Oliver Salzburg Feb 15 '12 at 22:56
Did you read the answer I gave about tynt? Apparently tynt is mercifully blocked on your machine or network. It was for a coworker of mine, too. The behavior I was getting was totally different from what you describe. I was getting text inserted, the words "Read more:", not just a hyperlink. – skiphoppy Feb 17 '12 at 14:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .