Fix code + use browser fonts

The default skin on the Beyonwiz forums results in text being rendered with fonts that are hard to read. This style fixes this problem by using the fonts defined in browser preferences. It also fixes an issue with [code] blocks not being formatted correctly.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name          Fix code + use browser fonts
// @description	  The default skin on the Beyonwiz forums results in text being rendered with fonts that are hard to read. This style fixes this problem by using the fonts defined in browser preferences. It also fixes an issue with [code] blocks not being formatted correctly.
// @namespace     https://greasyfork.org
// @author        peteru
// @include       http://beyonwiz.com.au/*
// @include       https://beyonwiz.com.au/*
// @include       http://*.beyonwiz.com.au/*
// @include       https://*.beyonwiz.com.au/*
// @run-at        document-start
// @version       2020.02.24.1456
// ==/UserScript==
(function() {var css = [
	"@namespace url(http://www.w3.org/1999/xhtml);",
	".content, .content p { font-family: sans-serif ! important }",
	"code { font-family: monospace ! important; white-space: pre ! important; max-height: unset ! important; }",
	".codebox, .inputbox { font-family: monospace ! important; max-height: unset ! important; }",
	".wrap { font-family: sans-serif ! important ; max-width: 128em ! important; width: 98%; }"
].join("\n");
if (typeof GM_addStyle != "undefined") {
	GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
	PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
	addStyle(css);
} else {
	var node = document.createElement("style");
	node.type = "text/css";
	node.appendChild(document.createTextNode(css));
	var heads = document.getElementsByTagName("head");
	if (heads.length > 0) {
		heads[0].appendChild(node);
	} else {
		// no head yet, stick it whereever
		document.documentElement.appendChild(node);
	}
}
})();