Font Substitute: Microsoft Yahei

Substitute fonts with Microsoft Yahei.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name                 Font Substitute: Microsoft Yahei
// @version              3.0
// @author               softforum
// @description          Substitute fonts with Microsoft Yahei.
// @license              Unlicense
// @include              *://*
// @exclude              /^https?://www\.google\.com/maps([/\?].*)?$/
// @run-at               document-start
// @grant                GM_addStyle
// @namespace            uxin.ca
// ==/UserScript==

GM_addStyle(`
@font-face {
    font-family: "SimSun";
    src: local("Microsoft Yahei");
}

@font-face {
    font-family: "NSimSun";
    src: local("Microsoft Yahei");
}

@font-face {
    font-family: "宋体";
    src: local("Microsoft Yahei");
}

@font-face {
    font-family: "custom-ht";
    src: local("Microsoft Yahei");
}

@font-face {
    font-family: "STHeiti";
    src: local("Microsoft Yahei");
}

@font-face {
    font-family: "Songti SC";
    src: local("Microsoft Yahei");
}

@font-face {
    font-family: "Roboto";
    src: local("Microsoft Yahei");
    unicode-range: U+4E00-9FFF;
}

@font-face {
    font-family: "Roboto";
    src: local("Roboto");
    unicode-range: U+0-4DFF;
}

@font-face {
    font-family: "Roboto";
    src: local("Roboto");
    unicode-range: U+A000-10FFFF;
}

@font-face {
    font-family: "Segoe UI";
    src: local("Microsoft Yahei");
    unicode-range: U+4E00-9FFF;
}

@font-face {
    font-family: "Segoe UI";
    src: local("Segoe UI");
    unicode-range: U+0-4DFF;
}

@font-face {
    font-family: "Segoe UI";
    src: local("Segoe UI");
    unicode-range: U+A000-10FFFF;
}

@font-face {
    font-family: "Arial";
    src: local("Microsoft Yahei");
    unicode-range: U+4E00-9FFF;
}

@font-face {
    font-family: "Arial";
    src: local("Arial");
    unicode-range: U+0-4DFF;
}

@font-face {
    font-family: "Arial";
    src: local("Arial");
    unicode-range: U+A000-10FFFF;
}

@font-face {
    font-family: "Times New Roman";
    src: local("Microsoft Yahei");
    unicode-range: U+4E00-9FFF;
}

@font-face {
    font-family: "Times New Roman";
    src: local("Times New Roman");
    unicode-range: U+0-4DFF;
}

@font-face {
    font-family: "Times New Roman";
    src: local("Times New Roman");
    unicode-range: U+A000-10FFFF;
}

@font-face {
    font-family: "Times";
    src: local("Microsoft Yahei");
    unicode-range: U+4E00-9FFF;
}

@font-face {
    font-family: "Times";
    src: local("Times");
    unicode-range: U+0-4DFF;
}

@font-face {
    font-family: "Times";
    src: local("Times");
    unicode-range: U+A000-10FFFF;
}
`);