Skip to content

Instantly share code, notes, and snippets.

@alick
Created October 25, 2015 15:07
Show Gist options
  • Save alick/7719fae5b2629c5a6eb3 to your computer and use it in GitHub Desktop.
Save alick/7719fae5b2629c5a6eb3 to your computer and use it in GitHub Desktop.
User style for Chinese websites to replace Songti, Microsoft Yahei, and Courier fonts to alternatives on Linux.
@-moz-document regexp('https?://.*\\.cn/.*'), regexp('https?://dict.youdao.com/.*') {
@font-face {font-family:'宋体';src: local('Source Han Sans CN Normal');}
@font-face {font-family:'SimSun';src: local('Source Han Sans CN Normal');}
@font-face {font-family:'新宋体';src: local('Source Han Sans CN Normal');}
@font-face {font-family:'NSimSun';src: local('Source Han Sans CN Normal');}
@font-face {font-family:'微软雅黑';src: local('Source Han Sans CN Normal');}
@font-face {font-family:'Microsoft YaHei';src: local('Source Han Sans CN Normal');}
@font-face {font-family:'Courier New';src: local('monospace');}
@font-face {font-family:'Courier';src: local('monospace');}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment