🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

文章导出成pdf

将一些主流的网站的文章,去除掉一些无关部分直接启动浏览器自带打印功能

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Aŭtoro
Vanisper
Ĉiutagaj instaloj
0
Tutaj instaloj
667
Ratings
0 0 0
Versio
1.3.2
Kreita
2023/03/28
Ĝisdatigita
2023/10/23
Size
21 kb
Licenco
MIT
Aplikiĝas al

将一些主流的网站的文章,去除掉一些无关部分直接启动浏览器自带打印功能

仅适配A4页面大小,其他页面大小无法保证排版完整、美观

打印页面内容出现未加载的dom,说明该处没有加载完成,可多试几次


其实当网页加载的时候自己可以直接 Ctrl+P 触发打印

之所以点击脚本设置的按钮时,会有一个从头到尾的滚动过程,是为了给一些dom元素加载的时间(例如比较大的图片、知乎的公式渲染等等,这些不能马上渲染的内容需要一点点时间)

所以你在安装了此脚本之后,出现了“导出pdf”的按钮时,你可以不用点击(因为页面可能很长很长,还有些页面是有懒加载的推荐文章的,例如掘金),可以直接 Ctrl+P 触发打印。

当然,发现有些图片或者dom没在打印预览页面显示的时候,你可以手动滚动页面到那一块,确保他加载好了,这个时候再 Ctrl+P 触发打印,应该就没问题了。