innoreader更换字体


本文总阅读量

目前中文字体中,看的最舒服的就是 霞骛文楷了。手机是已经安装了这个字体,看起来极其舒服,电脑端全局替换容易出现问题,尝试过之后放弃了。

现在每天看innoreade是比较多的,为了优化使用感受,借助油猴的功能,提升了一下使用感官。

// ==UserScript==
// @name         inoreader修改字体
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @grant        none
// @include          http*://*.inoreader.com/*
// ==/UserScript==


document.getElementsByTagName('head')[0].innerHTML += "<link rel=\"stylesheet\" href=\"https://cdn.staticfile.org/lxgw-wenkai-screen-webfont/1.6.0/style.css\" /><style>body.font_family_lora .article_content, body.font_family_lora .article_annotation_text {font-family: 'LXGW WenKai Screen' }</style><style>body {font-family: 'LXGW WenKai Screen' }</style>"

有很多更为优雅的代码编写方式,但是懒得去查API了,直接粗暴的使用js语法填充进去实现效果吧。
innoreder修改字体效果对比.png

对比效果之后,字重方面明显看起来更为舒服。



2017–2023 ZyTomorrow
本站总访问量