如何解除网页禁止复制?

JavaScript019

如何解除网页禁止复制?,第1张

可以通过禁用浏览器的js功能来解除网页禁止粘贴,这里以谷歌浏览器为例。

1、同时按住键盘上的“Ctrl”键+“Shift”键+“Del”键打开谷歌浏览器的设置,然后点击页面底部的“高级”按钮:

/iknow-pic.cdn.bcebos.com/d01373f082025aafbd618226f5edab64024f1a8f"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/d01373f082025aafbd618226f5edab64024f1a8f?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/d01373f082025aafbd618226f5edab64024f1a8f"/>

2、点击“高级”按钮之后,在弹出的窗口中向下拉动,然后点击“网站设置”按钮:

/iknow-pic.cdn.bcebos.com/d31b0ef41bd5ad6e229298078fcb39dbb7fd3cf0"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/d31b0ef41bd5ad6e229298078fcb39dbb7fd3cf0?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/d31b0ef41bd5ad6e229298078fcb39dbb7fd3cf0"/>

3、在网站设置中找到“JavaScript”这一项,然后点击一项的按钮:

/iknow-pic.cdn.bcebos.com/9213b07eca8065389db958fe99dda144ac348288"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/9213b07eca8065389db958fe99dda144ac348288?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/9213b07eca8065389db958fe99dda144ac348288"/>

4、在弹出的页面中将JavaScript关闭,这时就解除了网页的禁止粘贴了:

/iknow-pic.cdn.bcebos.com/80cb39dbb6fd5266d5a7c0f9a518972bd507364a"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/80cb39dbb6fd5266d5a7c0f9a518972bd507364a?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/80cb39dbb6fd5266d5a7c0f9a518972bd507364a"/>

在网页中加入一个,然后在加密代码中找document.write(),eval(),execScript()或VBS的EXECUTE语句,并用document.getElementById("textareaID").innerText=STR 替换。加密就不攻自破了。

(STR是转换好的字符串变量,如在加密代码中找到 document.write(s)就用 document.getElementById("textareaID").innerText=s替换)

最近找到个文想copy下来,知乎网站居然不让复制。 

随手试了几个js的方法想破掉,发现哥们儿知乎做了不少功夫。其实是可以理解的,版权么。 

百度破解知乎复制的方法和插件,居然没有。 

百度里面一个回答,原来不用技术也可以,先用这个了。有时间就破解一下。 

from:百度 

一个简单的办法: 

chrome打开知乎页面,按顺序 F12 - F1 - 在General 里面点选 Disable JavaScript。就可以复制了。