解决部分常用网站在特定时间会变为灰色的问题
(也不算“问题”吧
Degray - 常用网站去灰 by micro-plus-9443
Details
Authormicro-plus-9443
LicenseNo License
CategoryMany website in China
Created
Updated
Size5.2 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
2022/12/6 新增少量网站,修改代码逻辑使大部分网站能够自动生效
Source code
/* ==UserStyle==
@name Degray - 常用网站去灰
@version 20221206.05.22
@namespace userstyles.world/user/micro-plus-9443
@description 解决部分常用网站在特定时间会变为灰色的问题
(也不算“问题”吧
@author micro-plus-9443
@license No License
==/UserStyle== */
@-moz-document url-prefix("http://"), url-prefix("https://"), url-prefix("ftp://") {
/*大部分通用 故对所有网站采取这一手段*/
/*对于这一手段不产生效果的,下方另外处理*/
body,html,img{
-webkit-filter: grayscale(0) saturate(1)!important;
-moz-filter: grayscale(0) saturate(1)!important;
-ms-filter: grayscale(0) saturate(1)!important;
-o-filter: grayscale(0) saturate(1)!important;
filter: grayscale(0) saturate(1)!important;
filter: none !important;
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)!important;
}
}
@-moz-document domain("iqiyi.com"), domain("bilibili.com"), domain("kuwo.cn"), domain("weibo.com") {
/*另一种通用*/
.gray, .grayTheme {
-webkit-filter: grayscale(0) saturate(1)!important;
-moz-filter: grayscale(0) saturate(1)!important;
-ms-filter: grayscale(0) saturate(1)!important;
-o-filter: grayscale(0) saturate(1)!important;
filter: grayscale(0) saturate(1)!important;
filter: none !important;
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)!important;
}
}
@-moz-document domain("sina.com.cn"), domain("zcool.com.cn"), domain("91q.com") {
/*另外的另一种通用,包治100%的问题但可能覆盖原本该有的样式*/
*{
-webkit-filter: grayscale(0) saturate(1)!important;
-moz-filter: grayscale(0) saturate(1)!important;
-ms-filter: grayscale(0) saturate(1)!important;
-o-filter: grayscale(0) saturate(1)!important;
filter: grayscale(0) saturate(1)!important;
filter: none !important;
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)!important;
}
}
@-moz-document domain("baidu.com") {
/*百度搜索*/
body.big-event-gray .water-container,body.big-event-gray #aging-tools-pc div[class^=item-wrap], body.big-event-gray #bottom_layer, body.big-event-gray #bottom_layer .tip-hover-panel, body.big-event-gray #form, body.big-event-gray #passport-login-pop, body.big-event-gray #s-hotsearch-wrapper, body.big-event-gray #s_content_1, body.big-event-gray #s_content_100, body.big-event-gray #s_menu_gurd, body.big-event-gray #s_side_wrapper, body.big-event-gray #u1, body.big-event-gray .advert-shrink, body.big-event-gray .bdlayer, body.big-event-gray .popup-advert, body.big-event-gray .s-ctner-menus .s-menu-item-underline, body.big-event-gray .s-menu-container, body.big-event-gray .s-news-rank-wrapper, body.big-event-gray .s-skin-container.skin-gray-event, body.big-event-gray .s-top-left-new.s-isindex-wrap, body.big-event-gray .under-searchbox-tips, body.big-event-gray>div[class^=cards_pop]{
-webkit-filter: grayscale(0) saturate(1)!important;
-moz-filter: grayscale(0) saturate(1)!important;
-ms-filter: grayscale(0) saturate(1)!important;
-o-filter: grayscale(0) saturate(1)!important;
filter: grayscale(0) saturate(1)!important;
}
}
@-moz-document domain("qq.com") {
/*腾讯系*/
.garyBody,#app, .gray-style-remembrance {
-webkit-filter: grayscale(0) saturate(1)!important;
-moz-filter: grayscale(0) saturate(1)!important;
-ms-filter: grayscale(0) saturate(1)!important;
-o-filter: grayscale(0) saturate(1)!important;
filter: grayscale(0) saturate(1)!important;
filter: none !important;
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)!important;
}
}
@-moz-document domain("kugou.com") {
/*酷狗*/
.mainPage * {
-webkit-filter: grayscale(0) saturate(1)!important;
-moz-filter: grayscale(0) saturate(1)!important;
-ms-filter: grayscale(0) saturate(1)!important;
-o-filter: grayscale(0) saturate(1)!important;
filter: grayscale(0) saturate(1)!important;
filter: none !important;
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)!important;
}
.suspension4rightside {
-webkit-filter: grayscale(0) saturate(1)!important;
-moz-filter: grayscale(0) saturate(1)!important;
-ms-filter: grayscale(0) saturate(1)!important;
-o-filter: grayscale(0) saturate(1)!important;
filter: grayscale(0) saturate(1)!important;
filter: none !important;
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)!important;
}
}
@-moz-document domain("huorong.cn") {
/*火绒*/
.indexBox{
-webkit-filter: grayscale(0) saturate(1)!important;
-moz-filter: grayscale(0) saturate(1)!important;
-ms-filter: grayscale(0) saturate(1)!important;
-o-filter: grayscale(0) saturate(1)!important;
filter: grayscale(0) saturate(1)!important;
filter: none !important;
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)!important;
}
}
@-moz-document domain("sonkwo.cn") {
.notranslate{
-webkit-filter: grayscale(0) saturate(1)!important;
-moz-filter: grayscale(0) saturate(1)!important;
-ms-filter: grayscale(0) saturate(1)!important;
-o-filter: grayscale(0) saturate(1)!important;
filter: grayscale(0) saturate(1)!important;
filter: none !important;
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)!important;
}
}