解除作文网以及百度文库不能复制的限制

首先,按下 F12 键,点击 console,并在下面的箭头处输入代码

 

 

 

输入以下代码的任意一行,摁下回车

 

$=0

  

 

$('div.ie-fix').txt()

 

 

document.querySelector('.reader-container-inner').innerText

 

javascript:!function e(t){function n(){}function o(e){e[i].removeChild(e)}function r(e){return[].slice.call(t.querySelectorAll(e))}function c(t){function n(){s(function(){if(!o)try{var n=t.contentDocument;n.body.childNodes.length&&(o=1,e(n))}catch(e){o=0}},100)}a[l](function(e){t['on'+e]=null});var o;n(),t.onload=n}for(var i='parentNode',l='forEach',a='contextmenu dragstart selectstart select copy beforecopy mouseup mousedown'.split(' '),u=setTimeout(n,0);u>=0;u--)clearTimeout(u);for(u=setInterval(n,1e8);u>=0;u--)clearInterval(u);var s=setTimeout;setTimeout=setInterval=n,r('script')[l](o);var m=[];r('iframe,frame')[l](function(e){m.push(e),e[i].replaceChild(t.createElement('script'),e)});var f=t.documentElement.innerHTML;t.open(),t.write('<!DOCTYPE html>'),t.close(),t.documentElement.innerHTML=f,r('script')[l](function(e){e[i].replaceChild(m.shift(),e)}),r('*')[l](c),c(t),a[l](function(e){t.addEventListener(e,function(e){e.stopPropagation()},!0)});var p=t.createElement('style');p.innerHTML='*{-webkit-user-select:text!important;-mo-user-select:text!important;user-select:text!important;}',t.body.appendChild(p)}(document);

  

然后CTRL+C进行复制,就不会出现扫二维码或者登录的情况了,对于百度文库也适用。

 

如果想要免费下载百度文库的文章,可以参考的之前写的教程。


https://www.cnblogs.com/chenxiao3602/p/13514769.html

 

posted @ 2020-08-20 14:00  CN晨晓  阅读(1368)  评论(0编辑  收藏  举报