Advertisement
LowEffortErnst

Darkwurf - Custom dark CSS for Ernstchan

Jul 27th, 2022 (edited)
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Darkwurf
  3. // @namespace http://userstyles.org
  4. // @description A dark Ernstchan for sensitive eyes.
  5. // @author Low Effort Ernst-fork of the original by Torschlusspanik
  6. // @homepage https://userstyles.org/styles/140638
  7. // @match http://ernstchan.xyz/*
  8. // @match https://ernstchan.xyz/*
  9. // @match http://*.ernstchan.xyz/*
  10. // @match https://*.ernstchan.xyz/*
  11. // @match https://dietchan.org/*
  12. // @match http://dietchan.org/*
  13. // @run-at document-end
  14. // @version 0.12
  15. // ==/UserScript==
  16. (function() {var css = [
  17. "body {",
  18. " background-color: #111 !important;",
  19. "}",
  20. ".info,",
  21. ".post {",
  22. " background-color: #303030 !important;",
  23. " border-right: 1px solid #000000 !important;",
  24. " border-bottom: 1px solid #000000 !important;",
  25. " margin-bottom: 0.5em !important;",
  26. " overflow: auto !important;",
  27. "}",
  28. "body {",
  29. " color: #c8c8c8 !important;",
  30. " font: normal 0.8em sans-serif;",
  31. "}",
  32. "[id^='posttext'] {",
  33. " word-break: keep-all !important;",
  34. " overflow-wrap: normal !important;",
  35. "}",
  36. ".title,",
  37. ".thread_head {",
  38. " clear: left !important;",
  39. " color: #c8c8c8 !important;",
  40. " background-color: #000000 !important;",
  41. " padding: 5px !important;",
  42. "}",
  43. "blockquote.unkfunc,",
  44. "span.quote {",
  45. " color: #44cc44 !important;",
  46. " margin: 0 !important;",
  47. "}",
  48. ".postername {",
  49. " color: #c3c0c0 !important;",
  50. "}",
  51. "a:link,",
  52. "a:visited,",
  53. "a:hover {",
  54. " color: #000000 !important;",
  55. "}",
  56. ".boardname,",
  57. ".caption {",
  58. " color: #000000 !important;",
  59. " font-size: 2em !important;",
  60. " margin-top: 0.5em !important;",
  61. "}",
  62. ".subject {",
  63. " color: #b2b2b2 !important;",
  64. " font-size: 1.2em !important;",
  65. "}",
  66. ".notice {",
  67. " color: #ffffff !important;",
  68. " background-color: #000000 !important;",
  69. "}",
  70. "a:link,",
  71. "a:visited,",
  72. "a:hover {",
  73. " color: #888888 !important;",
  74. "}",
  75. ".file {",
  76. " background-color: #504e4b !important;",
  77. "}",
  78. ".sage {",
  79. " color: #FF69B4 !important;",
  80. "}",
  81. "ul.menu li a,",
  82. "ul.menu_bottom li a {",
  83. " background-color: #fff !important;",
  84. " color: #000000 !important;",
  85. "}",
  86. ".row1 {",
  87. " background-color: #666666 !important;",
  88. "}",
  89. ".row2 {",
  90. " background-color: #444444 !important;",
  91. "}"
  92. ].join("\n");
  93. if (typeof GM_addStyle != "undefined") {
  94. GM_addStyle(css);
  95. } else if (typeof PRO_addStyle != "undefined") {
  96. PRO_addStyle(css);
  97. } else if (typeof addStyle != "undefined") {
  98. addStyle(css);
  99. } else {
  100. var node = document.createElement("style");
  101. node.type = "text/css";
  102. node.appendChild(document.createTextNode(css));
  103. var heads = document.getElementsByTagName("head");
  104. if (heads.length > 0) {
  105. heads[0].appendChild(node);
  106. } else {
  107. // no head yet, stick it whereever
  108. document.documentElement.appendChild(node);
  109. }
  110. }
  111. })();
  112.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement