百度首页自定义

定制百度首页网址收藏的样式!

// ==UserScript==
// @name         百度首页自定义
// @namespace    http://customfirstpage.com/
// @version      0.1
// @description  定制百度首页网址收藏的样式!
// @author       You
// @match        https://www.baidu.com/
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    // 移除元素
    /*
    $(".s-menu-container").remove();
    $(".tips-manager-area").remove();
    $(".s-mblock-title").remove();*/
    $("#bottom_layer").remove();

    // 变更样式
    $(".s-code-blocks").css("box-shadow", "initial");
    $("#s_main").css({ "background": "rgba(255,255,255,0.35)", "border-radius": "6px" });
    /*$(".s-block-container").css("padding", "0");
    $(".s-mine-wrapper").css("margin-top", "0");
    
    $(".nav-icon-normal").css({ "height": "22px", "line-height": "22px", "width": "22px", "font-size": "12px" });
    $(".nav-icon img").css({ "width": "22px", "height": "22px" });
    $(".nav-icon").css({ "width": "22px", "height": "22px" });
    $(".s-code-blocks .nav-item").css({ "height": "22px", "line-height": "16px", "margin-left": "4px", "margin-right": "0px" });
    $(".s-content").css({ "padding-bottom": "0" });
    $(".nav-icon-add").css({ "width": "22px", "height": "22px", "line-height": "22px" });

    // 无图标的项,设置为显示首字符
    $(".nav-icon-normal").each(function () {
        var iconText = $(this).html();
        var firstWord = iconText[0];
        $(this).html(firstWord);
    });*/
})();