User:Smuseus/common.js

// ==UserScript== // @name         Wikipedia - Clean, readable // @namespace    http://userstyles.org // @description	 by grom. Works in 2013, on Firefox, Chrome, Opera. // @author       grom // @homepage     http://userstyles.org/styles/62449 // @include      http://wikipedia.org/* // @include      https://wikipedia.org/* // @include      http://*.wikipedia.org/* // @include      https://*.wikipedia.org/* // @include      http://wikimedia.org/* // @include      https://wikimedia.org/* // @include      http://*.wikimedia.org/* // @include      https://*.wikimedia.org/* // @include      http://wiktionary.org/* // @include      https://wiktionary.org/* // @include      http://*.wiktionary.org/* // @include      https://*.wiktionary.org/* // @include      http://wikiquote.org/* // @include      https://wikiquote.org/* // @include      http://*.wikiquote.org/* // @include      https://*.wikiquote.org/* // @include      http://wikibooks.org/* // @include      https://wikibooks.org/* // @include      http://*.wikibooks.org/* // @include      https://*.wikibooks.org/* // @include      http://wikisource.org/* // @include      https://wikisource.org/* // @include      http://*.wikisource.org/* // @include      https://*.wikisource.org/* // @include      http://wikinews.org/* // @include      https://wikinews.org/* // @include      http://*.wikinews.org/* // @include      https://*.wikinews.org/* // @include      http://wikiversity.org/* // @include      https://wikiversity.org/* // @include      http://*.wikiversity.org/* // @include      https://*.wikiversity.org/* // @include      http://wikimediafoundation.org/* // @include      https://wikimediafoundation.org/* // @include      http://*.wikimediafoundation.org/* // @include      https://*.wikimediafoundation.org/* // @include      http://mediawiki.org/* // @include      https://mediawiki.org/* // @include      http://*.mediawiki.org/* // @include      https://*.mediawiki.org/* // @include      http://wikivoyage.org/* // @include      https://wikivoyage.org/* // @include      http://*.wikivoyage.org/* // @include      https://*.wikivoyage.org/* // @include      http://wiki.openstreetmap.org/* // @include      https://wiki.openstreetmap.org/* // @include      http://*.wiki.openstreetmap.org/* // @include      https://*.wiki.openstreetmap.org/* // @include      http://wikidata.org/* // @include      https://wikidata.org/* // @include      http://*.wikidata.org/* // @include      https://*.wikidata.org/* // @include      http://translatewiki.net/* // @include      https://translatewiki.net/* // @include      http://*.translatewiki.net/* // @include      https://*.translatewiki.net/* // @run-at       document-start // ==/UserScript== (function { var css = "#toc.toc > tbody, #toc.toc > ul, #toctitle,\n .mediawiki.skin-vector > div:not(.suggestions),\n .noprint, .noprint > div, .noprint > div > div,\n #p-personal, #left-navigation,  #p-views, #p-cactions,\n [id=\"mw-panel\"] > .portal,\n #siteNotice, #centralNotice,\n .metadata.plainlinks,\n .editsection,\n .toctoggle,\n #searchButton > img,\n #siteSub,\n div[id^=\"mw-articlefeedback\"],\n .ve-ui-toolbar-floating .ve-ui-toolbar-bar,\n body > .bookshelf-container, body > .langlist, .search-container > h5\n{ display: none !important; }\n\n #content, #mw-head, #mw-panel, #mw-navigation, #p-logo, #right-navigation, #p-search, #toc.toc, #toc.toc:hover > tbody, #toc.toc:hover > ul, #toc.toc:hover > #toctitle, #p-logo > a { display: block !important; }\n #mw-head, #mw-panel, #p-logo { min-height: 0 !important; height: 0 !important; padding: 0 !important; }\n\n html { font-size: larger !important; background: #eed; }\n body, #column-content, #mw-mf-page-center { background: none !important; }\n #content { max-width: 1000px !important; width: auto !important; margin: 40px auto !important; padding: 1.25em 1.5em 1.5em !important; border-width: 1px !important; border-style: solid !important; border-color: #666; background: #fff; }\ndiv[id=\"content\"] { border-color: #666 !important; }\n body.mediawiki { padding-right: 15px !important; padding-left: 15px !important; }\n #column-content { padding: 1em 0 0 !important; border: 0 !important; }\n\n\nul { list-style: disc inside none !important; }\n #toc ul, form ul, .search-types > ul, .searchresults > ul, .results-info > ul, .plainlist ul, #pagehistory, #mw-subcategories ul,  #plainSister,  .mobile ul[id], .suggestions-result { list-style-type: none !important; }\n\n #content, #p-search #simpleSearch, #toc.toc:hover { border-radius: 8px !important; }\n\n body.mediawiki #p-search #simpleSearch { position: absolute !important; top: 8px !important; right: 0 !important; left: 0 !important; margin: 0 auto !important; height: 1.2em !important; }\n#simpleSearch #searchButton { top: 0 !important; bottom: 0 !important; min-height: 20px !important; padding: 0 !important; background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAQAAACIaFaMAAAA3ElEQVQY02P4zwCBMx1nbp75dOajmRtmWoD4MOGamS9mJs9UnKkyM2vmm5m5UImZtkCV4nC9cjOfzzSAMPfPjIAJg/kZM9eDKMaZHxHqwRLqMx+DKI6Zv2dyoEiIz/wCYVybaYIi4TLzGIRRN3M9isS+mXkQBtvMyzOnzeQEs3lnLpp5fCYTTE3vzDNA9++YuXvm+5lzZvJA/TFDa+bvWUkzpWf6zvSaKQFRCpHYO/PEf0ZkW8ASM0Nn/p1hgioMlJjJNfPRjFnowiCJ1pnvZopgkZg1fUYGpvB/BgD2NsZz8FDpCQAAAABJRU5ErkJggg==\") center no-repeat !important; }\n html > body > .suggestions { right: 0 !important; left: 0 !important; margin: 0 auto !important; }\n .suggestions-results, .suggestions-special { border-color: inherit !important; }\n\n\n#bodyContent { z-index: auto !important; }\n#toc.toc { position: fixed !important; top: 8px !important; right: 10px !important; bottom: auto !important; left: auto !important; z-index: 9999 !important; height: 22px !important; width: 22px !important; overflow: hidden !important; -moz-box-sizing: content-box !important; box-sizing: content-box !important; margin: 0 !important; padding: 0 !important; border: 0 !important; cursor: default !important; }\n#toc.toc:hover { width: auto !important; height: auto !important; max-height: 500px !important; overflow-y: auto !important; padding: 8px !important; border: 2px solid !important; opacity: 0.94 !important; background: #fff !important; }\n#toc td > ul { padding: 0 !important; }\n.toc ul ul { margin-left: 1.2em !important; }\n#toc.toc { background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH1gEJEy8JPXuuSAAABEFJREFUOMudlV1sFFUUx/937nzsTmfbbveDUqpVW4FQkEohaUARRGrUalIj5QF9IOFBTQwh6oMk+uCTMZLVYNSElY1CYtA0RhQlPqCIIRRDoWXBAHGlQLv92O+dnZ2dmTvXB9cEqrsQ/8nJzcnJ/Z1/zs29l6CGtu/YJQLkRULlpznny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j0xjvPnE2+Njyd++V+jAEC7u+97t6+vFT2rnoGsyJCkFHp7TQ7gbQDvAbAAsDv9QRQAKgB19erFKwYH1x4YGysFg6EmzM6k9TVrQtru3Z/2McbSAMoADAClapO64IZqqABaAISGhrYczWZzl/3+5sVffvnVNgApAHMAslVwBoBz2z+veqgyAG91larBqgC76tacD/xHfwGv5OG6CIeA6AAAAABJRU5ErkJggg==\") center no-repeat !important; }\n\n#p-logo > a { position: fixed !important; width: 22px !important; height: 22px !important; right: 10px !important; top: 45px !important; background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAMAAADzapwJAAABvFBMVEUAAAAAAACkAAAAAAB1dXUAAAAAAAAAAAAAAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACkAAAAAAAAAACkAAAAAAAAAAAAAAAAAAAAAAAAAACkAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACkAAC6Li64LCw0ZaRKdq5VV1NfhrdlZ2NudoFxeIFydXp1dXV1dnZ1eHt1eHx2eXx2eX13eHp3mMJ5mcN7TEp+gHt/gXyAgn2EIiGEhYKEhoGFh4KGiIOHiYSIWliIiX6IioWJiHCKiGWPkI2XmZSYmZaZXVuZmpaZmpebm5qcCAiddXOfoJ6hoJ6ioqKio6GjjYujo6Kjo6OkAACkpKSnn52xs7a4ubi4vMG5vcG6urm6u7y/v77AiorCwsHEoaHJtbXX19fY2Nja2trb3NvcJSXcJibc0NDd3d3eJibe3t3e3t7gJibg4ODiJyfi3t7i4uLj4+Pk5OTlOTnl5eXm5ubn5+fp6enq6urr6+vsRkbs7Ozt7e3u7u7v7+/wUVHw8PDxTEzx8fHyVVXyXl7y8vLzW1vzY2PzZGTz8/P0Zmb0bGz0dXX4+Pj5+fm78nC1AAAAAXRSTlMAQObYZgAAANVJREFUGNNjYICDiAgGLCBi4sQIrKJYxMGiGOJQUTRxiAno5kD4ls6o4hCet51fErI4hB3gEZMcn4IkDmJGhAYm5ufnpqX6IwtHRIVl1NbW1tRU5/gjhG2DQtKrqqurq8rLy0r84YZnaoFATbWZqYGpYR/MKVpNWlbWNjZVlSYWBubGXVow4UYte3t7h/JSI20DTf12uHCDlqOju1tpkZ6GgYZuK1y4TsvJycW6aHJ0bEJcZDNcuFbLFQgKJgeHA0EuXLhVx9PLx7evCQwmwYXRAAOpAADGlGbJmYR+KwAAAABJRU5ErkJggg==\") center no-repeat !important; }"; 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); } } });