Skip to content

Erimus's Force Font by erimus-koo

Details

Authorerimus-koo

LicenseNo License

CategoryFont

Created

Updated

Size2.7 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Force font according to my usage.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         Force Font
@version      20230629.09.21
@namespace    ?
==/UserStyle== */

/* Global */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,600;1,400;1,600&family=JetBrains+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap'); */
/* @import url('https://fonts.useso.com/css2?family=Poppins:ital,wght@0,400;0,600;1,400;1,600&family=JetBrains+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600&family=JetBrains+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Poppins:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* [0-9]U+30-39, [/]U+2F, [\]U+5C, [@]U+40 */
@font-face {
    font-family: 'Number';
    src: local('Barlow'), local('Barlow Medium');
    unicode-range: U+30-39, U+2F, U+5C, U+40;
}

/* Some site chosen real shit font, then fix it. */
/* if sans-serif has been set to chinese, the "left single quote" will use the chinese ver */
html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: normal;
    /*     font-family: Number, sans-serif; */
/* 优先启用:Number, "Poppins", "Source Han Sans HC", */
/* 苹果英文:-apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", */
/* 安卓英文:Roboto,   */
/* 苹果中文:"PingFang SC", */
/* 安卓中文:"Noto Sans", "Noto Sans CJK SC", */
/* Win中文:"Microsoft YaHei", "微软雅黑", */
    font-family: Number, "Poppins", "Source Han Sans HC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, "PingFang SC", "Noto Sans", "Noto Sans CJK SC", "Microsoft YaHei", "微软雅黑", sans-serif;
}


/* 
github          .blob-code-content
github release  div[data-test-selector="release-card"] details ul *
pastebin        .highlighted-code  
codepen         .code-wrap
codesandbox     .editor-container
wordpress       .enlighter
*/
code, code *, quoteblock, quoteblock *, ol li::marker,
.blob-code-content *,
div[data-test-selector="release-card"] details ul *,
.highlighted-code *,
.code-wrap *,
.editor-container *,
.enlighter *,
.CodeMirror {
    font-family: "JetBrainsMono Nerd Font", "JetBrains Mono", Menlo, Consolas, "Source Han Sans HC", "PingFang", "Noto Sans", "Noto Sans CJK SC", "Microsoft YaHei", "微软雅黑", monospace!important;
    font-variant-ligatures: contextual!important;
}

@-moz-document domain("fadedpage.com") {
/* force font family in specific sites */
* {
    font-family: Poppins, Helvetica Nueve, Source Han Sans HC, Microsoft Yahei;
}
}

@-moz-document regexp(".*(localhost|\\d+\\.\\d+\\.\\d+\\.\\d+):\\d+.*") {
/* localhost */
html, body{
    font-family: none;
}
}

Reviews

No reviews yet.