今天就折腾这个了,其实这事情拖了好几天。Firefox某次更新以后我旧的userContent.css不好使了。于是调整了一下弄的新的。
我没用插件,只是单纯用css实现的。用多了其实不那么热爱折腾,只是实现一点简单的功能,巴不得扩展装的越少越好,(笑)
参考
http://bbs.kafan.cn/thread-1747407-1-1.html
http://bbs.kafan.cn/thread-1838559-1-1.html
我只是稍稍改一下about:newtab的九宫格而已,就用自定义userContent.css实现了,没装扩展。
以下code
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url("about:newtab") {
/*屏蔽周围元素*/
#newtab-customize-button {display: none !important;}
#newtab-intro-what {display: none !important;}
#newtab-search-container {display: none !important;}/*搜索框隐藏*/
.newtab-control{display: true !important;}/*控制按钮隐藏*/
.newtab-title{display: none !important;}/*网站名隐藏*/
.newtab-link:hover .newtab-title {display: block !important;}/*悬停显示站点名*/
/*背景*/
#newtab-scrollbox:not([page-disabled]) {
background: url(http://area.sinaapp.com/bingImg); /*http://area.sinaapp.com/bingImg?daysAgo=2*/
background-color: #E8EDF1;
color: rgb(0, 0, 0);
}
/*拨号区域尺寸、位置*/
.newtab-grid{
max-width: 1400px !important;
max-height: 500px !important;
margin-top: 20px;
}
/*拨号尺寸、间隔*/
.newtab-cell{
width: 250px !important;
height: 155px !important;
margin: 10px 10px !important;
}
/*拨号去圆角*/
.newtab-link {
border-radius: 0!important;
}
.newtab-cell {
border-radius: 0!important;
}
/*拨号透明度*/
/*
.newtab-thumbnail{opacity: 0.85 !important;}
.newtab-cell:hover .newtab-thumbnail{opacity: 1 !important;}
*/
/*拨号边框*/
.newtab-site {
border-radius: inherit;
text-decoration: none;
transition-property: top, left, opacity, box-shadow, background-color;
box-shadow: none;
border:none !important;
}
/*悬停边框*/
.newtab-cell:not([ignorehover]) > .newtab-site:hover, .newtab-site[dragged] {
border: 3px solid #7E7E7E;
box-shadow: 0 0px 0px 0px #E2E3E4;
margin: -2px;
border-radius: 0;
}
/*文字颜色*/
#newtab-intro-what, .newtab-sponsored, .newtab-title {color: #E6E6E6;}
/*站点名*/
.newtab-title {
background-color: rgba(25, 25, 25, 0.55) !important;
color:white!important;
font-size:13px!important;
text-align:left !important;
top:134px;
bottom:auto!important;
line-height:25px!important;
padding:0px 10px!important;
}
.newtab-title:before {
display:none!important;
}
/*控制按钮*/
.newtab-control-pin{
width:15px !important; height:15px !important;
top:0px !important;left:0px !important;transition: 0.5s !important;}
.newtab-control-pin:not([pinned]) {background:gold !important;}
.newtab-control-pin[pinned="true"] {background:skyblue !important;}
.newtab-control-block {
height: 15px !important;width: 15px!important;background:orangered !important;
top:0px !important;right:0px !important;}
.newtab-control-block:hover {background:Red !important;transition: 0.5s !important;}
/*缩略图*/
[href*="www.baidu.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.baidu.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.chinaso.com"] .newtab-thumbnail {
background: rgba(124, 192, 43, 1) url("http://cmsfile03.chinaso.com/group1/M00/1A/54/Cgqg11TcZiWAU7LMAAAaLXXZRTI293.jpg") center center no-repeat !important;
background-size: 100% 80%!important;
}
[href*="email.163.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://mail.163.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.douban.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.douban.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="bbs.kafan.cn"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://bbs.kafan.cn") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.eastmoney.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.eastmoney.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="gouwu.hao123.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.hao123.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.zhihu.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.zhihu.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.google.com.hk"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.google.com.hk") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.bing.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.bing.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="pan.baidu.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://pan.baidu.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="weibo.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://weibo.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="zh.wikipedia.org"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://zh.wikipedia.org") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.youtube.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.youtube.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="douban.fm"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://douban.fm") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.lzu.edu.cn"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.lzu.edu.cn") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.outlook.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.outlook.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="ele.me"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://ele.me") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="waimai.meituan.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://waimai.meituan.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="tieba.baidu.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://tieba.baidu.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.luoo.net"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.luoo.net") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="9.douban.com/"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://9.douban.com/") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.facebook.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.facebook.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.renren.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.renren.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="twitter.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://twitter.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="plus.google.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://plus.google.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="mail.google.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://mail.google.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="mail.qq.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://mail.qq.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.huxiu.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.huxiu.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="36kr.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://36kr.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.guokr.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.guokr.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="jandan.net"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://jandan.net") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.ithome.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.ithome.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.lofter.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.lofter.com") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.youku.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.youku.com/") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.alipay.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://www.alipay.com/") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="tv.sohu.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("http://data.ie.sogou.com/favor/icon2.php?url=http://tv.sohu.com/") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.firefoxfan.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("chrome://userchromejs/content/thumbnails/firefoxfan.png") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.quora.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("chrome://userchromejs/content/thumbnails/quora.png") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.inoreader.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("chrome://userchromejs/content/thumbnails/inoreader.png") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="www.pinterest.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("chrome://userchromejs/content/thumbnails/pinterest.png") center center no-repeat !important;
background-size: 100% 100%!important;
}
[href*="500px.com"] .newtab-thumbnail {
background: rgba(0, 0, 0, .05) url("chrome://userchromejs/content/thumbnails/500px.png") center center no-repeat !important;
background-size: 100% 100%!important;
}
}
网友评论