Greasy Fork is available in English.

全新のGreasy Fork

让您在任何环境下都拥有最舒适的浏览体验:将背景变为一叶绿,文字颜色变为藤萝紫,链接文字颜色为珊瑚红,并在特定页面将字体加粗。

// ==UserScript==
// @name         全新のGreasy Fork
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  让您在任何环境下都拥有最舒适的浏览体验:将背景变为一叶绿,文字颜色变为藤萝紫,链接文字颜色为珊瑚红,并在特定页面将字体加粗。
// @match        *://greasyfork.org/*
// @grant        GM_addStyle
// @author       DreamProStudio
// @license      GPL-3.0
// ==/UserScript==

(function() {
    'use strict';

    // 定义默认样式
    var defaultStyle = `
        body {
            background-color: #F8FAF6 !important; /* 一叶绿 */
            color: rgb(124, 115, 159) !important; /* 藤萝紫 */
            font-weight: 600 !important; /* 字体粗细接近1.3倍 */
        }
        body * {
            color: rgb(124, 115, 159) !important; /* 藤萝紫 */
            font-weight: 600 !important; /* 字体粗细接近1.3倍 */
        }
        a {
            color: #D69992 !important; /* 珊瑚红 */
            font-weight: 600 !important; /* 字体粗细接近1.3倍 */
        }
        a:hover {
            color: #F8FAF6 !important; /* 一叶绿 */
        }
        #main-header, [data-script-id], .text-content, #additional-info, .user-content, [lang="zh-CN"] {
            background-color: #F8FAF6 !important; /* 一叶绿 */
            background-image: none !important;
        }
        .install-link, .install-help-link {
            background-color: #D69992 !important; /* 珊瑚红 */
            color: #F8FAF6 !important; /* 一叶绿 */
            font-weight: 600 !important; /* 字体粗细接近1.3倍 */
            border: 1px solid #D69992 !重要;
            padding: 5px 10px !important; /* 添加内边距以提高可点击性 */
        }
        .install-link:hover, .install-help-link:hover {
            background-color: #F8FAF6 !重要;
            color: #D69992 !important; /* 珊瑚红 */
        }
    `;

    // 应用默认样式
    GM_addStyle(defaultStyle);

    // 修改 #script-info 的背景色
    GM_addStyle(`
        #script-info {
            background-color: #F8FAF6 !important; /* 一叶绿 */
        }
    `);

    // 修改 .with-submenu > nav 的背景色
    GM_addStyle(`
        .with-submenu > nav {
            background-color: #F8FAF6 !important; /* 一叶绿 */
        }
    `);

    // 修改 #additional-info 的背景色
    GM_addStyle(`
        #additional-info {
            background-color: #F8FAF6 !important; /* 一叶绿 */
        }
    `);

    // 修改 .install-help-link 的背景色为藤萝紫
    GM_addStyle(`
        .install-help-link {
            background-color: rgb(124, 115, 159) !important; /* 藤萝紫 */
        }
    `);

    // 修改 .user-content 的背景色
    GM_addStyle(`
        .user-content {
            background-color: #F8FAF6 !important; /* 一叶绿 */
        }
    `);

    // 修改 lang 为 zh-CN 的元素的背景色
    GM_addStyle(`
        [lang="zh-CN"] {
            background-color: #F8FAF6 !重要;
        }
    `);

    // 删除 .text-content > section 元素
    var textContentSections = document.querySelectorAll('.text-content > section');
    textContentSections.forEach(function(section) {
        section.remove();
    });
})();