İçeriğe atla

Kullanıcı:Serdaraltin/modern.js

Vikipedi, özgür ansiklopedi
Not: Sayfayı kaydettikten sonra değişiklikleri görebilmek için tarayıcınızın önbelleğinizi temizlemeniz gerekir. Google Chrome, Firefox, Microsoft Edge ve Safari: ⇧ Shift tuşuna basılı tutun ve Yeniden Yükle araç çubuğu düğmesine tıklayın. Ayrıntılar ve diğer tarayıcılara yönelik yönergeler için Vikipedi:Önbelleğinizi atlayın sayfasını inceleyin.
// ==UserScript==
// @name          Wikipedia Dark Sidebar
// @namespace     http://userstyles.org
// @description	  a lightweight, open-spaced dark theme for Wikipedia optimized for simplicity and legibility.
// @author        Caspid
// @homepage      https://userstyles.org/styles/150192
// @include       http://wikipedia.org/*
// @include       https://wikipedia.org/*
// @include       http://*.wikipedia.org/*
// @include       https://*.wikipedia.org/*
// @include       http://en.wikipedia.org/wiki/File:*
// @run-at        document-start
// @version       0.20171026165110
// ==/UserScript==
(function() {var css = "";
if (false || (document.domain == "wikipedia.org" || document.domain.substring(document.domain.indexOf(".wikipedia.org") + 1) == "wikipedia.org"))
	css += [
		"/* hide tagline */",
		"#siteSub {display:none;}",
		"",
		"/* hide header */",
		"#mw-navigation {display:none;}",
		"",
		"/* hide header except search *",
		"#mw-head > div:not(#right-navigation), ",
		"#right-navigation > div:not(#p-search) {display:none;}",
		"*/ ",
		"",
		"body {",
		"    font-size: inherit;",
		"    background: #151515;",
		"}",
		"#bodyContent {",
		"    font: 14px/1.5 Open Sans, sans-serif;",
		"}",
		"body b {",
		"    font-weight: 600 !important;",
		"}",
		"p {	",
		"    margin: 0 0 1em 0;",
		"    line-height: 1.7 !important;",
		"    color: #aaa !important;",
		"}",
		"    .MathJax {",
		"        color: #ccc;",
		"    }",
		"    ",
		"/* prevents sub/superscripts from throwing off line spacing */",
		"sub, sup {",
		"    font-size: 75%;",
		"    line-height: 0;",
		"    position: relative;",
		"    vertical-align: baseline;",
		"}",
		"    sup {top: -0.33em;}",
		"    sub {bottom: -0.33em;}",
		"    ",
		"/* title */",
		".firstHeading {",
		"font: 48px/1 AquilineTwo, IM Fell Great Primer Pro, Georgia, Open Sans !important;",
		"color: #aaa !important;",
		"/* font-weight: 400 !important; */",
		"    display: block;",
		"    margin: 0 !important;",
		"padding: .75em 0 1em 10px !important;",
		"/*position: relative  !important;",
		"z-index: 99999 !important;*/",
		"}",
		"/* redirect title */",
		"#contentSub {display:none !important;}",
		"",
		".dablink, .rellink, .relarticle {",
		"    font-size: 0.95em;",
		"    color: #777;",
		"    position: relative;",
		"    z-index: 99;",
		"}",
		"",
		"",
		"#column-one, #footer { display: none !important; } ",
		"",
		"/* hide left and top panel */",
		"#mw-panel {display:none!important;}",
		".noprint {display:none!important;}",
		"",
		"#panel, #head,#page-base",
		"  { display: none !important; } ",
		"  ",
		"  ",
		"  ",
		"",
		"/* section headers */",
		"h1, h2, h3, h4, h5, h6 {",
		"    border: none !important;",
		"    font-family: Open Sans, Droid Serif, PT Serif, Georgia, Helvetica, sans-serif !important;",
		"    margin: 0.5em 0;",
		"    color: #aaa;",
		"}",
		"h2 {",
		"    font-size: 21px;",
		"}",
		"h3 {",
		"    font-size: 18px;",
		"    font-weight: 400;",
		"}",
		"h4 {",
		"    font-size: 16px;",
		"    font-weight: 400;",
		"}",
		"h5 {",
		"    font-size: 1em;",
		"    font-weight: 400;",
		"} ",
		"  ",
		"",
		"",
		"",
		"",
		"table.ombox {",
		"    background:  none;",
		"    border:  1px solid #333;",
		"}",
		"",
		"",
		"",
		"",
		"",
		"  ",
		"#content.mw-body {",
		"    position: relative;",
		"    top: 0;",
		"    bottom: 0;",
		"    left: calc(225px + 1em);",
		"    max-width: calc(100% - 315px);",
		"    margin: 0;",
		"    border: none !important;",
		"    border-radius: 2px !important;",
		"    padding: 0px 1.6em 2em 1em !important;",
		"    background: none;",
		"    color: #777;",
		"}",
		"	.note {padding: 0 0 2em !important;}",
		"",
		"    #content ul, #content ol {",
		"        /* color: #ccc !important; */",
		"        list-style-image: none;",
		"        margin-bottom: 1em;",
		"        margin-top: 0em;",
		"    }",
		"",
		"    #content table.wikitable {",
		"        /* color: #666 !important; */",
		"        /* border: 1px solid #EEE !important; */",
		"    }",
		"    table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td {    border: 1px solid #CCC !important;}",
		"    ",
		"/* table of contents */",
		"#toc {",
		"    font-family: Open Sans, sans-serif !important;",
		"    /*border: 1px solid #EEE !important;*/",
		"    border: none;",
		"    /*border-radius: 2px !important;*/",
		"    font-size: 12px;",
		"    font-weight: 400;",
		"    /* make sidebar  */",
		"    position: fixed !important;",
		"    display: inline-block;",
		"    top: 0px;",
		"    bottom: 0;",
		"    left: 0;",
		"    width: 225px;",
		"    padding: 0em 0;",
		"    margin: 0 .5em;",
		"    /*word-break: break-all !important;*/",
		"    overflow: auto;",
		"    /*z-index: 99999;*/",
		"    /*height: 100%;*/",
		"        background: #151515;",
		"    }",
		"    #toc > ul {",
		"        overflow-y: auto !important;       ",
		"        /*word-break: break-all !important;*/",
		"        /*height: 100% !important;*/",
		"        overflow-x: hidden !important;",
		"        background: #EDEDED #151515 center center scroll;",
		"        padding: 1em 0 5em 1em;",
		"        margin: auto 0 !important;",
		"        ",
		"    }",
		"    ",
		"    .toc ul ul { margin-left: 1em !important; }",
		"    .toc a {",
		"        display: block;",
		"        padding: 0.5em;",
		"        border-radius: 2px;",
		"        line-height: 1.25 !important;",
		"    }",
		"    /* toc headers */",
		"    .toclevel-1 > a > .toctext {",
		"        font-weight: 600;",
		"        text-transform: uppercase;",
		"        margin-top: .25em;",
		"        display: inline-block;",
		"    }",
		"    .tocnumber {display:none;}",
		"    .toc h2 {display:none !important;}",
		"/*.toc:hover {",
		"    background-color: #F5F5F5 !important; ",
		"    box-shadow: 0 0 4px #666 !important;",
		"    -moz-transition: 400ms;",
		"    }*/",
		".toccolours, .thumb {",
		"    border: 0px solid #EEE !important;",
		"/*    box-shadow: 0px 0px 3px 0 #999 !important; */",
		"    border-radius: 2px !important;",
		"    }",
		"div.toctitle {text-decoration: none !important;}",
		"span.toctoggle {display:none !important;}",
		"  ",
		"  ",
		"  ",
		"  ",
		"  ",
		"",
		"/* pictures / images */",
		".infobox, .vertical-navbox {",
		"    color: #aaa !important;",
		"    background-color: #111 !important;",
		"    border: 0px solid #333 !important;",
		"    border-radius: 2px !important;",
		"    margin: 0 0 3em 3em  !important;",
		"    padding: 0.75em 1em !important;",
		"/*    box-shadow: 0px 0px 2px 0 #999 !important;  */",
		"    }",
		"    .infobox tbody tr th {",
		"        background: none !important;",
		"        font-weight: 600 !important;",
		"    }",
		"",
		"",
		".vcard tr > td, .infobox th {",
		"    border-color: #333 !important;",
		"}",
		"",
		"",
		".thumb {",
		"    border: 0px solid #333 !important;",
		"    border-radius: 2px !important;",
		"}",
		".thumbinner {",
		"    padding: 1em !important;",
		"    border: 1px solid #333 !important;",
		"    background: none !important;",
		"    }",
		"",
		".thumbimage {",
		"    border: none !important;",
		"}",
		"",
		"",
		"",
		"",
		".magnify {",
		"    display:none;",
		"}",
		"    ",
		".editsection, .mw-editsection, .plainlinks.hlist.navbar {display: none !important;}",
		"",
		"a:link {",
		"    color: #4391bb !important;",
		"    text-decoration: none !important;",
		"}",
		"a:visited {color: #677cb6 !important;} ",
		"a:hover {color: #81D4FA !important; }",
		"a:visited:hover {color: #9FA8DA !important; }",
		"a:active {color:#fff !important; outline:none;}",
		"",
		"#toc a:link {color: #999 !important; text-decoration: none !important;}",
		"#toc a:visited {color: #777 !important;}",
		"#toc a:hover {color: #ddd !important; text-decoration: none !important; background: #1f1f1f;}",
		"#toc a:active {color: #fff !important; outline:none;}",
		"",
		"",
		"/* search results */",
		".mw-search-result-data, .mw-specialpage-summary, .mw-search-formheader, .mw-search-createlink {display:none !important;}",
		".mw-search-results {padding-top: 15px !important;}",
		"div.mw-jump {display:none!important;}",
		"table#mw-search-top-table tr td input {display:none!important;}",
		"",
		"/* hide citations */",
		"a[href=\"#References\"], sup[class=\"reference\"], span[id=\"References\"], ol[class=\"references\"], .refbegin {display:none !important;}",
		"",
		"/* hide rating */",
		"div#mw-articlefeedback {display:none!important;}",
		"",
		"/* hide coordinates on location pages */",
		"#coordinates {display:none !important;}",
		"",
		"",
		"/* hide hide button",
		".collapseButton {display:none !important;}  */",
		"    ",
		"/* hide protected lock */",
		"div#protected-icon {display:none !important;}",
		"",
		"/* merge suggestion ",
		"table.metadata.plainlinks.ambox.ambox-move {display:none !important;} */",
		"/* needs citations */",
		"table.ambox {font-size: 0.9em; margin: 1em 2em; background: rgba(0,0,0,0.05); border: none; border-radius: 2px; padding: .25em .5em; color: rgba(0,0,0,0.65);}",
		"",
		"/* hide stubs */",
		"TABLE.metadata.plainlinks.stub {display:none!important;}",
		"",
		"/* V•T•E */",
		".plainlinks.hlist.navbar.mini {",
		"    display: none;",
		"}",
		"",
		"",
		"/* footer box */",
		".navbox {",
		"    border: 1px solid #333;",
		"}",
		".navbox, .navbox-subgroup {",
		"    background: none;",
		"}",
		".navbox-list, th.navbox-group {",
		"    background: none !important;",
		"}",
		".navbox-abovebelow {",
		"    background: #111 !important;",
		"}",
		"tr + tr > .navbox-abovebelow, tr + tr > .navbox-group, tr + tr > .navbox-image, tr + tr > .navbox-list {",
		"    border: 1px solid #333 !important;",
		"}",
		"td.navbox-list {border-left: 1px solid #333;}",
		"",
		"",
		"/* Categories */",
		"#mw-normal-catlinks {",
		"    font-size: 0.9em;",
		"}",
		".catlinks {",
		"    background: #111;",
		"    padding:  1em;",
		"    border: 0px solid #333;",
		"}",
		"",
		"table.wikitable {",
		"    background: none !important;",
		"    color: unset !important;",
		"}",
		"table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td {",
		"    border: 1px solid #333 !important;",
		"}",
		"table.wikitable > tr > th, table.wikitable > * > tr > th {",
		"    background: #000 !important;",
		"}",
		"",
		".navbox {padding: 0 !important;}",
		".navbox .navbox-title {",
		"    background: #000 !important;",
		"}",
		"",
		"",
		"",
		".mbox-small, .mbox-text {",
		"    color: #999 !important;",
		"    background: #111 !important;",
		"    border: 1px solid #333 !important;",
		"    border-radius: 2px !important;",
		"}",
		"",
		"",
		"/* ------------------ */",
		"",
		"",
		"",
		"",
		"",
		"/* Search results */",
		"",
		".mw-search-profile-tabs,",
		".mw-searchresults-has-iw .iw-resultset {",
		"    background:  none;",
		"    border: 1px solid #333;",
		"    border-radius: 2px;",
		"}"
	].join("\n");
if (false || (document.location.href.indexOf("http://en.wikipedia.org/wiki/File:") == 0))
	css += [
		"/* hide image properties box on image page */",
		"ul#filetoc {display:none!important;}",
		"h1#firstHeading.firstHeading {display:none!important;}",
		"div.sharedUploadNotice {display:none!important;}",
		"div#file.fullImageLink {text-align:center!important;}"
	].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);
	}
}
})();