Jump to content

User:Thiemehennis/common.js

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Thiemehennis (talk | contribs) at 10:11, 27 February 2012 (Created page with '// ==UserScript== // @name Wikipedia - perfect. clean. readable. printable. // @namespace http://userstyles.org // @description Once I've become t...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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          Wikipedia - perfect. clean. readable. printable.
// @namespace     http://userstyles.org
// @description	  Once I've become to hate the wikipedia's face...
// @author        80x86
// @homepage      http://userstyles.org/styles/26763
// @include       http://wikipedia.org/*
// @include       https://wikipedia.org/*
// @include       http://*.wikipedia.org/*
// @include       https://*.wikipedia.org/*
// @run-at        document-start
// ==/UserScript==
(function() {
var css = "body { \n   background-image: url() !important; \n   padding: 20pt 30pt 30pt 40pt !important;\n   background-color: white !important;\n   font-size: 14px !important;\n}\n\n#column-one, \n#footer, \n.editsection, \n#siteNotice, \n#contentSub, \n.toc, \n.ambox,\n.noprint { \n   display: none !important; \n} \n\n#bodyContent, #content \n{ \n   font-family: DejaVu Sans Condensed, Arial, Tahoma, Verdana !important;\n   font-size: 85% !important;\n   width: 100% !important;\n   max-width: 600pt !important;\n   min-width: 400pt !important;\n   margin: 0 auto 0 auto !important;\n   padding: 0 !important; \n   text-align: justify !important;\n   background: white !important;\n   border: none !important;\n   overflow: visible !important;\n}\n\nA:hover { text-decoration: underline !important; }\n#bodyContent > UL, #content > OL,\n#bodyContent > UL, #content > OL,\n#bodyContent > P, #content > P { \n   margin-bottom: 1em !important; \n}\n\n#coordinates {\n   margin-top: -15pt !important;\n}\n\n\nP BR:only-child {\n   display: none !important; \n}\n\n#bodyContent > H1, #content > H1, #siteSub { \n   margin-left: -20pt !important; \n    font-size: 230% !important;\n   border: none;\n}\n\n#bodyContent > H2, #content > H2  { \n   margin: 0 0 1em -15pt !important; \n   border: none !important;\n   padding: 0.5em 0 0 0 !important;\n   font-size: 200% !important;\n   clear: left;\n}\n\n#bodyContent H3:not(#siteSub), #content H3:not(#siteSub) { \n   margin: 1em 0 0.5em -10pt !important; \n   border: none !important;\n   padding: 0 0 0 0 !important;\n   font-style: italic !important;\n   font-weight: normal !important;\n   font-size: 170% !important;\n   clear: left;\n}\n\n#bodyContent > H4, #content > H4 { \n   margin: 1em 0 0.5em -5pt !important; \n   padding: 0 !important;\n   font-weight: normal !important;\n   font-style: italic !important;\n   font-size: 130% !important;\n}\n\n#bodyContent dl, #content dl {\n   margin: 1em 0 0 0 !important; \n   padding: 0 0 !important;\n}\n\n#bodyContent dt, #content dt { \n   margin: 1em 0 1em 0 !important; \n   padding: 0 !important;\n   font-weight: normal !important;\n   font-size: 120% !important;\n}\n\n#firstHeading {\n   padding: 0 0 0.3em 0 !important;\n   margin-top: 0 !important;\n   margin-right: -10pt !important;\n   margin-bottom: 0 !important;\n   font-size: 18pt !important;\n   border-bottom: 1px gray solid !important;\n}\n\n#siteSub {\n   margin: 0 0 15pt -20pt !important;\n   padding: 0 !important;\n   display: block !important;\n   font-size: 6pt !important;\n}\n\n#trestrictions_replace,\ndiv.dablink {\n   margin: 0 0 15pt -20pt !important;\n   padding: 0 !important;\n   display: block !important;\n   font-size: 6pt !important;\n}\n\n#trestrictions_replace DD,\n#trestrictions_replace DL {\n   margin:0 !important;\n   padding:0 !important;\n}\n\nTABLE.infobox,\n.infobox, \n.box, \n.mbox-small,\n.navigation-box {\n   -moz-border-radius: 10px !important;\n   margin-left: 20pt !important;\n   margin-bottom: 15pt !important;\n   width: 30% !important;\n   border-color: gray !important;\n   border-width: 1px !important;\n   background-color: white !important;\n   padding: 2pt !important;\n}\n\n.infobox *:not(IMG), \n.box *:not(IMG),\n.navigation-box *,\n.mbox-small *,\n#mw-subcategories * {\n   background-color: white !important;\n   border: none !important;\n}\n\n.infobox IMG, \n.box IMG {}\n\n.infobox TD {\n   padding-left: 10pt !important;\n   padding-right: 10pt !important;\n}\n\n.infobox TD .image, .infobox TH[colspan] IMG {\n   display: block !important;\n   margin: 10pt auto 10pt auto !important;\n}\n\n#catlinks {\n   -moz-border-radius: 10px !important;\n   font-size: 80% !important;\n   padding: 5pt 10pt !important;\n   background-color: white !important;\n   border-color: gray !important;\n}\n\n.navbox {\n   -moz-border-radius: 10px !important;\n   font-size: 80% !important;\n   padding: 2pt !important;\n   margin-top: 10pt !important;\n   background-color: white !important;\n   border-color: gray !important;\n}\n\n.navbox * {\n   background-color: white !important;\n}\n\n\n.tright, .thumb, .tleft {\n   -moz-border-radius: 10px !important;\n   border: 1px gray solid !important;\n   background-color: white !important;\n   padding: 5pt !important;\n}\n\n.tleft {\n   margin-top: 20pt !important;\n   margin-right: 20pt !important;\n   margin-bottom: 15pt !important;\n}\n\n.tright {\n   margin-top: 15pt !important;\n   margin-left: 20pt !important;\n   margin-bottom: 15pt !important;\n}\n\nDIV.thumbinner, DIV.thumbinner * {\n   margin: 0 !important;\n   padding: 0 !important;\n   background-color: white !important;\n   border: none !important;\n}\n\nDIV.thumbcaption {\n   padding-top: 5pt !important;\n}\n\n.seealso, .dablink {\n   margin: 2em 0 !important;\n   padding: 0 !important;\n}\n\n.wikitable, \nTABLE.standard,\nTABLE.toccolours\n{\n   margin: 2em auto !important;\n   clear: both !important;\n}\n\n.wikitable TD, TABLE.standard TD, TABLE.toccolours TD\n.wikitable TH, TABLE.standard TH, TABLE.toccolours TH {\n   padding: 2pt !important;\n}\n\n.gallerybox {\n   -moz-border-radius: 10px !important;\n   border: 1px gray solid !important;\n   background-color: white !important;\n   padding: 5pt !important;\n   text-align: center !important;\n}\n\n.gallerybox *, .gallery {\n   border: 0 !important;\n   padding: 0 !important;\n}\n\n.gallery TD {\n   background-color: white !important;\n}\n\ndiv.mw-geshi, pre {\n   -moz-border-radius: 10px !important;\n   border: 1px gray dashed !important;\n   margin: 2em 2em 2em 2em !important; \n   padding: 1em 1em 1em 10px !important;\n   overflow: hidden !important;\n}\n\ndiv.references-small {\n   margin-bottom: 1em !important;\n}\n\nblockquote {\n   display: block;\n   width: 70%;\n   -moz-border-radius: 10px !important;\n   border: 1px gray dashed !important;\n   margin: 2em auto 2em 2em !important; \n   font-style: italic !important;\n   background-color: white !important;\n   padding: 1em !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); 
	}
}
})();