Advertisement
HellFireKoder

SP Custom Dark Theme

Oct 30th, 2017 (edited)
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         simpleplanes.com tweaks
  3. // @version      0.1
  4. // @include http://simpleplanes.com/*
  5. // @include https://simpleplanes.com/*
  6. // @include http://www.simpleplanes.com/*
  7. // @include https://www.simpleplanes.com/*
  8. // @author       WNP78
  9. // ==/UserScript==
  10.  
  11. style = `
  12. body {
  13.     background: #151515 !important;
  14.     color: #b3b3b3;
  15. }
  16. .body {
  17.     background: #272727 !important;
  18.     border-top-color: #272727 !important;
  19. }
  20. .body header {
  21.     background: #272727 !important;
  22. }
  23. a { color: #079ae4; }
  24. .product-thumb-info {
  25.     background: #1a1a1a !important;
  26.     border-color: #1a1a1a !important;
  27. }
  28. .product-thumb-info h4 {
  29.     color: white;
  30. }
  31. h1, h2, h3, h4, h5, h6 {
  32.     color: #cfcfcf !important;
  33. }
  34. h3, h4, h5 {
  35.     color: #20b3fc !important;
  36. }
  37. .forum-list-votes {
  38.     background: #474747;
  39.     color: #ffaa3e;
  40. }
  41. /* START HellFireKode */
  42. .page-top {
  43.     border-bottom: 5px solid #666
  44. }
  45. .label-success {
  46.     background: #227722;
  47. }
  48. .label-default {
  49.     background: #666;
  50. }
  51. table.cart > tbody > tr {
  52.    border-top: 2px solid #2A2A2A;
  53. }
  54. .form-control {
  55.     background: #666;
  56.     border-color: #222;
  57.     color: #FFF;
  58. }
  59.  
  60. /* END HellFireKode */
  61. .notification {
  62.     background: #4d4d4d;
  63.     border-color: transparent !important;
  64. }
  65. .notification p {
  66.     color: white;
  67. }
  68. .notification:hover {
  69.     background: #7d7d7d;
  70. }
  71. p { color: #dedede; }
  72. .post-body {
  73.     background: #333;
  74.     border-color: #333;
  75. }
  76. ul.comments .comment-block {
  77.     background: #2F2F2F;
  78. }
  79. .downloads {
  80.     color: #c8c8c8;
  81. }
  82. .btn-default {
  83.     color: white;
  84.     background: #777;
  85.     border-color: #777;
  86. }
  87. .btn-default:hover, .btn-default:focus, .btn-default:active {
  88.     color: white !important;
  89.     background: #666 !important;
  90.     border-color: #666 !important;
  91. }
  92. .pagination > li > a, .pagination > li > span, .pagination > li > a:hover, .pagination > li > span:hover {
  93.     background: #232323;
  94.     border-color: #232323;
  95. }
  96. .dropdown-menu {
  97.     background: #4d4d4d;
  98.     border-color: #4d4d4d;
  99.     color: white !important;
  100. }
  101. .dropdown-menu > li > a {
  102.     background: #4d4d4d !important;
  103.     border-color: #4d4d4d !important;
  104.     color: white !important;
  105. }
  106. .dropdown-menu > li > a:hover {
  107.     background: #555 !important;
  108.     border-color: #555 !important;
  109.     color: white !important;
  110. }
  111. .user-detail {
  112.     background: #444;
  113. }
  114. .table-striped > tbody > tr:nth-child(2n+1) > td, .table-striped > tbody > tr:nth-child(2n+1) > th {
  115.     background: #363636;
  116. }
  117. .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
  118.     border-top: none;
  119. }
  120. ul.comments .comment-arrow {
  121.     border-right-color: #333;
  122. }
  123. .img-thumbnail {
  124.     background: #3f3f3f;
  125.     border-color: transparent;
  126. }
  127. `;
  128.  
  129. var css = document.createElement("style");
  130. css.type = "text/css";
  131. css.innerHTML = style;
  132. document.body.appendChild(css);
  133.  
  134.  
  135. $(".comment-block p").each(function (a,b) { b.innerHTML = b.innerHTML.replace(/@([A-z0-9]+)/g, "<a style=\"background-color: #CCCCCC; color:black; border-radius:5px; padding-left: 3px; padding-right: 3px;\" href=\"/u/$1\">$&</a>"); } );
  136. $(".post-body p").each(function (a,b) { b.innerHTML = b.innerHTML.replace(/@([A-z0-9]+)/g, "<a style=\"background-color: #CCCCCC; color:black; border-radius:5px; padding-left: 3px; padding-right: 3px;\" href=\"/u/$1\">$&</a>"); } );
  137. $(".post-body img").each(function (a,b) { b.setAttribute("style", "max-width:100%"); } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement