Greasy Fork

Greasy Fork Christmas Theme

Greasy Fork christmas theme for better atmosphere.

当前为 2021-12-31 提交的版本,查看 最新版本

// ==UserScript==
// @name Greasy Fork Christmas Theme
// @namespace -
// @version 0.1
// @description Greasy Fork christmas theme for better atmosphere.
// @author NotYou
// @match *greasyfork.org/*
// @match *sleazyfork.org/*
// @require https://code.jquery.com/jquery-3.3.1.min.js
// @run-at document-body
// @license GPLv3
// @license-link https://www.gnu.org/licenses/gpl-3.0.txt
// @grant GM_addStyle
// ==/UserScript==

// CSS //

(function() {
let css = `

#main-header {
background: rgba(0, 0, 0, 0) repeating-linear-gradient(-290deg, rgb(219, 33, 33), rgb(132, 39, 39) 15px, rgb(151, 151, 151) 10px, rgb(255, 255, 255) 25px) repeat scroll 0% 0% !important;
}

option[data-language-url] {
background-color: rgb(232, 232, 232);
}

#main-header, #main-header a, #main-header a:active, #main-header a:visited {
color: rgb(5, 5, 5) !important;
}

#christmashat {
z-index: 10;
position: absolute;
left: 0px;
top: -60px;
}

`;
if (typeof GM_addStyle !== "undefined") {
  GM_addStyle(css);
} else {
  let styleNode = document.createElement("style");
  styleNode.appendChild(document.createTextNode(css));
  (document.querySelector("head") || document.documentElement).appendChild(styleNode);
}
})();

// jQuery //

$('div#site-name').append
('<img src="https://icons.iconarchive.com/icons/youthedesigner/christmas-graphics/128/santa-hat-icon.png" alt="" id="christmashat">');