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 #1D1B26;",
  19. " background-color: #1D1B26;",
  20. " border: 0px solid #1D1B26;",
  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 {",
  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 {",
  127. " background-color: #694BA1!important;",
  128. " color: white;",
  129. " }",
  130. "",
  131. " .install-link, .install-link:visited, .install-link:active {",
  132. " display: inline-block;",
  133. " background-color: #493372!important;",
  134. " padding: 0.5em 1em;",
  135. " color: white;",
  136. " text-decoration: none;",
  137. " }",
  138. "",
  139. " div#install-link+#install-help-link:hover > .install-link {",
  140. " background: #694BA1;",
  141. " }",
  142. "",
  143. " div#install-link+#install-help-link:hover > .install-help-link {",
  144. " background: #493372;",
  145. " }",
  146. "",
  147. " select {",
  148. " -webkit-appearance: menulist;",
  149. " box-sizing: border-box;",
  150. " align-items: center;",
  151. " white-space: pre;",
  152. " /* -webkit-rtl-ordering: logical; */",
  153. " color: #bbb;",
  154. " background-color: #694BA1;",
  155. " cursor: pointer;",
  156. " border-width: 1px;",
  157. " border-style: solid;",
  158. " border-color: #1D1B26;",
  159. " border-image: initial;",
  160. " }",
  161. "",
  162. " #additional-info > div {",
  163. " margin: 1em 0;",
  164. " padding: 1em;",
  165. " border: none;",
  166. " border-radius: 10px;",
  167. " background-color: #16151D;",
  168. " }",
  169. "",
  170. " textarea#script-version-additional-info-0 {",
  171. " background: #16151D;",
  172. " color: #888;",
  173. " border: none;",
  174. " padding: 10px;",
  175. " }",
  176. "",
  177. " textarea#script-version-additional-info-0, ",
  178. "textarea#script_version_code, ",
  179. "#ace-editor {",
  180. " background: #16151D;",
  181. " color: #888;",
  182. " border: none;",
  183. " padding: 25px;",
  184. " }",
  185. "",
  186. " .ace_gutter-cell, .ace-tm .ace_gutter {",
  187. " background: #0f0f14;",
  188. " }",
  189. "",
  190. " .preview-results, ",
  191. "#script-version-additional-info-0 {",
  192. " border: none;",
  193. " border-radius: 10px;",
  194. " background: #16151D;",
  195. " color: #888;",
  196. " padding: 25px;",
  197. " }",
  198. "",
  199. "select#language-selector-locale {",
  200. " background: #eee;",
  201. "}",
  202. "",
  203. ".alert {",
  204. " font-style: italic;",
  205. " background-color: #b793f9;",
  206. " border: none;",
  207. " border-left: 20px solid #694BA1;",
  208. " padding: 0.5em;",
  209. " color: #eee!important;",
  210. "}",
  211. "",
  212. "pre, code, #code-container {",
  213. " border-radius: 2px;",
  214. " border: 1px solid #6c5793;",
  215. " background-color: #493372;",
  216. "}",
  217. "",
  218. ".CodeRay .line-numbers {",
  219. " background-color: #0f0f14 !important;",
  220. "}",
  221. "",
  222. "#code-container > table > tbody > tr > td.code {",
  223. " border-radius: 2px;",
  224. " border: 1px solid #16151D !important;",
  225. " background-color: #16151D !important;",
  226. "}",
  227. "",
  228. "#code-container {",
  229. " border: none;",
  230. "}",
  231. "",
  232. ".expander {",
  233. " cursor: pointer;",
  234. " padding: 2px 5px;",
  235. " color: #888;",
  236. " font-weight: bolder;",
  237. " border-radius: 3px;",
  238. " background-color: #16151D;",
  239. " text-decoration: none;",
  240. "}",
  241. "",
  242. "a:-webkit-any-link {",
  243. " text-decoration: none;",
  244. "}",
  245. "",
  246. " input[type=search] {",
  247. " -webkit-appearance: textfield;",
  248. " background-color: #17151B;",
  249. " -webkit-rtl-ordering: logical;",
  250. " cursor: text;",
  251. " padding: 1px;",
  252. " border-width: 10px;",
  253. " border-style: solid;",
  254. " border-color: #17151B;",
  255. " border-image: initial;",
  256. " border-radius: 7px;",
  257. " }",
  258. "",
  259. " input[type=text] {",
  260. " background-color: #17151B;",
  261. " -webkit-rtl-ordering: logical;",
  262. " cursor: text;",
  263. " border-width:10px;",
  264. " border-style: solid;",
  265. " border-color: #17151B;",
  266. " border-radius: 7px;",
  267. " margin-top: 15px;",
  268. " }",
  269. "",
  270. " button#add-additional-info {",
  271. " color: #999;",
  272. " background-color: #493372;",
  273. " border: 5px solid #694BA1;",
  274. " margin-top: 5px;",
  275. " margin-left: 15px;",
  276. " height: 50px;",
  277. " width: 300px;",
  278. " cursor: pointer;",
  279. " font-family: Agency FB;",
  280. " font-size: x-large;",
  281. " }",
  282. "",
  283. " button.g-recaptcha {",
  284. " color: #111;",
  285. " background-color: #694BA1;",
  286. " border: 5px solid #493372;",
  287. " margin-top: 5px;",
  288. " margin-left: 15px;",
  289. " height: 50px;",
  290. " width: 300px;",
  291. " cursor: pointer;",
  292. " font-family: Agency FB;",
  293. " font-size: x-large;",
  294. " }",
  295. "",
  296. " input.add-screenshot-captions {",
  297. " background-color: #17151B;",
  298. " -webkit-rtl-ordering: logical;",
  299. " cursor: text;",
  300. " border-width:10px;",
  301. " border-style: solid;",
  302. " border-color: #17151B;",
  303. " border-radius: 7px;",
  304. " margin-top: 15px;",
  305. " }",
  306. "",
  307. " button[type=\"submit\"] {",
  308. " background: transparent;",
  309. " border: none;",
  310. " border-radius: 10px;",
  311. " margin-left: 10px;",
  312. " margin-top: -10px;",
  313. " font-size: 30px;",
  314. " cursor: pointer;",
  315. " }",
  316. "",
  317. " form.script-in-sets {",
  318. " background-color: #17151B;",
  319. " padding: 15px;",
  320. " border-radius: 10px;",
  321. " width: 408px;",
  322. " }",
  323. "",
  324. " .install-help-link:hover {",
  325. " box-shadow: 15px 0px 18px 3px rgba(0,0,0,0.75) !important;",
  326. " z-index: 999;",
  327. " }",
  328. "",
  329. " .install-link:hover {",
  330. " box-shadow: -15px 0px 18px 3px rgba(0,0,0,0.75) !important;",
  331. " z-index: 999;",
  332. " }",
  333. "",
  334. " #install-area .install-link:hover, #install-area .install-link:focus, #install-area .install-help-link:hover, #install-area .install-help-link:focus {",
  335. " box-shadow: none;",
  336. " }"
  337. ].join("\n");
  338. if (typeof GM_addStyle != "undefined") {
  339. GM_addStyle(css);
  340. } else if (typeof PRO_addStyle != "undefined") {
  341. PRO_addStyle(css);
  342. } else if (typeof addStyle != "undefined") {
  343. addStyle(css);
  344. } else {
  345. var node = document.createElement("style");
  346. node.type = "text/css";
  347. node.appendChild(document.createTextNode(css));
  348. var heads = document.getElementsByTagName("head");
  349. if (heads.length > 0) {
  350. heads[0].appendChild(node);
  351. } else {
  352. // no head yet, stick it whereever
  353. document.documentElement.appendChild(node);
  354. }
  355. }
  356. })();