Skip to content

Instantly share code, notes, and snippets.

@kourbou
Created April 18, 2020 07:39
Show Gist options
  • Select an option

  • Save kourbou/48bb70bd6dcbc1dd69eeb0e954f14770 to your computer and use it in GitHub Desktop.

Select an option

Save kourbou/48bb70bd6dcbc1dd69eeb0e954f14770 to your computer and use it in GitHub Desktop.
A user-script for better cppreference.com (Windows/Chrome/ViomentMonkey)
// ==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