Advertisement
LowEffortErnst

Krernstchan - Custom Krautchan-style CSS for Ernstchan

Jul 27th, 2022 (edited)
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Krernstchan
  3. // @description If you're conditioned on the old Kaycee color scheme
  4. // @author Low Effort Ernst-fork of the original by Torschlusspanik
  5. // @match http://ernstchan.xyz/*
  6. // @match https://ernstchan.xyz/*
  7. // @match http://*.ernstchan.xyz/*
  8. // @match https://*.ernstchan.xyz/*
  9. // @match https://dietchan.org/*
  10. // @match http://dietchan.org/*
  11. // @run-at document-end
  12. // @version 0.12
  13. // ==/UserScript==
  14. (function() {var css = [
  15. "body {",
  16. " background-color: #e7e7e7 !important;",
  17. "}",
  18. ".info,",
  19. ".post {",
  20. " margin-bottom: 0.3em !important;",
  21. " word-wrap: normal;",
  22. " border-style: none !important;",
  23. " overflow: auto !important;",
  24. " background-color: #b0b0d0 !important;",
  25. "}",
  26. "body {",
  27. " color: #000000 !important;",
  28. " font: normal 0.8em sans-serif;",
  29. "}",
  30. "[id^='posttext'] {",
  31. " word-break: keep-all !important;",
  32. " overflow-wrap: normal !important;",
  33. "}",
  34. ".title,",
  35. ".thread_head {",
  36. " clear: left !important;",
  37. " background-color: #e7e7e7 !important;",
  38. " color: #000000 !important;",
  39. " padding-top: 0px !important;",
  40. " padding-left: 5px !important;",
  41. " padding-bottom: 5px !important;",
  42. "}",
  43. "blockquote.unkfunc,",
  44. "span.quote {",
  45. " color: #007733 !important;",
  46. " margin: 0 !important;",
  47. "}",
  48. ".postername {",
  49. " color: #3333dd !important;",
  50. "}",
  51. "a:link,",
  52. "a:visited,",
  53. "a:hover {",
  54. " color: #000000 !important;",
  55. "}",
  56. ".boardname,",
  57. ".caption {",
  58. " color: #bb0000 !important;",
  59. " font-size: 2em !important;",
  60. " margin-top: 0.2em !important;",
  61. "}",
  62. ".subject {",
  63. " color: #dd0000 !important;",
  64. " font-size: 1.2em !important;",
  65. "}",
  66. ".notice {",
  67. " color: #000000 !important;",
  68. " background-color: #9090c0 !important;",
  69. "}",
  70. "a:link,",
  71. "a:visited,",
  72. "a:hover {",
  73. " color: #000000 !important;",
  74. "}",
  75. "#WzTiTlTb {",
  76. " color: #000000 !important;",
  77. " background-color: #c0c0e0 !important;",
  78. "}",
  79. "#WzTiTl {",
  80. " color: #000000 !important;",
  81. " background-color: #a0a0b0 !important;",
  82. "}",
  83. "#WzTiTlI {",
  84. " color: #000000 !important;",
  85. " background-color: #a0a0b0 !important;",
  86. "}",
  87. "#WzBoDy {",
  88. " color: #000000 !important;",
  89. " background-color: #c0c0e0 !important;",
  90. "}",
  91. ".pagelist {",
  92. " background-color: #b0b0d0 !important;",
  93. "}",
  94. ".file {",
  95. " background-color: #a0a0bf !important;",
  96. "}",
  97. ".sage {",
  98. " color: #BF40BF !important;",
  99. "}",
  100. "ul.menu li a,",
  101. "ul.menu_bottom li a {",
  102. " background-color: #fff !important;",
  103. " color: #000000 !important;",
  104. "}",
  105. ".row1 {",
  106. " background-color: #9999aa !important;",
  107. "}",
  108. ".row2 {",
  109. " background-color: #666666 !important;",
  110. "}"
  111. ].join("\n");
  112. if (typeof GM_addStyle != "undefined") {
  113. GM_addStyle(css);
  114. } else if (typeof PRO_addStyle != "undefined") {
  115. PRO_addStyle(css);
  116. } else if (typeof addStyle != "undefined") {
  117. addStyle(css);
  118. } else {
  119. var node = document.createElement("style");
  120. node.type = "text/css";
  121. node.appendChild(document.createTextNode(css));
  122. var heads = document.getElementsByTagName("head");
  123. if (heads.length > 0) {
  124. heads[0].appendChild(node);
  125. } else {
  126. // no head yet, stick it whereever
  127. document.documentElement.appendChild(node);
  128. }
  129. }
  130. })();
  131.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement