GreasyFork Beautify Mod!

Custom Themes, premade themes and more

当前为 2018-07-03 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name GreasyFork Beautify Mod!
  3. // @namespace GreasyFork Beautify Mod!
  4. // @version 1
  5. // @description Custom Themes, premade themes and more
  6. // @author TigerYT
  7. // @match *://greasyfork.org/*
  8. // @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
  9. // ==/UserScript==
  10.  
  11. (function() {var css = [
  12. "body, body:not(.Settings) #Head {",
  13. " background: #16151D;",
  14. " }",
  15. "",
  16. " .script-list, .user-list, .text-content, #script-info {",
  17. " list-style-type: none;",
  18. " box-shadow: 0 0 5px rgba(29,27,38,0.3);",
  19. " background-color: #1D1B26;",
  20. " border: 1px solid rgba(29,27,38,0.6);",
  21. " border-radius: 5px;",
  22. " box-sizing: border-box;",
  23. " margin: 14px 0;",
  24. " }",
  25. "",
  26. " body, select, input {",
  27. " font-family: \"Open Sans\", sans-serif;",
  28. " color: #888;",
  29. " }",
  30. "",
  31. " #main-header {",
  32. " background-color: #0B0A0D;",
  33. " background-image: linear-gradient(#694BA1, #493372);",
  34. " padding: 0.25em 0;",
  35. " }",
  36. "",
  37. " p.subtitle {",
  38. " margin: -8px 0 0 10px;",
  39. " font-size: 0.7em;",
  40. " text-shadow: -1px -1px 0px #493372, 1px -1px 0px #493372, -1px 1px 0px #493372, 1px 1px 0px #493372 !important;",
  41. " }",
  42. "",
  43. " a, a:visited {",
  44. " color: #694BA1;",
  45. " }",
  46. "",
  47. " a:hover {",
  48. " color: #493372;",
  49. " }",
  50. "",
  51. " figure {",
  52. " padding: 5px;",
  53. " border: none;",
  54. " border-radius: 5px;",
  55. " }",
  56. "",
  57. " nav nav {",
  58. " position: absolute;",
  59. " right: 0;",
  60. " background-color: #493372;",
  61. " min-width: 100%;",
  62. " display: none;",
  63. " padding: 5px 0;",
  64. " z-index: 10;",
  65. " }",
  66. "",
  67. " :focus {",
  68. " outline: -webkit-focus-ring-color auto 5px;",
  69. " outline-color: transparent;",
  70. " outline-style: auto;",
  71. " outline-width: 5px;",
  72. " }",
  73. "",
  74. ".script-list li {",
  75. " background: #1D1B26;",
  76. " border: 5px solid #1D1B26;",
  77. " border-radius: 75px;",
  78. " padding: 2em;",
  79. " margin-bottom: 10px;",
  80. "}",
  81. "",
  82. ".script-list, .user-list, .text-content {",
  83. " list-style-type: none;",
  84. " box-shadow: 0 0 5px #16151D;",
  85. " background-color: #16151D;",
  86. " border: 0px solid #16151D;",
  87. " border-radius: 5px;",
  88. " box-sizing: border-box;",
  89. " margin: 14px 0;",
  90. "}",
  91. "",
  92. " .list-option-group ul {",
  93. " margin: .5em 0 0;",
  94. " list-style-type: none;",
  95. " padding: 1em 0;",
  96. " box-shadow: 0 0 5px #16151D;",
  97. " border: 0px solid #16151D;",
  98. " border-radius: 5px;",
  99. " background-color: #1D1B26;",
  100. " }",
  101. "",
  102. " .list-option-group .list-current {",
  103. " border-right: 20px solid #1D1B26;",
  104. " margin: 0em -21px 0em 0px;",
  105. " padding: 0.4em 1em 0.4em calc(1em - 3px);",
  106. " background: #16151D;",
  107. " border-left: none;",
  108. " box-shadow: none;",
  109. " }",
  110. "",
  111. " .list-option-group a:hover, .list-option-group a:focus {",
  112. " background: #16151D;",
  113. " text-decoration: none;",
  114. " box-shadow: none;",
  115. " }",
  116. "",
  117. " .tabs .current {",
  118. " background: rgba(0,0,0,0.03);",
  119. " position: relative;",
  120. " top: -4px;",
  121. " font-weight: bold;",
  122. " border-top: 7px solid #493372;",
  123. " box-shadow: inset 1px 0 rgba(0,0,0,0.1), inset -1px 0 rgba(0,0,0,0.1), inset 0 -1px rgba(0,0,0,0.1);",
  124. " }",
  125. "",
  126. " .install-help-link, .install-help-link:visited, .install-help-link:active, .install-help-link:hover {",
  127. " background-color: #694BA1;",
  128. " color: white;",
  129. " }",
  130. "",
  131. " .install-link, .install-link:visited, .install-link:active, .install-link:hover, .install-help-link {",
  132. " display: inline-block;",
  133. " background-color: #493372;",
  134. " padding: 0.5em 1em;",
  135. " color: white;",
  136. " text-decoration: none;",
  137. " }",
  138. "",
  139. " select {",
  140. " -webkit-appearance: menulist;",
  141. " box-sizing: border-box;",
  142. " align-items: center;",
  143. " white-space: pre;",
  144. " /* -webkit-rtl-ordering: logical; */",
  145. " color: #bbb;",
  146. " background-color: #694BA1;",
  147. " cursor: pointer;",
  148. " border-width: 1px;",
  149. " border-style: solid;",
  150. " border-color: #1D1B26;",
  151. " border-image: initial;",
  152. " }",
  153. "",
  154. " #additional-info > div {",
  155. " margin: 1em 0;",
  156. " padding: 1em;",
  157. " border: none;",
  158. " border-radius: 10px;",
  159. " background-color: #16151D;",
  160. " }",
  161. "",
  162. " textarea#script-version-additional-info-0 {",
  163. " background: #16151D;",
  164. " color: #888;",
  165. " border: none;",
  166. " padding: 10px;",
  167. " }",
  168. "",
  169. " textarea#script-version-additional-info-0, ",
  170. "textarea#script_version_code, ",
  171. "#ace-editor {",
  172. " background: #16151D;",
  173. " color: #888;",
  174. " border: none;",
  175. " padding: 25px;",
  176. " }",
  177. "",
  178. " .ace_gutter-cell, .ace-tm .ace_gutter {",
  179. " background: #0f0f14;",
  180. " }",
  181. "",
  182. " .preview-results, ",
  183. "#script-version-additional-info-0 {",
  184. " border: none;",
  185. " border-radius: 10px;",
  186. " background: #16151D;",
  187. " color: #888;",
  188. " padding: 25px;",
  189. " }",
  190. "",
  191. "select#language-selector-locale {",
  192. " background: #eee;",
  193. "}",
  194. "",
  195. ".alert {",
  196. " font-style: italic;",
  197. " background-color: #b793f9;",
  198. " border: none;",
  199. " border-left: 20px solid #694BA1;",
  200. " padding: 0.5em;",
  201. " color: #eee!important;",
  202. "}",
  203. "",
  204. "pre, code, #code-container {",
  205. " border-radius: 2px;",
  206. " border: 1px solid #6c5793;",
  207. " background-color: #493372;",
  208. "}",
  209. "",
  210. ".CodeRay .line-numbers {",
  211. " background-color: #0f0f14 !important;",
  212. "}",
  213. "",
  214. "#code-container > table > tbody > tr > td.code {",
  215. " border-radius: 2px;",
  216. " border: 1px solid #16151D !important;",
  217. " background-color: #16151D !important;",
  218. "}",
  219. "",
  220. "#code-container {",
  221. " border: none;",
  222. "}",
  223. "",
  224. ".expander {",
  225. " cursor: pointer;",
  226. " padding: 2px 5px;",
  227. " color: #888;",
  228. " font-weight: bolder;",
  229. " border-radius: 3px;",
  230. " background-color: #16151D;",
  231. " text-decoration: none;",
  232. "}",
  233. "",
  234. "a:-webkit-any-link {",
  235. " text-decoration: none;",
  236. "}",
  237. "",
  238. " input[type=search] {",
  239. " -webkit-appearance: textfield;",
  240. " background-color: #17151B;",
  241. " -webkit-rtl-ordering: logical;",
  242. " cursor: text;",
  243. " padding: 1px;",
  244. " border-width: 10px;",
  245. " border-style: solid;",
  246. " border-color: #17151B;",
  247. " border-image: initial;",
  248. " border-radius: 7px;",
  249. " }",
  250. "",
  251. " input[type=text] {",
  252. " background-color: #17151B;",
  253. " -webkit-rtl-ordering: logical;",
  254. " cursor: text;",
  255. " border-width:10px;",
  256. " border-style: solid;",
  257. " border-color: #17151B;",
  258. " border-radius: 7px;",
  259. " margin-top: 15px;",
  260. " }",
  261. "",
  262. " button#add-additional-info {",
  263. " color: #999;",
  264. " background-color: #493372;",
  265. " border: 5px solid #694BA1;",
  266. " margin-top: 5px;",
  267. " margin-left: 15px;",
  268. " height: 50px;",
  269. " width: 300px;",
  270. " cursor: pointer;",
  271. " font-family: Agency FB;",
  272. " font-size: x-large;",
  273. " }",
  274. "",
  275. " button.g-recaptcha {",
  276. " color: #111;",
  277. " background-color: #694BA1;",
  278. " border: 5px solid #493372;",
  279. " margin-top: 5px;",
  280. " margin-left: 15px;",
  281. " height: 50px;",
  282. " width: 300px;",
  283. " cursor: pointer;",
  284. " font-family: Agency FB;",
  285. " font-size: x-large;",
  286. " }",
  287. "",
  288. " input.add-screenshot-captions {",
  289. " background-color: #17151B;",
  290. " -webkit-rtl-ordering: logical;",
  291. " cursor: text;",
  292. " border-width:10px;",
  293. " border-style: solid;",
  294. " border-color: #17151B;",
  295. " border-radius: 7px;",
  296. " margin-top: 15px;",
  297. " }",
  298. "",
  299. " input[type=\"submit\"] {",
  300. " background: transparent;",
  301. " border: none;",
  302. " border-radius: 10px;",
  303. " margin-left: 10px;",
  304. " margin-top: -10px;",
  305. " font-size: 30px;",
  306. " cursor: pointer;",
  307. " }",
  308. "",
  309. " form.script-in-sets {",
  310. " background-color: #17151B;",
  311. " padding: 15px;",
  312. " border-radius: 10px;",
  313. " width: 408px;",
  314. " }"
  315. ].join("\n");
  316. if (typeof GM_addStyle != "undefined") {
  317. GM_addStyle(css);
  318. } else if (typeof PRO_addStyle != "undefined") {
  319. PRO_addStyle(css);
  320. } else if (typeof addStyle != "undefined") {
  321. addStyle(css);
  322. } else {
  323. var node = document.createElement("style");
  324. node.type = "text/css";
  325. node.appendChild(document.createTextNode(css));
  326. var heads = document.getElementsByTagName("head");
  327. if (heads.length > 0) {
  328. heads[0].appendChild(node);
  329. } else {
  330. // no head yet, stick it whereever
  331. document.documentElement.appendChild(node);
  332. }
  333. }
  334. })();