Posts

  |  Thor Galle

Selecting text where you can't

Published on November 28th, 2018

Sometimes you want to copy-paste text from a web page, but it won't work. Here are a few common reasons and workarounds.

1. The text is embedded in a link

The text might be contained by a link. If you click+drag to select text, you will move the link element! Sometimes it is not visible that the text you're trying to select is, in fact, a link.

Solution: hold the ALT key while selecting (Option key on Mac). This will allow you to select text in a clickable area like a button

Try to select me!

2. Selecting is intentionally disabled on the site

The site developer probably does not want you to copy the text. This happens regularly on news websites. They include JavaScript code that captures all your clicks and selections and 'kills' these events. Do not try this on a site where you don't want to lose progress of some sort

Solution: block JavaScript on the site

  1. Install the μBlock Origin plugin (Firefox, Chrome, Safari, Microsoft Edge)

  2. Click on the μBlock icon to scripts for the site

  3. Reload the page

  4. Copy/pasting is now possible.

You want to re-enable the JavaScript after your copy-paste, a lot of sites depend on it today to function properly.

PS: μBloc Origin is a versatile, lightweight and open-source ad-blocker. It is probably better than other adblock plugins you might have installed.


    Licensed CC-BY-NC-ND 4.0 · 2024 · Contact · RSS