Greasy Fork

Greasy Fork is available in English.

粉色馒头主题!

将馒头站主题配色改为粉色系,提升阅读体验。本脚本基于原作者 lionhoho 的“馒头配色调整系列-沙色”脚本进行修改。

当前为 2025-05-29 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         粉色馒头主题!
// @namespace    http://greasyfork.icu/users/1250762
// @version    0.2
// @description  将馒头站主题配色改为粉色系,提升阅读体验。本脚本基于原作者 lionhoho 的“馒头配色调整系列-沙色”脚本进行修改。
// @author       L4O8(修改者), lionhoho (原作者)
// @license      GPL-2.0
// @match        https://*.m-team.cc/*
// @match        https://*.m-team.io/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=m-team.cc
// @grant        GM_addStyle
// @grant        unsafeWindow
// @run-at       document-start

// ==/UserScript==
(function() {
    'use strict';
    const bgOverlay = document.createElement('div');
    Object.assign(bgOverlay.style, {
        position: 'fixed',
        top: '0',
        left: '0',
        width: '100vw',
        height: '100vh',
        background: "url('https://i.miji.bid/2025/05/30/470b465837a479bb869e3c16cf83de03.jpeg') center/cover no-repeat",//修改url修改背景图片
        zIndex: '-9999',
        pointerEvents: 'none' 
    });
    document.body.appendChild(bgOverlay);
    document.body.style.minHeight = '100vh';


})();

