User:Leninsaccountant/common.js

// ==UserScript== // @name         Wikipedia Material Design // @namespace    http://userstyles.org // @description	 Wikipedia minimalistic material light theme. // @author       n0x // @homepage     https://userstyles.org/styles/119976 // @include      http://wikipedia.org/* // @include      https://wikipedia.org/* // @include      http://*.wikipedia.org/* // @include      https://*.wikipedia.org/* // @run-at       document-start // @version      0.20170724093918 // ==/UserScript== (function {var css = [	"@namespace url(http://www.w3.org/1999/xhtml);",	"body {",	"       font-family: \"Arial\", Helvetica, Arial, sans-serif !important;",	"        background: #fff !important;",	"		 margin: auto;",	"		 font-size: 22px;",	"		 width: 1100px !important;",	"    }",	"",	"    a {",	"        color: #0088cc !important;",	"        text-decoration: none;",	"    }",	"",	"    a:hover {",	"        color: #005580 !important;",	"        text-decoration: underline;",	"    }",	"",	"    h1 {",	"        border: 0px !important;",	"        font-family: \'Arial\' !important;",	"        font-weight: 700 !important;",	"        font-size: 42px !important;",	"    }",	"",	"    h2 {",	"        border: 0px !important;",	"        font-family: \'Arial\' !important;",	"        font-weight: 400 !important;",	"        font-size: 32px !important;",	"    }",	"",	"    h3 {",	"        border: 0px !important;", "       font-family: \'Arial\' !important;", "       font-weight: 400 !important;", "       font-size: 26px !important;", "   }",	"",	"    #content h3 {", "       font-size: 26px !important;", "   }",	"",	"    p {", "       font-weight: 300 !important;", "       line-height: 1.9 !important;", "		 font-size: 20px;", "   }",	"",	"    table,td,th {", "       border: 0px !important;", "       border-collapse: collapse !important;", "       padding: 5px !important;", "   }",	"",	"    ul,li {", "       background: transparent !important;", "       border: 0px !important;", "       line-height: 1.8 !important;", "       font-size: 14px !important;", "       font-weight: 300 !important;", "   }",	"",	"    li span {", "       background: transparent !important;", "       border: 0px !important;", "       font-size: 14px !important;", "   }",	"",	"    .referencetooltip {", "       background-color: #EEE !important;", "   }",	"",	"    dl {", "       font-weight: 300 !important;", "   }",	"",	"    dt {", "       font-style: italic;", "       font-size: 16px !important;", "       margin-top: 10px !important;", "   }",	"",	"    dd {", "       font-size: 15px !important;", "   }",	"    ",	"    .mw-wiki-logo{", "       padding-left: 15px !important;", "       padding-top: 10px !important;", "       border: none !important;", "   }",	"",	"    #p-logo a {", "       background-image: url(\'https://i.imgur.com/ur4m5Ia.png\') !important;", "   }",	"",	"    code {", "       padding: 3px !important;", "       background: transparent !important;", "       color: #39892f !important;", "   }",	"",	"    tt {", "       font-family: \'Source Code Pro\',\'Lucida Sans Unicode\',\'Courier New\' !important;", "       font-size: 16px !important;", "   }",	"",	"    .new,.new:link,.new:visited {", "       color: #cd5b45 !important;", "   }",	"",	"    blockquote {", "       border: 0px !important;", "       font-style: italic !important;", "       font-size: 20px !important;", "       margin: 35px 75px !important;", "       line-height: 1.5 !important;", "       font-weight: 300 !important;", "       background: transparent !important;", "   }",	"",	"    select {", "       padding: 0px 10px;", "   }",	"",	"    .mw-ui-button,.mw-ui-progressive {", "       border-radius: 4px !important;", "       border: 1px solid #347Bff !important;", "       color: #347Bff !important;", "       background: #fff !important;", "       text-shadow: 0px 0px 0px;", "   }",	"",	"    .mw-ui-button.mw-ui-progressive:hover,.mw-ui-button.mw-ui-progressive:focus,.mw-ui-button.mw-ui-progressive:active,.mw-ui-button:hover,.mw-ui-progressive:hover,.mw-ui-button:focus,.mw-ui-progressive:focus {", "       box-shadow: 0px 0px 0px !important;", "       text-shadow: 0px 0px 0px !important;", "       border: 1px solid #347Bff !important;", "   }",	"",	"    #wpSave,#wpPreview,#wpDiff {", "       border-radius: 4px !important;", "       border: 1px solid #347Bff !important;", "       color: #347Bff !important;", "       background: #fff !important;", "       text-shadow: 0px 0px 0px;", "       padding: 0.5em 1em;", "       cursor: pointer;", "   }",	"",	"    #wpSave:hover,#wpPreview:hover,#wpDiff:hover {", "       color: rgba(52,123,255,0.5) !important;", "       ;",	"    }",	"    ",	"    /* Search */", "   #simpleSearch {", "       background: transparent !important;", "       border-color: #ccc !important;", "   }",	"",	"    #searchInput {", "       background: transparent !important;", "   }",	"",	"    .mw-ui-input {", "       border: 1px solid #347Bff !important;", "       color: #000 !important;", "       background: #fff !important;", "       font-size: 16px !important;", "   }",	"",	"    .mw-ui-input:focus {", "       box-shadow: 0px 0px 0px !important;", "   }",	"    ",	"    .mw-content-ltr pre {", "       font-family: \"Courier New\", Lucida Console, sans-serif !important;", "       color: #000d26 !important;", "   }",	"",	"    .suggestions {", "       font-weight: 300 !important;", "       font-size: 15px !important;", "       max-width: 300px !important;", "       margin-top: 15px !important;", "       border: 0px !important;", "       box-shadow: 2px 2px 10px 2px rgba(0,0,0,0.5);", "   }",	"",	"    .suggestions-results {", "       border: 0px !important;", "   }",	"",	"    .suggestions-result {", "       padding: 10px !important;", "   }",	"",	"    .imeselector,#searchEngines {", "       display: none !important;", "   }",	"",	"    .mw-search-formheader {", "       border: 0px !important;", "       background: transparent !important;", "   }",	"",	"    .central-featured-logo {", "       background-image: url(\'https://i.imgur.com/nRDTbeb.png\') !important;", "",	"   }",	"",	"",	"    .mw-search-result-heading,.searchresult,.searchmatch {", "       font-size: 14px !important;", "       font-weight: 400 !important;", "       padding: 3px 0px !important;", "   }",	"",	"    .searchmatch {", "       font-weight: 700 !important;", "   }",	"",	"    .mw-search-result-data,.mw-search-createlink {", "       display: none;", "   }",	"",	"    #mw-page-base,.vectorTabs {", "       background: transparent !important;", "       border: 0px !important;", "   }",	"",	"    #content {", "       border: 0px !important;", "       margin-left: 215px !important;", "   }",	"",	"    .portal {", "       background: transparent !important;", "   }",	"",	"    #mw-panel {", "       width: 200px !important;", "       border-right: 1px solid #bbb;", "       background: white !important;", "       padding-left: 10px !important;", "   }",	"    ",	"    #p-logo {", "       left: 0px;", "       padding-left: 10px;", "       background-color: white;", "   }",	"",	"    #p-logo a {", "       padding-left: 40px;", "       background-color: white;", "       left: 0px;", "       border-right: 1px solid #aaa;", "   }",	"    #p-logo a:hover {", "       opacity: 1.0;", "   }",	"",	"    #mw-head {", "       background-color: #f9f9f9;", "       opacity: 1.0;", "       box-shadow: 0px 1px 2px #aaa;", "       -webkit-transition-property: opacity !important;", "       -moz-transition-property: opacity !important;", "       -o-transition-property: opacity !important;", "       -ms-transition-property: opacity !important;", "       transition-property: opacity !important;", "       -webkit-transition-duration: 0.5s !important;", "       -moz-transition-duration: 0.5s !important;", "       -o-transition-duration: 0.5s !important;", "       -ms-transition-duration: 0.5s !important;", "       transition-duration: 0.25s !important;", "   }",	"",	"    #mw-head:hover {", "       opacity: 1.0 !important;", "   }",	"",	"    .uls-settings-trigger {", "       display: none !important;", "   }",	"",	"    #left-navigation {", "       margin-left: 233px !important;", "   }",	"",	"    .wikitable {", "       font-weight: 300 !important;", "   }",	"",	"    .wikitable td,.wikitable th {", "       border: 1px dashed rgba(0,0,0,0.07) !important;", "   }",	"",	"    pre {", "       line-height: 1.3 !important;", "       font-family: \"Courier New\", Lucida Console, sans-serif !important;", "       border: 0px !important;", "       background: 0px !important;", "       font-size: 16px !important;", "   }",	"",	"    .mw-code {", "       border: 0px !important;", "       padding: 17px !important;", "       background: 0px !important;", "       font-size: 16px !important;", "   }",	"",	"    .toc {", "       background: transparent !important;", "       border-style: dashed !important;", "       display: block !important;", "       max-width: 300px !important;", "   }",	"",	"    .toctoggle {", "       display: none !important;", "   }",	"",	"    .thumbinner,.thumb,.toccolours,.graytable {", "       background: transparent !important;", "       border: 0px !important;", "       font-size: 16px !important;", "   }",	"",	"    .thumbimage {", "       border: 0px !important;", "   }",	"",	"    .thumbcaption {", "       font-style: italic !important;", "       margin: 7px 0px !important;", "   }",	"",	"    .thumbimage:hover {", "       opacity: 0.85 !important;", "   }",	"",	"    .dablink {", "       margin: 14px 0px !important;", "       font-weight: 300 !important;", "       font-size: 18px !important;", "   }",	"",	"    #siteSub,.flaggedrevs_preview {", "       display: none !important;", "   }",	"",	"    .ambox,.tmbox,.Note,.informationbox {", "       margin: 5px 0px !important;", "       font-size: 18px !important;", "       font-weight: 700 !important;", "       line-height: 1.5 !important;", "       border: 1px dashed #aaa !important;", "       max-width: 550px !important;", "       font-weight: 300 !important;", "   }",	"",	"    .ambox td,.tmbox td {", "       padding: 10px !important;", "   }",	"",	"    .ambox-text-small,.mbox-text,.Note td {", "       font-size: 14px !important;", "       font-weight: 300 !important;", "       color: #000 !important;", "   }",	"",	"    .ambox-image,.mbox-image {", "       display: none;", "   }",	"",	"    #request_for_deletion,.ambox-serious {", "       background: rgba(255,0,0,0.1) !important;", "       border: 1px dashed rgba(255,0,0,0.15) !important;", "       color: #a00000 !important;", "   }",	"",	"    .tmbox-notice,.tmbox-move,.Note {", "       background: rgba(150,75,0,0.1) !important;", "       border: 1px dashed rgba(150,75,0,0.15) !important;", "   }",	"",	"    .informationbox {", "       background: #fff !important;", "       padding: 10px !important;", "       font-size: 14px !important;", "   }",	"",	"    .editOptions {", "       background: #fff !important;", "       border: 0px !important;", "   }",	"",	"    .catlinks {", "       background: transparent !important;", "       border: 1px dashed #aaa !important;", "       font-size: 16px !important;", "   }",	"",	"    .infobox,.tright,.toccolours {", "       border: 0px !important;", "       background: transparent !important;", "       border-collapse: collapse !important;", "   }",	"",	"    .infobox td,.infobox th,.tright td,.tright th,.toccolours td,.toccolours th {", "       padding: 5px !important;", "       background: transparent !important;", "       font-weight: 400 !important;", "       border: 1px dashed rgba(0,0,0,0.07) !important;", "   }",	"",	"    .image img:hover {", "       opacity: 0.85 !important;", "   }",	"",	"    .globegris {", "       background: transparent !important;", "   }",	"",	"    .mw-editsection-bracket,.references-small b,.mw-cite-backlink,.plainlinksneverexpand {", "       display: none !important;", "   }",	"",	"    #floating_object {", "       display: none;", "   }",	"",	"    .navbox,.nowraplinks {", "       margin: 10px 0px !important;", "       border-collapse: collapse !important;", "   }",	"",	"    .navbox td,.navbox th,.nowraplinks td,.nowraplinks th {", "       padding: 9px 6px !important;", "       font-size: 14px !important;", "       font-weight: 300 !important;", "       border: 1px solid #fff !important;", "   }",	"",	"    .NavFrame {", "       border: 0px !important;", "       background: transparent !important;", "       padding: 0px !important;", "   }",	"",	"    .NavHead {", "       margin: 10px 0px !important;", "       padding: 12px !important;", "       font-size: 16px !important;", "       font-weight: 700 !important;", "       background: transparent !important;", "   }",	"",	"    .Boxmerge {", "       border: 0px !important;", "   }",	"",	"    #coordinates {", "       display: none !important;", "   }",	"",	"    #mw-fr-revisiontag,#mw-fr-reviewnotice {", "       display: none !important;", "   }",	"",	"    div#footer {", "       margin-left: 14em !important;", "       padding: 1.25em 1.5em 1.5em !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); } } });