CCC CSS

CSS Hack for Cookie Clicker Cheats

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.gf.qytechs.cn/scripts/7922/35547/CCC%20CSS.js

  1. // ==UserScript==
  2. // @name CCC CSS
  3. // @namespace http://userscripts.org/users/zackton
  4. // @description CSS Hack for Cookie Clicker Cheats
  5. // @include http://orteil.dashnet.org/cookieclicker/
  6. // @include orteil.dashnet.org/cookieclicker/
  7. // @updateURL http://userscripts.org/scripts/source/187400.meta.js
  8. // @run-at document-start
  9. // @grant none
  10. // @version 1.4
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. var d = new Date();
  15.  
  16. if (d.getMonth() == 1-1) {
  17.  
  18. // New Years
  19. var css = ".warning,a.option.warning { \n color:#c00; border-color:#c00; \n } #game { \n top:64px; \n } #topBar { \n height:64px; \n } .row { \n height:112px; \n } .row .content { \n height:112px; \n } .title,.section { \n color:#c00; text-shadow: 0px 0px 6px #ccc, 0px 0px 1px #ccc; \n }";
  20.  
  21. } else if (d.getMonth() == 2-1) {
  22.  
  23. // Valentines
  24. var css = ".warning,a.option.warning { \n color:#ec4965; border-color:#ec4965; \n } #game { \n top:64px; \n } #topBar { \n height:64px; \n } .row { \n height:112px; \n } .row .content { \n height:112px; \n } .title,.section { \n color:#ec4965; text-shadow: 0px 0px 6px #ccc, 0px 0px 1px #ccc; \n }";
  25.  
  26. } else if (d.getMonth() == 3-1) {
  27.  
  28. // St Patrick's Day
  29. var css = ".warning,a.option.warning { \n color:#39ad56; border-color:#39ad56; \n } #game { \n top:64px; \n } #topBar { \n height:64px; \n } .row { \n height:112px; \n } .row .content { \n height:112px; \n } .title,.section { \n color:#39ad56; text-shadow: 0px 0px 6px #ccc, 0px 0px 1px #ccc; \n }";
  30.  
  31. } else if (d.getMonth() == 4-1) {
  32.  
  33. // Easter
  34. var css = ".warning,a.option.warning { \n color:#e1dc3d; border-color:#e1dc3d; \n } #game { \n top:64px; \n } #topBar { \n height:64px; \n } .row { \n height:112px; \n } .row .content { \n height:112px; \n } .title,.section { \n color:#e1dc3d; text-shadow: 0px 0px 6px #ccc, 0px 0px 1px #ccc; \n }";
  35.  
  36. } else if (d.getMonth() == 7-1) {
  37.  
  38. // 4th of July
  39. var css = ".warning,a.option.warning { \n color:#800000; border-color:#800000; \n } #game { \n top:64px; \n } #topBar { \n height:64px; \n } .row { \n height:112px; \n } .row .content { \n height:112px; \n } .title,.section { \n color:#800000; text-shadow: 0px 0px 6px #ccc, 0px 0px 1px #ccc; \n }";
  40.  
  41. } else if (d.getMonth() == 10-1) {
  42.  
  43. // Halloween
  44. var css = ".warning,a.option.warning { \n color:#e58200; border-color:#e58200; \n } #game { \n top:64px; \n } #topBar { \n height:64px; \n } .row { \n height:112px; \n } .row .content { \n height:112px; \n } .title,.section { \n color:#e58200; text-shadow: 0px 0px 6px #ccc, 0px 0px 1px #ccc; \n }";
  45.  
  46. } else if (d.getMonth() == 11-1) {
  47.  
  48. // Thanksgiving
  49. var css = ".warning,a.option.warning { \n color:#b26500; border-color:#b26500; \n } #game { \n top:64px; \n } #topBar { \n height:64px; \n } .row { \n height:112px; \n } .row .content { \n height:112px; \n } .title,.section { \n color:#b26500; text-shadow: 0px 0px 6px #ccc, 0px 0px 1px #ccc; \n }";
  50.  
  51. } else if (d.getMonth() == 12-1) {
  52.  
  53. // Chistmas
  54. var css = ".warning,a.option.warning { \n color:#057d9c; border-color:#057d9c; \n } #game { \n top:64px; \n } #topBar { \n height:64px; \n } .row { \n height:112px; \n } .row .content { \n height:112px; \n } .title,.section { \n color:#057d9c; text-shadow: 0px 0px 6px #ccc, 0px 0px 1px #ccc; \n }";
  55.  
  56. } else {
  57.  
  58. // No special event, just do a general theme
  59. var css = ".warning,a.option.warning { \n color:#424242; border-color:#424242; \n } #game { \n top:64px; \n } #topBar { \n height:64px; \n } .row { \n height:112px; \n } .row .content { \n height:112px; \n } .title,.section { \n color:#424242; text-shadow: 0px 0px 6px #ccc, 0px 0px 1px #ccc; \n }";
  60.  
  61. }
  62.  
  63.  
  64. if (typeof GM_addStyle != "undefined") {
  65. GM_addStyle(css);
  66. } else if (typeof PRO_addStyle != "undefined") {
  67. PRO_addStyle(css);
  68. } else if (typeof addStyle != "undefined") {
  69. addStyle(css);
  70. } else {
  71. var node = document.createElement("style");
  72. node.type = "text/css";
  73. node.appendChild(document.createTextNode(css));
  74. var heads = document.getElementsByTagName("head");
  75. if (heads.length > 0) {
  76. heads[0].appendChild(node);
  77. } else {
  78. // no head yet, stick it whereever
  79. document.documentElement.appendChild(node);
  80. }
  81. }
  82. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址