Jump to content

User:Isaacl/script/diff-mono-font.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// This script configures a specific monospaced font to be used when displaying
// diffs. (The specific font used is subject to change based on my personal
// preference.) You must download and install one of the fonts in the
// stylesheet file to use one of them; otherwise, your browser will use the
// font it has configured for monospace text.

// Please see [[User:Isaacl/script/diff-mono-font]] for more information and a
// security warning.

mw.loader.load( 'https://en.wikipedia.org/wiki/User:Isaacl/style/diff-mono-font.css?action=raw&ctype=text/css', 'text/css' );