NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name yuedu // @namespace http://www.yuedu.com/ // @include http://yuedu.baidu.com/* // @version 1 // @grant none // ==/UserScript== window.loop = 0; window.el = '' ; window.printContent=function(z) { document.body.innerHTML = z ; window.print(); } window.getEl = function(){ if(window.loop<=1){ setTimeout(printContent(el),10000) ; }else { if(document.getElementsByClassName("ic-page ic-page-next")[0].classList.contains('ic-page-next-disabled') === false){ document.getElementsByClassName("ic-page ic-page-next")[0].click(); setTimeout(getDoc,3000); window.loop = window.loop-1; }else{ setTimeout(printContent(el),10000) ; } } } window.getDoc = function(){ document.getElementsByClassName('pager-inner txt-reader-wrap reader-for-win7')[0].style.marginLeft='50px'; el=el+'<div>'+document.getElementById("bd").innerHTML+'</div>'; setTimeout(getEl,3000); } window.beginParam = function(x) { window.loop = x document.getElementById('tools-bar').style.display="none"; getDoc(); } window.begin = function() { window.loop = 9999 document.getElementById('tools-bar').style.display="none"; getDoc(); } window.test = function(){ document.getElementById('tools-bar').style.display="none"; document.body.innerHTML = '<div>'+document.getElementById("bd").innerHTML+'</div>' console.log(document); }