微信网页版简明主题

An brief theme for weChat online

目前為 2018-10-30 提交的版本,檢視 最新版本

// ==UserScript==
// @name         微信网页版简明主题
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  An brief theme for weChat online
// @author       zhou.feng
// @match        https://wx2.qq.com/*
// @grant        unsafeWindow
// @license      MI
// ==/UserScript==

(function() {
    'use strict';
var pMap = {
    "body": {
        "background": "white"
    },
    ".panel" : {
        "background": "white"
    },
    ".chat_item.active" : {
        "background": "#eee"
    },
    ".chat_item .info .nickname" : {
        "color": "black"
    },
    ".chat_item.active .ext, .chat_item.active .info .msg" : {
        "color": "black"
    },
    ".bubble.bubble_default" : {
        "background-color": "white"
    },
    ".bubble.bubble_primary" : {
        "background-color": "white"
    },
    ".box": {
        "background-color": "white"
    },
    ".header .info .nickname .display_name": {
        "color": "black"
    },
    ".box_hd .title_wrap": {
        "background-color": "white"
    },
    ".members": {
        "background-color": "white"
    },
    ".search_bar .frm_search": {
        "background-color": "white",
        "color": "#333"
    },
    ".recommendation": {
        "background-color": "white"
    },
    ".recommendation .contact_title": {
        "background-color": "white"
    },
    ".recommendation .contact_item.on": {
        "background-color": "#eee"
    },
    ".recommendation .contact_item": {
        "background-color": "white"
    },
    ".recommendation .info .nickname": {
        "color": "black"
    },
    ".contact_list .contact_title": {
        "background-color": "white"
    },
    ".contact_list .info .nickname": {
        "color": "black"
    },
    ".contact_list .active": {
        "background-color": "#eee"
    }
}
for(var selector in pMap){
    var cssText = "";
    for(var property in pMap[selector]) {
        //$(selector).css(property, pMap[selector][property]);
        cssText += (property + ":" + pMap[selector][property] + "!important;");
    }
    document.styleSheets[0].addRule(selector, cssText)
}
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址