如何将CSDN的文章以PDF文件形式保存到本地

1.F12 打开开发者工具窗口

2.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();
    $("#toolBarBox").remove();
    $("main").css('display','content'); 
    $("main").css('float','left');
    $("body").css('min-width',0);
    $("#mainBox").css('width','90%');
    $(".main_father.clearfix.d-flex.justify-content-center").css("width","90%");
    $(".option-box").remove();
    window.print();
})();

相关推荐

  1. 实现信息作为txt,pdf,图片形式保存电脑~

    2024-04-09 06:26:03       33 阅读
  2. SpringBoot上传文件保存临时文件

    2024-04-09 06:26:03       15 阅读
  3. Python利用wkhtmltopdf网页上文章保存PDF文件

    2024-04-09 06:26:03       10 阅读
  4. Android 生成Excel文件保存本地

    2024-04-09 06:26:03       22 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-04-09 06:26:03       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-09 06:26:03       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-09 06:26:03       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-09 06:26:03       20 阅读

热门阅读

  1. VUE实现增删改查功能

    2024-04-09 06:26:03       11 阅读
  2. 前端小白的学习之路(Vue2 一)

    2024-04-09 06:26:03       12 阅读
  3. 刷题DAY46 | LeetCode 139-单词拆分 多重背包问题

    2024-04-09 06:26:03       11 阅读
  4. vue 文件导出

    2024-04-09 06:26:03       13 阅读
  5. 版本管理面试题|SVN和Git有什么区别?

    2024-04-09 06:26:03       13 阅读
  6. 理解Go语言中的竞争问题

    2024-04-09 06:26:03       12 阅读
  7. Uniapp 运行到 iOS 真机或模拟器

    2024-04-09 06:26:03       20 阅读