Skip to content

Instantly share code, notes, and snippets.

@LiuJi-Jim
Last active May 5, 2016 08:11
Show Gist options
  • Select an option

  • Save LiuJi-Jim/2e5419979e01a33ead60 to your computer and use it in GitHub Desktop.

Select an option

Save LiuJi-Jim/2e5419979e01a33ead60 to your computer and use it in GitHub Desktop.
百度大搜索广告标识
/*
用于Stylish
网址前缀:https://www.baidu.com/s?
网址前缀: http://www.baidu.com/s?
*/
#content_left>*:not(.result):not(.result-op):not(.leftBlock):not(#super_se_tip):not(#rs_top_new):not(.hit_top_new):not(.se_common_hint),
#ec_im_container>[id],
.ad-block {
position: relative !important;
}
#content_left>*:not(.result):not(.result-op):not(.leftBlock):not(#super_se_tip):not(#rs_top_new):not(.hit_top_new):not(.se_common_hint):after,
#ec_im_container>[id]:after,
.ad-block:after {
content: '推广,请无视';
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: -webkit-box;
-webkit-box-align: center;
-webkit-box-pack: center;
background: rgba(255, 255, 255, 0.8);
font-size: 24px;
color: #999;
z-index: 300; /* 它那个sticky的header正好是301 */
}
#content_left>*:not(.result):not(.result-op):not(.leftBlock):not(#super_se_tip):not(#rs_top_new):not(.hit_top_new):not(.se_common_hint):hover:after,
#ec_im_container>[id]:hover:after,
.ad-block:hover:after {
/* 做人留一线,日后好相见 */
/* 鼠标悬浮则覆盖层消失,挽救一些bad case */
content: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment