Select Language:
If you’re having trouble copying text from a webpage, there’s an easy solution to fix it. Sometimes, websites add special code that makes copying difficult or doesn’t allow you to copy at all. Luckily, you can bypass this problem by disabling the website’s copying restrictions temporarily.
Here’s a simple way to do it:
-
Open Your Browser’s Developer Tools
On a Windows PC, pressCtrl + Shift + I
.
On a Mac, pressCmd + Option + I
.
This opens a panel at the bottom or side of your screen. -
Go to the ‘Console’ Tab
Click on the ‘Console’ tab inside the developer tools. This is where you can type commands that affect the webpage. -
Enter the Copy-Blocking Code
Copy and paste the following line into the console:
javascript
document.querySelectorAll(‘*’).forEach(el => el.style.userSelect = ‘auto’); -
Press Enter
This command tells the webpage to allow text selection everywhere, making it possible to copy text that was previously blocked. -
Try Copying Again
Now, go back to the text you want to copy, select it, and try copying (right-click and select ‘Copy’ or useCtrl + C
/Cmd + C
). It should work now!
Note: This change only affects your current browsing session. If you refresh the page, you’ll need to repeat these steps.
This trick is quick and easy and helps you get around copy restrictions so you can save or use the content you need.