Created
April 18, 2020 07:39
-
-
Save kourbou/48bb70bd6dcbc1dd69eeb0e954f14770 to your computer and use it in GitHub Desktop.
A user-script for better cppreference.com (Windows/Chrome/ViomentMonkey)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Use Consolas font - cppreference.com | |
| // @match https://*.cppreference.com/* | |
| // @grant GM_addStyle | |
| // @run-at document-start | |
| // ==/UserScript== | |
| GM_addStyle ( ` | |
| body { | |
| zoom: 110%; | |
| } | |
| tt, code, pre, .mw-geshi, .t-lc, #wpTextbox1 { | |
| font-family: Consolas !important; | |
| } | |
| .t-dsc-see-tt > span { | |
| font-family: Consolas !important; | |
| } | |
| .t-nv-ln-table > div:nth-child(1) { | |
| font-family: Consolas !important; | |
| } | |
| .t-par > td:nth-child(1) { | |
| font-family: Consolas !important; | |
| } | |
| .t-dsc-member-div > div:nth-child(1) { | |
| font-family: Consolas !important; | |
| } | |
| html, body { | |
| font-family: 'Segoe UI' !important; | |
| } | |
| .t-dsc-member-nobold-div > div:nth-child(1), .t-dsc-member-nobold-div > div:nth-child(1) strong.selflink { | |
| font-family: 'Segoe UI' !important; | |
| } | |
| ` ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment