icson.zhougmail.com / 多看阅读打印

// ==UserScript==
// @name        多看阅读打印
// @namespace   cn.dietcare
// @include     http://www.duokan.com/reader/*
// @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 {
			document.getElementsByClassName('u-icn-next1 j-pagedown')[0].click();
			window.setTimeout(getDoc,3000);
			window.loop = window.loop-1;
	
		
	}

}

window.getDoc = function(){
//	document.getElementsByClassName('pager-inner txt-reader-wrap reader-for-win7')[0].style.marginLeft='40px';
	window.el=window.el+'<div>'+document.getElementsByClassName('book_page_wrapper')[3].innerHTML+document.getElementsByClassName('book_page_wrapper')[4].innerHTML+'</div>';
	window.setTimeout(getEl,3000);
}

window.beginParam = function(x) {
	window.loop = x;
//	document.getElementById('tools-bar').style.display="none";
	window.getDoc();
}

window.begin = function() {
	window.loop = 9999
	document.getElementById('tools-bar').style.display="none";
	window.getDoc();
}