Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

It seems to be one common practice on websites which intend to give the user text for copying/pasting to place this text in an <input/> or <textarea/> and pre-select it for the user. However, these same websites often prevent the user from selecting the text manually by reverting the selection and blocking most mouse events whenever the user clicks on the element or tries to manually select it.

This is preventing me from copying/pasting this text. To copy in X11, one first selects text with the first mouse button. To paste, one uses the middle mouse button.

In my situation, since the browser implements its own sort of clipboard (with GTK+’s help?), I am able to use the context menu to copy the text from one part of the browser to another, such as the URI bar or page composer, and, once the text is in there, highlight it with the first mouse button and the paste it at the destination. However, this is an extra step and very annoying and limiting.

Is there any better way to work around this? Maybe a bookmarklet which would inhibit all JavaScript attempts to re-highlight any text at all?

share|improve this question
    
Could you post an example website? I get around this using this extension for firefox and Ctrl+C/Ctrl+V when I cannot get around it. –  terdon Mar 5 '13 at 18:56
    
An example ting was Google’s productforums. If you click the permalink button for a post such as (my post) productforums.google.com/d/topic/voice/f_kYf_SNyAY you will get such a forced-highlighting <input/>. I now see that the button itself is a link and right-click + “Copy Link Location” do populate X11’s middle-click clipboard properly. This might nullify the point of my question, I guess ;-). –  binki Mar 6 '13 at 1:52

1 Answer 1

If you're using gnome desktop, you could try merging the two clipboards together ala autocutsel, as was suggested in this superuser post. This way, when you right-click and select "copy", the data should also be sent to X for you to middle-click and paste.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.