Custom Google Styles

Apply custom styles to Google

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Custom Google Styles
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Apply custom styles to Google
// @author       Your Name
// @match        *://www.google.com/*
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    'use strict';

    // Add custom CSS
    GM_addStyle(`
        /* General Google styles */
        body {
            font-family: Arial, sans-serif !important;
            background-color: #f2f2f2 !important;
        }

        /* Header Styles */
        #hdtb-msb {
            background-color: #ffffff !important;
            border-bottom: 1px solid #e0e0e0 !important;
        }

        /* Google Logo Styles */
        #logo {
            margin: 20px auto !important;
        }

        /* Search Box Styles */
        .gLFyf {
            border-radius: 24px !important;
            border: 1px solid #dcdcdc !important;
            padding: 10px !important;
        }

        .gNO89b {
            background-color: #f8f8f8 !important;
            border-radius: 24px !important;
        }

        .gNO89b:hover {
            background-color: #e8e8e8 !important;
        }

        /* Search Results Styles */
        .g {
            border: 1px solid #dcdcdc !important;
            border-radius: 8px !important;
            padding: 10px !important;
            margin-bottom: 10px !important;
            background-color: #ffffff !important;
        }

        .rc > .r > a {
            color: #1a0dab !important;
            text-decoration: none !important;
        }

        .rc > .r > a:hover {
            text-decoration: underline !important;
        }

        .rc > .s {
            font-size: 14px !important;
            color: #4d5156 !important;
        }

        /* Footer Styles */
        #footer {
            background-color: #ffffff !important;
            border-top: 1px solid #e0e0e0 !important;
        }
    `);
})();