在我们之前的一篇文章中,我们已经了解了如何在禁用右键单击时将图像保存到您的 PC。现在让我们看看如何在禁用它的网站上启用右键单击,并从网页中复制文本。
在浏览时,我们经常会在随机网站上看到有用的信息,但是当我们想记录下来时,当我们看到一个窗口显示“对不起,此功能已被管理员禁用(Sorry, this functionality has been disabled by the administrator)”时,我们的努力是徒劳的,因为右键单击选项已被站点管理员禁用。如果这些信息是操作指南或其他东西,那么它有时可能是我们的救命稻草。记下它或再次解释它是一项费力的活动。一种选择是保存整个网页以供离线阅读。但如果您只需要复制部分文本,那么这些选项可能更有意义。
如何在网站上启用右键单击
让我们看一下重新启用右键单击网站并从右键单击禁用的网站或博客中复制的一些方法,这些网站或博客已通过浏览器设置或使用第三方工具在其网页上将其关闭。
- 使用阅读器模式
- 使用代码方法
- 从设置中禁用 JavaScript
- 其他方法
- 使用网络代理
- 使用浏览器扩展。
本质上,禁用此功能并在您尝试右键单击网页时显示窗口的代码是用JavaScript 编写(JavaScript)的。但是有一些方法可以绕过它。
1]使用阅读器模式
使用浏览器阅读器模式(Browser Reader Mode)(F9),然后查看右键单击是否有效。
2]使用代码方法
在这种方法中,您需要做的就是记住以下字符串,或者将其写在安全的地方:
javascript:void(document.oncontextmenu=null);
从现在开始,每当您遇到一个网页,其中右键单击选项已被禁用,只需复制上面的代码,将其粘贴到浏览器地址栏中,然后按 Enter。就是这样!
您现在可以即时访问右键单击上下文菜单选项。但是,这里的缺点是您每次都需要使用它才能访问右键菜单。
3]从设置中禁用JavaScript
您可以禁用JavaScript并阻止禁用右键单击功能的脚本运行。这篇文章将向您展示如何在 Internet Explorer、Chrome、Firefox 和 Opera 中禁用 JavaScript(disable JavaScript in Internet Explorer, Chrome, Firefox & Opera)。
禁用JavaScript后,返回网页然后重新加载。繁荣!您将能够像冠军一样访问右键菜单。但是,这种方法的缺点是您完全关闭了Javascript,这意味着它根本不会运行任何JavaScript代码,从而限制了网页的其他功能。因此,一旦完成复制,您需要再次在 Web 浏览器中重新启用JavaScript 。
4]其他方法
如果您的意图只是从网页复制文本,那么您可以通过查看网页的源代码轻松完成。按 Ctrl+U并找到所需的文本,然后复制。
另一种方法是将网页保存到您的计算机,使用Ctrl+S快捷键,双击打开它,然后复制必要的文本区域。
如果您不太喜欢检查浏览器的内部结构,那么总有其他方法可以解决这个问题。
5]使用网络代理
简而言之(Simply),网络代理位于您和Internet之间,可让您通过隐藏 IP 地址等详细信息来匿名浏览网站。您可以转到提供 Web 代理的站点,例如hide.me或filterbypass,然后输入已禁用右键单击选项的网页的URL 。检查删除脚本(Remove Scripts)选项,该选项可防止站点运行任何脚本。
6]使用浏览器扩展
如果您无法在上述任何一种方法中找到安慰,您可以随时向网上商店寻求帮助。只需(Just)在浏览器中安装扩展程序即可完成这项工作,而不会让您头疼。有许多扩展可用于此目的。您可以查看适用于Chrome的(Chrome)RightToCopy或适用于Firefox的(Firefox)Right To Click。
注意:(NOTE:)始终尊重版权(Copyrights)。很多(Many)时候,由于版权问题,网站会禁用右键单击选项,因为他们不希望自己的内容被记录下来。如果您正在处理的文本存在版权问题,则在复制时需要小心。此处未提出任何非法建议 - 仅使用您自己的浏览器和第三方工具(可在Google和Mozilla官方网站上获得)的变通方法。
How to enable right click on websites that have disabled it
In one of our previous posts, we have seen how to save images to your PC, when right-click iѕ disabled. Now let us take a lооk at how to enable right click on wеbsites that hаve disabled it, and coрy text from the web page.
While browsing, we often come across useful information on random websites, but when we want to note it down, our efforts go in vain when we see a window saying “Sorry, this functionality has been disabled by the administrator” because the right-click option has been disabled by the site administrator. If the information is a how-to guide or something, then it could be a lifesaver for us at times. Jotting it down or paraphrasing it again is a laborious activity. One option would be to save the entire web page for offline reading. But if you need to copy only parts of the text, then these options may make more sense.
How to enable right click on websites
Let us take a look at some of the ways to re-enable right click on websites & copy from right click disabled websites or blogs, which have turned it off on their web pages, via browser settings or by using third-party tools.
- Using Reader Mode
- Using a Code method
- Disabling JavaScript from Settings
- Other methods
- Using Web Proxy
- Using Browser Extensions.
Essentially the code which disables this feature and displays the window when you try to right-click on a web page is written in JavaScript. But there are some ways using which we can bypass it.
1] Using Reader Mode
Use the Browser Reader Mode (F9) and then see if right-click works.
2] Using a Code method
In this method, all you need to do is remember the below string, or write it down at someplace safe:
javascript:void(document.oncontextmenu=null);
From now on, whenever you come across a web page, in which the right-click option has been disabled, just copy the above code, paste it in the browser address bar and hit enter. That’s it!
You will now be able to access the right-click context menu options on the fly. But, the downside here is you need to use it every time in order to access the right-click menu.
3] Disabling JavaScript from Settings
You can disable JavaScript and prevent the script running which disables right-click features. This post will show you how to disable JavaScript in Internet Explorer, Chrome, Firefox & Opera.
Once you have disabled JavaScript, come back to the web page and then reload it. Boom! You will be able to access the right-click menu like a champ. But, the drawback of this method is that you are completely turning off the Javascript, which means it wouldn’t run any JavaScript codes at all, restricting the other functionalities of the web page. So, once are done copying, you need to re-enable JavaScript in your web browser again.
4] Other methods
If your intention is just to copy text from the web page then you can do it easily either by looking into the source code of the web page. Hit Ctrl+U and find the required text and then copy.
The other way is to save the web page to your computer, using Ctrl+S shortcut, double-click to open it, and then copy the necessary text area.
If you aren’t that much into checking the internals of your browser, there are always other ways using which you can get over with this.
5] Using Web Proxy
Simply put, a web proxy is something that sits between you and the Internet and lets you browse websites anonymously by hiding your details such as IP address. You can go to a site that offers web proxy, such as hide.me or filterbypass, and enter the URL of the web page where the right-click option has been disabled. Check the Remove Scripts option which prevents the site from running any scripts.
6] Using Browser Extensions
If you can’t find comfort in any of the above methods, you can always seek help from the web store. Just install the extension in the browser which does the job without giving you any headache. There are many extensions available for this purpose. You can check out RightToCopy for Chrome or Right To Click for Firefox.
NOTE: Always respect Copyrights. Many times, websites disable the right-click option, because of copyright issues as they do not want their content to be noted down. If the text you are handling has copyright issues, you need to be careful while reproducing it. Nothing illegal has been suggested here – only workarounds using your own browser and third-party tool which are available on the official Google & Mozilla websites.