视频链接:https://www.bilibili.com/video/av78557439
方法来源:
将CSDN博客内容保存为PDF https://blog.csdn.net/gaoyueace/article/details/90380349
教程介绍
1,打开你想下载的csdn博客,如:https://blog.csdn.net/GreatXiang888/article/details/103433215
2,按下F12,进入开发者模式,在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();
})();
就像这样:
3,回车,保存即可。
完工。
效果:
还挺清爽的,一点广告都没有。
这样就能将有用的博客下载下来了。
(注意:pdf里的链接不能直接跳转,需手动输入)