User:Dananjaya86/vector.js

Source: 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.
// ==UserScript==
// @name          Minimalist Wikipedia for Firefox Search Bar Users
// @namespace     http://userstyles.org
// @description	  This removes anything except for the article content itself. It also formats the article to be a bit easier on the eyes.
// @author        Filius
// @homepage      http://userstyles.org/styles/8743
// @include       http://www.wikipedia*
// @include       http://en.wikipedia*
// @run-at        document-start
// ==/UserScript==
(function() {
var css = "h1, h2, h3, h4, h5, h6\n{\n    border-bottom: 1px solid #DADADA;\n}\n\nh1\n{\n    padding-bottom: 0 !important;\n    margin-bottom: 0 !important;\n}\nh2\n{\n    font-size: 160% !important;\n}\n\n.firstHeading\n{\n    font-size: 28pt !important;\n    font-family: \"Lucida Grande\" ,Tahoma,Verdana,times,serif;\n    padding-bottom: 5px !important;\n    color: #444 !important;\n}\n\n#p-cactions, #p-logo, #p-tb, #p-lang\n{\n    display: none !important;\n}\nbody\n{\n    background: #dddddd !important;\n}\n\np, ul, dd, dt\n{\n    margin-bottom: 1em !important;\n}\n\n.dablink\n{\n    padding-left: 0em !important;\n    opacity: 0.5;\n}\n\n.dablink:before\n{\n    content: \"| \";\n}\n\n#content\n{\n    margin: 10pt 10pt 10pt 10pt !important;\n    border: solid #aaaaaa 1px !important;\n    padding: 0px 25px 30px 25px !important;\n}\n\n.portlet, #footer, #bodyContent > H3:first-child + DIV + DIV + DIV + TABLE, #bodyContent > H3:first-child + DIV + DIV + DIV + TABLE + TABLE, #anon-banner, #siteSub, #siteNotice\n{\n    display: none !important;\n}\n\n.metadata.plainlinks.ambox.ambox-content\n{\n    margin-top: 10px !important;\n    margin-bottom: 10px !important;\n}\n\ntable.ambox th.ambox-text, table.ambox td.ambox-text\n{\n    padding-left: 1em !important;\n    padding-right: 1em !important;\n    width: 100%;\n    opacity: .75;\n}\n\n.searchresult\n{\n    width: 95% !important;\n}\n.infobox\n{\n    margin-left: 1.5em !important;\n    margin-top: 1.0em !important;\n}\n.thumbinner\n{\n    margin-left: 1.5em !important;\n    margin-top: 1.0em !important;\n}\n\n#toc #toctitle, .toc #toctitle, #toc .toctitle, .toc .toctitle\n{\n    text-align: left !important;\n    font-weight: normal !important;\n    font-size: 85% !important;\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 heads = document.getElementsByTagName("head");
	if (heads.length > 0) {
		var node = document.createElement("style");
		node.type = "text/css";
		node.appendChild(document.createTextNode(css));
		heads[0].appendChild(node); 
	}
}
})();