Skip to content

Commit 5ac8086

Browse files
committed
fix(use-harmony-font-local): remove debug log
1 parent 02dc02a commit 5ac8086

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

dist/use-harmony-font-local.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name 使用 HarmonyOS Sans SC 字体,在 Windows 下获得接近苹方的阅读体验
33
// @namespace http://tampermonkey.net/
4-
// @version 1.2.0
4+
// @version 1.2.1
55
// @description 使用本地 HarmonyOS Sans SC 字体,提升不支持苹方的平台(Windows,说的就是你)阅读体验。需要本地安装字体
66
// @author CLDXiang
77
// @website https://github.com/CLDXiang/tampermonkey
@@ -68,7 +68,6 @@
6868
if (rule.style && rule.style.fontFamily && !rule.selectorText.startsWith(".use-harmony-font-mark")) {
6969
const newFontFamily = modifyFontFamily(rule.style.fontFamily);
7070
if (newFontFamily) {
71-
console.log("wtf", rule.style.fontFamily);
7271
let css = `font-family: ${newFontFamily};`;
7372
if (rule.style.fontWeight && Number.parseInt(rule.style.fontWeight, 10) < 400)
7473
css += "font-weight: 400;";

src/use-harmony-font-local/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "使用 HarmonyOS Sans SC 字体,在 Windows 下获得接近苹方的阅读体验"
22
description = "使用本地 HarmonyOS Sans SC 字体,提升不支持苹方的平台(Windows,说的就是你)阅读体验。需要本地安装字体"
3-
version = "1.2.0"
3+
version = "1.2.1"
44
match = "*://*/*"
55
exclude = [ "*://*bilibili.com/*", ]
66
grant = "none"

src/use-harmony-font-local/main.mts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ function executeWhenDocumentReady() {
3838
if (rule.style && rule.style.fontFamily && !rule.selectorText.startsWith('.use-harmony-font-mark')) {
3939
const newFontFamily = modifyFontFamily(rule.style.fontFamily)
4040
if (newFontFamily) {
41-
console.log('wtf', rule.style.fontFamily)
4241
let css = `font-family: ${newFontFamily};`
4342
if (rule.style.fontWeight && Number.parseInt(rule.style.fontWeight, 10) < 400)
4443
css += 'font-weight: 400;'

0 commit comments

Comments
 (0)