Wikipedia Dark Cyan (like Cyanogenmod)

A dark version of Wikipedia.org

  1. // ==UserScript==
  2. // @name Wikipedia Dark Cyan (like Cyanogenmod)
  3. // @namespace greasyfork
  4. // @description A dark version of Wikipedia.org
  5. // @author Cruto
  6. // @homepage -
  7. // @include http://wikipedia.org/*
  8. // @include https://wikipedia.org/*
  9. // @include http://*.wikipedia.org/*
  10. // @include https://*.wikipedia.org/*
  11. // @include http://wikimedia.org/*
  12. // @include https://wikimedia.org/*
  13. // @include http://*.wikimedia.org/*
  14. // @include https://*.wikimedia.org/*
  15.  
  16. // @run-at document-start
  17. // @version 3
  18. // ==/UserScript==
  19. (function() {var css = "";
  20. if (false || (document.domain == "wikipedia.org" || document.domain.substring(document.domain.indexOf(".wikipedia.org") + 1) == "wikipedia.org"))
  21. css += [
  22. "#p-logo > a{",
  23. " background-image: url()!important;",
  24. " }"
  25. ].join("\n");
  26. if (false || (document.domain == "wikimedia.org" || document.domain.substring(document.domain.indexOf(".wikimedia.org") + 1) == "wikimedia.org"))
  27. css += [
  28. "#p-logo > a{",
  29. " background-image: url()!important;",
  30. " background-size: contain!important;",
  31. " }"
  32. ].join("\n");
  33. if (false || (document.domain == "wikipedia.org" || document.domain.substring(document.domain.indexOf(".wikipedia.org") + 1) == "wikipedia.org") || (document.domain == "wikimedia.org" || document.domain.substring(document.domain.indexOf(".wikimedia.org") + 1) == "wikimedia.org"))
  34. css += [
  35. "body{",
  36. " background-color: #191919!important;",
  37. " background-image: url()!important;",
  38. " background-attachment: fixed!important;",
  39. " background-repeat: repeat-x!important;",
  40. " }",
  41. " ",
  42. " a{",
  43. " color: #32a9da!important;",
  44. " }",
  45. " ",
  46. " a:hover{",
  47. " color: #6ad3ff!important;",
  48. " }",
  49. " ",
  50. " h1, h2, h3, h4, h5, h6{",
  51. " color: rgba(220, 220, 220, 1)!important;",
  52. " }",
  53. " ",
  54. " #mw-head-base,",
  55. " #mw-page-base,",
  56. " #mw-head,",
  57. " #mw-panel{",
  58. " background-color: rgba(20, 20, 20, 0)!important;",
  59. " background-image: none!important;",
  60. " }",
  61. " ",
  62. " #content.mw-body{",
  63. " background-color: rgba(100, 100, 100, 0.2)!important;",
  64. " border-color: rgba(220, 220, 220, 0.2)!important;",
  65. " }",
  66. " ",
  67. " *{",
  68. " border-color: rgba(220, 220, 220, 0.2)!important;",
  69. " }",
  70. " ",
  71. " p,",
  72. " dd,",
  73. " .sisterproject{",
  74. " color: rgba(220, 220, 220, 0.8)!important;",
  75. " }",
  76. "",
  77. " .hauptartikel-pfeil,",
  78. " i,",
  79. " strong{",
  80. " color: #fff!important;",
  81. " }",
  82. " ",
  83. " .settings-menu-items .menu-section:hover{",
  84. " background-color: rgba(220, 220, 220, 0.05)!important;",
  85. " color: rgba(220, 220, 220, 0.8)!important;",
  86. " } ",
  87. " ",
  88. " .settings-menu-items .menu-section{",
  89. " color: rgba(220, 220, 220, 0.6)!important;",
  90. " }",
  91. " ",
  92. " .uls-input-settings .uls-input-settings-inputmethods-list{",
  93. " background-color: rgba(220, 220, 220, 0.1)!important;",
  94. " }",
  95. " ",
  96. " li,",
  97. " td,",
  98. " tr,",
  99. " th,",
  100. " td > h2,",
  101. " td > div > h2,",
  102. " dt{",
  103. " color: rgba(220, 220, 220, 0.6)!important;",
  104. " background-color: rgba(220, 220, 220, 0.01)!important;",
  105. " }",
  106. " ul {",
  107.  
  108. " list-style-image: none!important;",
  109. " }",
  110. " ",
  111. " dt{",
  112. " color: rgba(220, 220, 220, 0.8)!important;",
  113. " background-color: rgba(220, 220, 220, 0.01)!important;",
  114. " text-shadow: 0px 2px 0px #111!important;",
  115. " }",
  116. " ",
  117. " .rellink{",
  118. " color: #daef8f!important;",
  119. " background-color: rgba(220, 220, 220, 0.01)!important;",
  120. " }",
  121. " ",
  122. " code,",
  123. " .mw-geshi,",
  124. " pre,",
  125. " .catlinks,",
  126. " .NavContent > p{",
  127. " color: rgba(220, 220, 220, 0.6)!important;",
  128. " background-color: rgba(100, 200, 255, 0.1)!important;",
  129. " }",
  130. " ",
  131. " ",
  132. " #hauptseite .inhalt,",
  133. " .infobox{",
  134. " background-color: rgba(220, 220, 220, 0.1)!important;",
  135. " }",
  136. " ",
  137. " .toptextcells > tbody tr td div{",
  138. " background-color: transparent!important;",
  139. " }",
  140. " ",
  141. " .infobox > div,",
  142. " div.flaggedrevs_short{",
  143. " background-color: #444!important;",
  144. " color: #eee!important;",
  145. " }",
  146. " ",
  147. " #mw-fr-revisiondetails{",
  148. " background-color: rgba(20, 20, 20, 0.9)!important;",
  149. " }",
  150. " ",
  151. " #mw-panel.collapsible-nav .portal{",
  152. " background-image: url()!important;",
  153. " }",
  154. " ",
  155. " [id^=\"wpTextbox\"]{",
  156. " background-color: rgba(20, 20, 20, 1.0)!important;",
  157. " color: #ddd!important;",
  158. " }",
  159. " ",
  160. " div.thumbinner,",
  161. " div.thumbinner > a > img,",
  162. " #toc,",
  163. " .toccolours,",
  164. " #catlinks,",
  165. " div[id^=\"mw-Anonymous\"],",
  166. " #filetoc{",
  167. " background-color: rgba(20, 20, 20, 0.3)!important;",
  168. " border-color: rgba(220, 220, 220, 0.1)!important;",
  169. " }",
  170. " ",
  171. " #ChangeToU2014_v1_anononly{",
  172. " border-color: rgba(220, 220, 220, 0.1)!important;",
  173. " background: rgba(20, 20, 20, 0.3)!important;",
  174. " }",
  175. " ",
  176. " #ChangeToU2014_v1_anononly *,",
  177. " div[id^=\"mw-Anonymous\"],",
  178. " #stockphoto_base > span > span:last-of-type{",
  179. " color: #aaa!important;",
  180. " }",
  181. " ",
  182. " div.vectorMenu h3 a{",
  183. " background: none!important;",
  184. " }",
  185. " ",
  186. " div.thumbinner > .thumbcaption,",
  187. " #siteSub{",
  188. " color: rgba(220, 220, 220, 0.5)!important;",
  189. " }",
  190. " ",
  191. " .hintergrundfarbe5,",
  192. " table{",
  193. " background-color: rgba(220, 220, 220, 0.05)!important;",
  194. " }",
  195. " ",
  196. " div#simpleSearch{",
  197. " background-color: rgba(220, 220, 220, 0.05)!important;",
  198. " background-image: none!important;",
  199. " }",
  200. " ",
  201. " #searchInput{",
  202. " color: #eee!important;",
  203. " }",
  204. " ",
  205. " .imeselector-menu,",
  206. " div.vectorMenu ul,",
  207. " #language-settings-dialog,",
  208. " .grid.uls-menu.uls-wide.callout{",
  209. " background-color: rgba(20, 20, 20, 0.95)!important;",
  210. " }",
  211. " ",
  212. " #languagesettings-panels .menu-section.active, #languagesettings-panels .menu-section.active:hover,",
  213. " .uls-language-settings-close-block{",
  214. " background-color: rgba(220, 220, 220, 0.15)!important;",
  215. " color: #eee!important;",
  216. " }",
  217. " ",
  218. " .uls-menu .search,",
  219. " .uls-menu .search > .ten.columns > #search-input-block > #languagefilter,",
  220. " .uls-menu .search > .ten.columns > #search-input-block > #filtersuggestion,",
  221. " #uls-no-found-more{",
  222. " background: rgba(220, 220, 220, 0.05)!important;",
  223. " color: #eee!important;",
  224. " }",
  225. " ",
  226. " .settings-text{",
  227. " color: #777!important;",
  228. " }",
  229. " ",
  230. " #languagesettings-settings-panel{",
  231. " background-color: rgba(220, 220, 220, 0.05)!important;",
  232. " }",
  233. "",
  234. " .imeselector a, .ime-disable{",
  235. " color: rgba(220, 220, 220, 0.5)!important;",
  236. " }",
  237. " ",
  238. " div.vectorTabs,",
  239. " div.vectorTabs ul,",
  240. " div.vectorTabs ul li,",
  241. " div.vectorTabs ul li span{",
  242. " background-image: none!important;",
  243. " background-color: transparent!important;",
  244. " border: none!important;",
  245. " }",
  246. " ",
  247. " div.vectorTabs ul li{",
  248. " box-shadow: inset 0px -30px 25px -35px rgba(160, 160, 160, 0.5)!important;",
  249. " margin-left: -1px!important;",
  250. " transition: 0.4s!important;",
  251. " }",
  252. " ",
  253. " div.vectorTabs ul li:hover{",
  254. " box-shadow: inset 0px -25px 25px -35px rgba(255, 255, 255, 1)!important;",
  255. " margin-left: -1px!important;",
  256. " transition: 0.4s!important;",
  257. " }",
  258. " ",
  259. " .wikitable.float-right > tbody > tr > th a{",
  260. " color: #999!important;",
  261. " text-decoration: underline!important;",
  262. " }",
  263. " ",
  264. " .wikitable.float-right > tbody > tr > th a:hover{",
  265. " color: #eee!important;",
  266. " text-decoration: underline!important;",
  267. " }",
  268. " ",
  269. " div.NavHead,",
  270. " table.wikitable > tr > th,",
  271. " table.wikitable > * > tr > th,",
  272. " table.wikitable > * > tr:last-of-type > td,",
  273. " #mw-content-text > p > span{",
  274. " background: rgba(255, 255, 255, 0.1)!important;",
  275. " }",
  276. " ",
  277. " .body > select{",
  278. " background-color: #222!important;",
  279. " padding-top: 1px!Important;",
  280. " height: 22px!Important;",
  281. " color: #aaa!important;",
  282. " width: 130px!Important;",
  283. " border: none!important;",
  284. " box-shadow: inset 0px 15px 10px -10px #303030, inset 0px 1px 1px #777!important;",
  285. " margin: 5px 0px 5px 0px!important;",
  286. " border-radius: 20px!important;",
  287. " transition: 0.4s!important;",
  288. " }",
  289. " ",
  290. " input[type=\"button\"]{",
  291. " background-color: #222!important;",
  292. " height: 23px!Important;",
  293. " color: #aaa!important;",
  294. " width: 130px!Important;",
  295. " border: none!important;",
  296. " box-shadow: inset 0px 15px 10px -10px #303030, inset 0px 1px 1px #777!important;",
  297. " margin: 5px 0px 5px 0px!important;",
  298. " border-radius: 20px!important;",
  299. " transition: 0.4s!important;",
  300. " }",
  301. " ",
  302. " input[type=\"button\"]:hover{",
  303. " background-color: #303030!important;",
  304. " height: 23px!Important;",
  305. " color: #aaa!important;",
  306. " width: 130px!Important;",
  307. " border: none!important;",
  308. " box-shadow: inset 0px 15px 10px -10px #404040, inset 0px 1px 1px #888!important;",
  309. " margin: 5px 0px 5px 0px!important;",
  310. " border-radius: 20px!important;",
  311. " transition: 0.4s!important;",
  312. " }",
  313. "",
  314. " .tex{",
  315. " background-color: #eee!important;",
  316. " padding: 10px!important;",
  317. " border-radius: 5px!important;",
  318. " }",
  319. " ",
  320. " .bookshelf-container .bookend{",
  321. " background-image: url()!important;",
  322. " }",
  323. " ",
  324. " .search-container.language-search > form > label{",
  325. " color: #eee!important;",
  326. " }",
  327. " ",
  328. " .divider{",
  329. " opacity: 0.4!important;",
  330. " }",
  331. " ",
  332. " fieldset{",
  333. " background-color: rgba(200, 200, 200, 0.2)!important;",
  334. " }",
  335. " ",
  336. " .central-featured-lang > .link-box > em{",
  337. " color: #888!important;",
  338. " }",
  339. " ",
  340. " .central-featured-lang > .link-box > small{",
  341. " color: #666!important;",
  342. " }",
  343. " ",
  344. " h1.central-textlogo > img{",
  345. " visibility: hidden!important;",
  346. " }",
  347. " ",
  348. " h1.central-textlogo{",
  349. " background-image: url()!important;",
  350. " background-repeat: no-repeat!important;",
  351. " background-position: center!important;",
  352. " }",
  353. " #wpTextbox1 {", //saját
  354. " background-color: black;",
  355. " }",
  356. " .mw-highlight {", //saját
  357. " background-color: #000 !important;",
  358. " }",
  359.  
  360. ].join("\n");
  361. if (typeof GM_addStyle != "undefined") {
  362. GM_addStyle(css);
  363. } else if (typeof PRO_addStyle != "undefined") {
  364. PRO_addStyle(css);
  365. } else if (typeof addStyle != "undefined") {
  366. addStyle(css);
  367. } else {
  368. var node = document.createElement("style");
  369. node.type = "text/css";
  370. node.appendChild(document.createTextNode(css));
  371. var heads = document.getElementsByTagName("head");
  372. if (heads.length > 0) {
  373. heads[0].appendChild(node);
  374. } else {
  375. // no head yet, stick it whereever
  376. document.documentElement.appendChild(node);
  377. }
  378. }
  379. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址