Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【功能建议】如何替换掉回答内容的字体呢 #85

Open
w8713015050275 opened this issue Mar 13, 2023 · 2 comments
Open

【功能建议】如何替换掉回答内容的字体呢 #85

w8713015050275 opened this issue Mar 13, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@w8713015050275
Copy link

不知道该怎么修改,大佬可否告知一下。3Q

@shatyuka shatyuka added the enhancement New feature or request label Mar 14, 2023
@MichaelToLearn
Copy link

可通过注入 JS 脚本实现。
问 GPT:你是一个 javascript 专家,写一个脚本,在head中 插入一段样式,将所有的字体替换为一个 在线地址 XXX
答:

var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = `@font-face {
    font-family: 'CustomFont';
    src: url('XXX') format('woff2'),
         url('XXX') format('woff');
}
body {
    font-family: 'CustomFont';
}`;
document.head.appendChild(style);
将其中的XXX替换为你的在线字体URL。

@NRMrYang
Copy link

改手机字体也可以的吧?没试过,提供一个思路

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants