解除作文網以及百度文庫不能復制的限制


首先,按下 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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM