新版火狐浏览器自定义about:newtab页面
一、编写css样式:
1、功能:about:newtab添加背景图片
2、代码
@-moz-document url(about:newtab) {
.activity-stream {
background-image: url(https://w.wallhaven.cc/full/r2/wallhaven-r2eg1w.png) !important;
background-size:cover !important;/*cover or contain*/
background-attachment: fixed !important;
}
}
二、添加userContent.css文件
1、地址栏about:support,选择配置文件夹,点击 打开文件夹
2、打开chrome文件夹(没有则创建)
3、修改userContent.css文件,没有则创建,将写好的css样式复制到文件中,保存。
三、配置加载userContent.css
1、地址栏about:config
2、搜索:toolkit.legacyUserProfileCustomizations.stylesheets
3、修改值为true
四、查看
1、重启浏览器
2、地址栏about:newtab
以前版本浏览器可用,新版本不可用了
newtab设为首页
输入:about:newtab,进入页面,设为主页即可
点击+也进入首页
右边三道杠-附加组件-扩展-火狐主页-选项,将第一个取消选中
配置newtab页面
还是到扩展页面,右上角搜索Customize about:newtab,安装,再进入首页(about:newtab),右上角就会出现一个设置图标(一个螺丝),点击,里面的多选框第三个不选,下面的Image里面填写:http://rcimg.com/wh_flowers.php(这是一位大神的图库)
将首页的搜索变透明
安装Stylish扩展,
附加组件-用户样式,添加一个新样式,起个名,内容填写如下,
#newtab-search-text {
-moz-box-flex: 1;
padding-top: 6px;
padding-bottom: 6px;
padding-inline-start: 34px;
padding-inline-end: 8px;
background: hsla(0, 0%, 100%, 0.2) padding-box;
border: 1px solid;
border-spacing: 0;
border-radius: 2px 0 0 2px;
border-color: hsla(210,54%,20%,.15) hsla(210,54%,20%,.17) hsla(210,54%,20%,.2);
box-shadow: 0 1px 0 hsla(210,65%,9%,0.2) inset, 0 0 2px hsla(210,65%,9%,.1) inset, 0 1px 0 hsla(0,0%,100%,.2);
color: blue;;
}
保存。
更改外观
附加组件-外观,深邃紧凑,启用
F12,工具箱选项(右上角一个螺丝图标),主题,暗色
结束。