There are a few ways to enable the inability to right-click on web pages. While I do not condone copyright theft or copying of entire pages, I do support the ability to take quotes, useful pieces of code or other snippets from pages for your own use. And if you need to copy only parts of the text, then these options may make more sense.
How to Enable Right-Click on Websites?
If you land on a webpage and want to copy something from it, try pasting void document oncontextmenu=null into the URL bar of the page. You should now be able to right-click as normal. And do what you need to do. You will need to do this every time you want to copy something. But yes it works like a charm on many pages.
It is not universal though as there is a range of ways website owners use to block right-click. If that doesn’t work. Then try one of these methods for the void document.
Save the Page:
This is the easiest way I have found around the right-click block is to save the entire page as HTML. Then open it in the browser again and can right-click, copy, paste and do whatever I like. This is actually very useful if there are multiple quotes or pieces of code I want to use for the void documents.
This works with most browsers although if you use Edge, you may have to save the page as HTML. Then open it in Firefox or Chrome to get it working properly. I had trouble getting it to work and you may do too.
If you use in Firefox:
- Open a new tab and type ‘about config’.
If you use in Chrome:
- Select the three-dot menu icon in the top right and select Settings.
- Then Select Advanced and Content Settings within Privacy and Security.
Use a Browser Plugin:
I use Firefox Quantum and over thousands of results came up for ‘right click’. Some of them are irrelevant but the top few plugins. Where exactly what I was looking for. You should find the same whatever browser you use.
Going to the Source:
If you only occasionally need to copy something from web pages. Then you may just find it easier to view the source code. While adding void document oncontextmenu=null to the URL bar takes less time. Having the code around isn’t always going to be convenient. just Remember Ctrl + U will be.
Open the page you want to. Then right-click on and hit Ctrl + U. It will bring up a new tab showing the source code of the page. You can scour the code for the text you need to Ctrl + F to find it. You can also then be able to copy the text as required and without any problems. Both Ctrl + U and Ctrl + F will work on all recent browsers. The ability to right-click and copy text from web pages should be used sparingly and only when necessary. A lot of time and effort goes into creating content for you to enjoy so please copy responsibly!
I hope now you get to use void document oncontextmenu=null. And I hope you liked my article