我更喜欢在 Firefox 中预览 PDF 选项,而不是下载 PDF 然后查看它们。然而,预览中的默认白色背景伤害了我的眼睛。那么有没有一种方法可以:在 Firefox 中预览 PDF,而无需下载它们并使用反转颜色?
ps:firefox 的“深色背景和浅色文本”扩展确实会反转 pdf,这很好。但是我对此扩展的默认全局首选项是不同的。有没有办法告诉扩展名“总是反转pdf”。我将此添加为脚注,因为不依赖此方法的解决方案也是受欢迎的。
设置toolkit.legacyUserProfileCustomizations.stylesheets为trueinabout:config并在 中创建文件.../Firefox/Profiles/$PROFILE_DIR/chrome/userContent.css。
将以下内容粘贴到userContent.css:
@-moz-document regexp("^https?://.*\\.pdf(\\?[^\\./]*)?$") {
.pdfViewer .page {
filter: invert(0.95) hue-rotate(180deg);
border: 9px solid #00DEAD00 !important;
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5370 次 |
| 最近记录: |