打印优快云博客优秀文章
优快云里面有很多优秀的大神文章,有时候想要打印出来,可是总是出现很多图标和广告。下面一种方法可以有效的解决这个问题
打印优快云内容,将以下js复制放入Chrome开发者选项里边的console,回车即可。
(function(){
$("#side").remove();
$("#comment_title, #comment_list, #comment_bar, #comment_form, .announce, #ad_cen, #ad_bot").remove();
$(".nav_top_2011, #header, #navigator").remove();
$(".p4course_target, .comment-box, .recommend-box, #csdn-toolbar, #tool-box").remove();
$("aside").remove();
$(".csdn-side-toolbar").remove();
$(".tool-box").remove();
$("main").css('display','content');
$("main").css('float','left');
$("tool-box").remove();
window.print();
})();