Difference between revisions of "User:Krytyk/vector.css"
Jump to navigation
Jump to search
m (Blanked the page) |
m |
||
Line 1: | Line 1: | ||
+ | // ==UserScript== |
||
+ | // @name Baka-Tsuki Dark (by MIMIC-Project) |
||
+ | // @namespace http://userstyles.org |
||
+ | // @description Dark version of Baka-Tsuki. Because reading light novels with the default bright-colored-scheme is too hurting for my eyes. |
||
+ | // @author MIMIC-Project |
||
+ | // @homepage http://userstyles.org/styles/102754 |
||
+ | // @include http://baka-tsuki.org/* |
||
+ | // @include https://baka-tsuki.org/* |
||
+ | // @include http://*.baka-tsuki.org/* |
||
+ | // @include https://*.baka-tsuki.org/* |
||
+ | // @run-at document-start |
||
+ | // ==/UserScript== |
||
+ | (function() { |
||
+ | var css = "/*!========================================\\\\\n|| Dark Baka-Tsuki ||\n||-----------------------------------------||\n|| Created by MIMIC-Project ||\n||-----------------------------------------||\n|| A simple dark theme for Baka-tsuki ||\n|| http://mimic-project.com ||\n\\\\----------------------------------------!*/\n\n#mw-page-base,\n#mw-head,\n#p-logo,\n#footer\n{\n display: none;\n}\nbody {\n background-color: #333333 !important;\n color: #ddd !important;\n font-size: 1.0em;\n}\na {\n color: #fff !important;\n}\na.new {\n color: #888 !important;\n}\nh1, h2, h3, h4, h5, h6 {\n color: inherit;\n}\nol, ul {\n list-style-image: none;\n}\ndiv#mw-panel div.portal div.body ul {\n list-style-type: disc;\n}\ntable.wikitable {\n color: #ddd;\n}\ndiv#content {\n background: none;\n color: #ddd;\n border-color: #ddd;\n}\ndiv#mw-panel {\n padding-top: 0em;\n top: 20px;\n}\n#mw-panel.collapsible-nav .portal {\n background: none !important;\n border-top: 1px solid #ddd;\n border-bottom: 1px solid #ddd;\n}\ndiv.thumbinner {\n background: none;\n}\ntable, tr, th, td,\n#toc,\n.toc,\n.mw-warning,\n.catlinks,\n.collapsible,\n.collapsible th,\nli.gallerybox div.thumb {\n background-color: #444 !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 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); |
||
+ | } |
||
+ | } |
||
+ | })(); |
Revision as of 18:12, 30 June 2014
// ==UserScript== // @name Baka-Tsuki Dark (by MIMIC-Project) // @namespace http://userstyles.org // @description Dark version of Baka-Tsuki. Because reading light novels with the default bright-colored-scheme is too hurting for my eyes. // @author MIMIC-Project // @homepage http://userstyles.org/styles/102754 // @include http://baka-tsuki.org/* // @include https://baka-tsuki.org/* // @include http://*.baka-tsuki.org/* // @include https://*.baka-tsuki.org/* // @run-at document-start // ==/UserScript== (function() { var css = "/*!========================================\\\\\n|| Dark Baka-Tsuki ||\n||-----------------------------------------||\n|| Created by MIMIC-Project ||\n||-----------------------------------------||\n|| A simple dark theme for Baka-tsuki ||\n|| http://mimic-project.com ||\n\\\\----------------------------------------!*/\n\n#mw-page-base,\n#mw-head,\n#p-logo,\n#footer\n{\n display: none;\n}\nbody {\n background-color: #333333 !important;\n color: #ddd !important;\n font-size: 1.0em;\n}\na {\n color: #fff !important;\n}\na.new {\n color: #888 !important;\n}\nh1, h2, h3, h4, h5, h6 {\n color: inherit;\n}\nol, ul {\n list-style-image: none;\n}\ndiv#mw-panel div.portal div.body ul {\n list-style-type: disc;\n}\ntable.wikitable {\n color: #ddd;\n}\ndiv#content {\n background: none;\n color: #ddd;\n border-color: #ddd;\n}\ndiv#mw-panel {\n padding-top: 0em;\n top: 20px;\n}\n#mw-panel.collapsible-nav .portal {\n background: none !important;\n border-top: 1px solid #ddd;\n border-bottom: 1px solid #ddd;\n}\ndiv.thumbinner {\n background: none;\n}\ntable, tr, th, td,\n#toc,\n.toc,\n.mw-warning,\n.catlinks,\n.collapsible,\n.collapsible th,\nli.gallerybox div.thumb {\n background-color: #444 !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 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); } } })();