File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed
src/use-harmony-font-local Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
// ==UserScript==
2
2
// @name 使用 HarmonyOS Sans SC 字体,在 Windows 下获得接近苹方的阅读体验
3
3
// @namespace http://tampermonkey.net/
4
- // @version 1.2.0
4
+ // @version 1.2.1
5
5
// @description 使用本地 HarmonyOS Sans SC 字体,提升不支持苹方的平台(Windows,说的就是你)阅读体验。需要本地安装字体
6
6
// @author CLDXiang
7
7
// @website https://github.com/CLDXiang/tampermonkey
68
68
if ( rule . style && rule . style . fontFamily && ! rule . selectorText . startsWith ( ".use-harmony-font-mark" ) ) {
69
69
const newFontFamily = modifyFontFamily ( rule . style . fontFamily ) ;
70
70
if ( newFontFamily ) {
71
- console . log ( "wtf" , rule . style . fontFamily ) ;
72
71
let css = `font-family: ${ newFontFamily } ;` ;
73
72
if ( rule . style . fontWeight && Number . parseInt ( rule . style . fontWeight , 10 ) < 400 )
74
73
css += "font-weight: 400;" ;
Original file line number Diff line number Diff line change 1
1
name = " 使用 HarmonyOS Sans SC 字体,在 Windows 下获得接近苹方的阅读体验"
2
2
description = " 使用本地 HarmonyOS Sans SC 字体,提升不支持苹方的平台(Windows,说的就是你)阅读体验。需要本地安装字体"
3
- version = " 1.2.0 "
3
+ version = " 1.2.1 "
4
4
match = " *://*/*"
5
5
exclude = [ " *://*bilibili.com/*" , ]
6
6
grant = " none"
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ function executeWhenDocumentReady() {
38
38
if ( rule . style && rule . style . fontFamily && ! rule . selectorText . startsWith ( '.use-harmony-font-mark' ) ) {
39
39
const newFontFamily = modifyFontFamily ( rule . style . fontFamily )
40
40
if ( newFontFamily ) {
41
- console . log ( 'wtf' , rule . style . fontFamily )
42
41
let css = `font-family: ${ newFontFamily } ;`
43
42
if ( rule . style . fontWeight && Number . parseInt ( rule . style . fontWeight , 10 ) < 400 )
44
43
css += 'font-weight: 400;'
You can’t perform that action at this time.
0 commit comments