清洁打印CSDN文章
时间:2021-08-30 13:36:26
收藏:0
阅读:5
title: 清洁打印CSDN文章
date: 2019-11-30 08:25:00
updated: 2019-11-30 08:25:00
打印CSDN内容,将以下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();
$(".tool-box").remove();
$("main").css(‘display‘,‘content‘);
$("main").css(‘float‘,‘left‘);
window.print();
$("tool-box").remove();
})();

原文:https://www.cnblogs.com/yuxihan/p/15202630.html
评论(0)