let weburl=unsafeWindow.location.href
if(weburl.indexOf('m-team.cc')!=-1)
{
   // 页面背景 - 改为白色
   GM_addStyle('html {--bg-1:#ffffff !important;}')

   // 中层背景 - 改为浅粉色
   GM_addStyle('.app-content__inner:after {background:#F8D8E6 !important;}')

   // 导航背景 - 改为粉色
   GM_addStyle(':where(.css-1gwm2nm).ant-card {background:#ffd6e7 !important;}')

   // 导航悬停 - 粉色
   GM_addStyle(':where(.css-1gwm2nm) a:hover {color:#ff4fa3 !important;}')

   // 导航激活 - 粉色
   GM_addStyle(':where(.css-1gwm2nm) a:active {color:#ff4fa3 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-selected {color:#ff4fa3 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-selected {background-color:#ff9ecb !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item:hover::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item:hover::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu:hover::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu:hover::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-active::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-active::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-active::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-active::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-open::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-open::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-open::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-open::after {border-bottom-color:#ff4fa3 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-selected::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-selected::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-selected::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-selected::after {border-bottom-color:#ff4fa3 !important;}')

   // 导航下拉菜单 - 粉色
   GM_addStyle(':where(.css-1gwm2nm).ant-menu-light.ant-menu-submenu-popup>.ant-menu, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-submenu-popup>.ant-menu {background-color:#ffeef6 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-menu-light .ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu .ant-menu-item-selected {background-color:#ffc2e0 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-menu-light .ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu .ant-menu-item-selected {color:#ff4fa3 !important;}')

   // 种子列表悬停 - 浅粉色
   GM_addStyle('.ant-table-wrapper .ant-table-tbody .ant-table-row .ant-table-cell.ant-table-cell-row-hover, .ant-table-wrapper .ant-table-tbody .ant-table-row:hover .ant-table-cell, .ant-table-wrapper .ant-table-tbody .ant-table-row:hover>th, .ant-table-wrapper .ant-table-tbody .ant-table-row>th.ant-table-cell-row-hover {background:#ffeff6 !important;}')

   // 种子列表置顶背景 - 浅粉色
   GM_addStyle('.bg-sticky_top {background-color:#ffddee !important;}')
   GM_addStyle('.bg-sticky_normal {background-color:#ffeff6 !important;}')

   //首页菜单
   GM_addStyle(':where(.css-khj4yb).ant-card.ant-card-small {background-color: #F8D8E6 !important;}');
   GM_addStyle('.ant-card-head { background-color: #FFB3D8 !important; color: white !important; }');
   GM_addStyle('.ant-card-body { background-color: #ffeff6 !important; color: white !important; }');
   GM_addStyle('.ant-card-body [style*= "text-align: center"] {color: #000 !important; }');
   GM_addStyle('.ant-card-body [style*= "font-size: 12px;"] {color: #000 !important; }');
   GM_addStyle('.ant-card-body [style*= "min-height: 100px; margin-top: 30px;"] {color: #000 !important; }');
   GM_addStyle('.mb-0 {color: #000 !important; }');
   GM_addStyle('.ant-table-cell { background-color: #FCF0F6 !important; }');
   GM_addStyle('.bg-\\[\\#2f4879\\] .border.border-solid.border-black.p-2 { background-color: rgb(244,182,214) !important; }');
   GM_addStyle('.bg-sticky_top .border.border-solid.border-black.p-2 { background-color: rgb(249,222,237) !important; }');
   GM_addStyle('.border.border-solid.border-black.p-2:not(.bg-\\[\\#2f4879\\] .border.border-solid.border-black.p-2):not(.bg-sticky_top .border.border-solid.border-black.p-2) { background-color: rgb(252,240,246) !important; }');

   //小组页面-字体黑色
   GM_addStyle('.mt-4.app-content__inner .ant-card-body .ant-card-head-wrapper .ant-card-head-title { color: #000 !important; }');
   GM_addStyle('.mt-4.app-content__inner .ant-card-body .mb-4 { color: #000 !important; }');

   //求种页面 - 字体黑色
   GM_addStyle('.ant-card.css-khj4yb .ant-card-body .ant-card.ant-card-bordered.ant-card-small.css-khj4yb .ant-card-body { color: #666 !important; }');

   //个人页面 - 黑色字体
   GM_addStyle('.mt-4.app-content__inner .ant-card-body .tablist.mb-3 * { color: #000 !important; }');
   // 种子列表 - 粉色和白色
   GM_addStyle(':where(.css-1gwm2nm).ant-card .ant-card-head {background:#ffc2e0 !important;}')
   GM_addStyle('.ant-table-wrapper .ant-table-thead th.ant-table-column-sort {background:#ffc2e0 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-table-wrapper .ant-table {background:#fff9fc !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-table-wrapper .ant-table-thead >tr>th {background:#ffc2e0 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-btn-primary.ant-btn-background-ghost {border-color:#ff4fa3 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-checkbox-checked .ant-checkbox-inner {background-color:#ff9ecb !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-checkbox-checked .ant-checkbox-inner {border-color:#ff4fa3 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-inner, :where(.css-1gwm2nm).ant-checkbox:not(.ant-checkbox-disabled):hover .ant-checkbox-inner {border-color:#ff4fa3 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-checkbox-indeterminate .ant-checkbox-inner:after {background-color:#ff4fa3 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {background-color:#ffc2e0 !important;}')

   // 种子详情 - 粉色
   GM_addStyle(':where(.css-1gwm2nm).ant-dropdown .ant-dropdown-menu, :where(.css-1gwm2nm).ant-dropdown-menu-submenu .ant-dropdown-menu {background-color:#fff9fc !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item:hover {background-color:#ffc2e0 !important;}')

   //论坛大标题背景 - 粉色
   GM_addStyle(':where(.css-1cv09li).ant-table-wrapper .ant-table-thead >tr>th {background:#ffc2e0 !important;}')

    //论坛分区背景 - 白色
   GM_addStyle(':where(.css-1cv09li).ant-table-wrapper .ant-table {background:#ffffff !important;}')

    //论坛引用回复 - 粉色
   GM_addStyle(':where(.css-1gwm2nm).ant-modal .ant-modal-content {background-color:#fff9fc !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-modal .ant-modal-header {background-color:#fff9fc !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-btn-primary {background:#ff4fa3 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-btn-primary {color:#ffffff !important;}')

   // 编辑器 - 白色
   GM_addStyle('.editor-inner {background:#ffffff !important;}')

   // 详情页背景 - 浅粉色
   GM_addStyle('.bg-mt-gray {background-color:#ffffff !important;}')

   // 详情页展开剩余 - 粉色
   GM_addStyle(':where(.css-1gwm2nm).ant-btn-link {color:#ff4fa3 !important;}')

   // 首页站点数据 - 浅粉色
   GM_addStyle('.ant-descriptions.mt-desc-with-bg.ant-descriptions-bordered .ant-descriptions-view {background:#ffddee !important;}')

   // 瀑布流卡片 - 浅粉色
   GM_addStyle('.bg-mt-primary-3 {background-color:#ffd6e7 !important;}')

   //演员 - 粉色
   GM_addStyle(':where(.css-1gwm2nm).ant-table-wrapper tr.ant-table-expanded-row >td {background:#ffddee !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-input-group-wrapper-outlined .ant-input-group-addon {background:#ffeff6 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-row-middle .ant-row {background-color:#ffd6e7 !important;}')

   // 排行榜按钮 - 粉色
   GM_addStyle(':where(.css-1fsd2gv).ant-segmented .ant-segmented-item-selected {background-color:#ff4fa3 !important;}')
   GM_addStyle(':where(.css-1fsd2gv).ant-segmented .ant-segmented-item-selected {color:#ffffff !important;}')
   GM_addStyle(':where(.css-1fsd2gv).ant-segmented {background:#fff9fc !important;}')

   // 魔力系统 - 粉色
   GM_addStyle('table.tablist td.colhead, table.tablist thead td, table.tablist tr.head>td {background-color:#ffc2e0 !important;}')
   GM_addStyle('table.tablist td.colhead, table.tablist thead td, table.tablist tr.head>td {color:#000000 !important;}')
   GM_addStyle('table.tablist td.colhead, table.tablist thead td, table.tablist tr.head>td {font-size: larger; !important;}')

   // 控制台页面 - 粉色
   GM_addStyle(':where(.css-1gwm2nm).ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {color:#ff4fa3 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-tabs .ant-tabs-tab {color:#ff4fa3 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-radio-wrapper .ant-radio-checked .ant-radio-inner {background-color:#ff4fa3 !important;}')

   // 控制台按钮 - 粉色
   GM_addStyle(':where(.css-1gwm2nm).ant-btn-primary {background:#ff4fa3 !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-btn-primary {color:#ffffff !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-switch.ant-switch-checked {background:#ff4fa3 !important;}')

   // 个人信息按钮 - 粉色边框
   GM_addStyle(':where(.css-1gwm2nm).ant-btn-default {background-color:#ffffff !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-btn-default {border-color:#ff4fa3 !important;}')

   // 个人信息提醒 - 粉色
   GM_addStyle(':where(.css-1gwm2nm).ant-alert-info {background: #fff9fc !important;}')
   GM_addStyle(':where(.css-1gwm2nm).ant-alert-info {border: 1px solid #ff4fa3 !important;}')

   // 收件箱 - 粉色
   GM_addStyle('.colhead  {background: #ffc2e0 !important;}')

   // 载入 - 浅粉色
   GM_addStyle(':where(.css-1gwm2nm).ant-table-wrapper .ant-table-tbody>tr.ant-table-placeholder:hover>th, :where(.css-1gwm2nm).ant-table-wrapper .ant-table-tbody>tr.ant-table-placeholder:hover>td, :where(.css-1gwm2nm).ant-table-wrapper .ant-table-tbody>tr.ant-table-placeholder {background:#ffeff6 !important;}')

}