去知乎登陆后的隐水印
知乎去水印 by erimus-koo
Details
Authorerimus-koo
LicenseNo License
Categoryzhihu 知乎
Created
Updated
Size841 B
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
/* ==UserStyle==
@name 知乎去水印
@version 20220904.16.01
@namespace userstyles.world/user/erimus-koo
@description 去知乎登陆后的隐水印
@author erimus-koo
@license No License
==/UserStyle== */
@-moz-document domain("zhihu.com") {
/* 去知乎登陆后的隐水印 */
/* 提高main层级遮挡水印 */
main {
position: relative;
z-index: 999;
}
/* 给main添加背景用于遮挡 */
main::after {
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
/* background: #f6f6f6; */
width: 100%;
height: 100%;
z-index: -1;
}
/* 顺便把水印移除 */
#root > div > div[class^="css-"]:empty {
opacity: 0;
background-repeat: no-repeat;
background-size: 0px 0px;
width: 0;
height: 0;
z-index: -99;
zoom: 0.001;
}
}