实现步骤:
1、新建一个文件夹,比如customCSS,包含custom.css和manifest.json,custom.css就是新版被阉割的那个文件
2、manifest.json的内容如下
{
"content_scripts": [ {
"css": ["custom.css"],
"matches": [ "http://*/*", "https://*/*" ]
} ],
"description": "custom.css",
"name": "custom.css",
"version": "1.0",
"manifest_version": 2
}
description是扩展简介,name是扩展名字,version是版本号,都可以自己改
3、打开chrome的扩展管理,选择打包扩展程序,扩展程序根目录选择customCSS文件夹,私有密匙文件不用管,然后选择打包扩展程序,生成customCSS.crx和customCSS.pem密匙
4、将customCSS.crx拖入扩展管理安装即可,任务管理器里面无进程
扩展模板下载 http://pan.baidu.com/s/1c0zO3G8
以后还要修改可以去userdata里找到扩展文件夹 修改css文件即可
分享我的custom.css一个
*:not([class*="icon"]):not(i){font-family: "你的字体名字" !important;}
* {text-decoration:none!important;}
::-webkit-scrollbar{
width:3px;
height:6px;
background-color:#fff;
}
::-webkit-scrollbar:hover{
background-color:#eee;
}
::-webkit-scrollbar-thumb{
min-height:5px;
min-width:5px;
-webkit-border-radius:20px;border:1px solid#888;
::-webkit-border-radius:1px;
background-color: #AAA;
}
::-webkit-scrollbar-thumb:hover{
min-height:4px;
min-width:4px;
-webkit-border-radius:20px;border:1px solid#444;
background-color: #AAA;
}
::-webkit-scrollbar-thumb:active{
-webkit-border-radius:20px;border:1px solid#444;
background-color: #AAA;
}