User:Dananjaya86/vector.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | The accompanying .css page for this skin is at User:Dananjaya86/vector.css. |
// ==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);
}
}
})();