Skip to content

Instantly share code, notes, and snippets.

@iMyon
Created July 10, 2014 05:28
Show Gist options
  • Save iMyon/94cd724ebe24aa1718c3 to your computer and use it in GitHub Desktop.
Save iMyon/94cd724ebe24aa1718c3 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// ----
/*css地址https://gist.github.com/iMyon/9962219#file-readme-md*/
/*编译地址http://sassmeister.com/gist/iMyon/9962219*/
//~~变量设置
//添加屏蔽用户可用以下格式,每行一个,($key:$value),`$key`可以随便填,用于提示屏蔽信息,`$value`是data-filed的name值,需手动把原来的`\u`改成`\\u`
$usernames:(
知道狂魔:ybxiao1111,
墨魂12138:\\u58a8\\u9b4212138,
梅西老母:\\u6885\\u897f\\u8001\\u6bcd,
抓咪帝:\\u6293\\u54aa\\u5e1d
);
$show-blocked-info:false; //屏蔽后是否现实文字提示(点击可暂时取消屏蔽),不需要可设为false
$bg-block:none; //屏蔽后显示块的背景色
$color-block:red; //屏蔽后字体颜色
//变量设置~~
@namespace url(http://www.w3.org/1999/xhtml);
/*~~已屏蔽用户,用于编译后简单记录已屏蔽用户*/
$rec:"";
@each $key, $value in $usernames {
$rec:"#{$rec}#{$key}:#{$value},";
}
已屏蔽用户{
content:str-slice($rec,0,str-length($rec)-1);
}
/*已屏蔽用户*/
@-moz-document regexp("http://tieba\.baidu\.com/(f(\\?|/good).*|p/.*)") {
@each $key, $value in $usernames {
.l_post[data-field*='"user_name":"#{$value}"'] > *
, .j_thread_list[data-field*='"author_name":"#{$value}"'] > *
, .lzl_single_post[data-field*='"user_name":"#{$value}"'] > * {
display:none !important;
}
.l_post[data-field*='"user_name":"#{$value}"']:active > *
, .j_thread_list[data-field*='"author_name":"#{$value}"']:active > *
, .lzl_single_post[data-field*='"user_name":"#{$value}"']:active > * {
display:block !important;
}
.l_post[data-field*='"user_name":"#{$value}"']:active:before
, .j_thread_list[data-field*='"author_name":"#{$value}"']:active:before
, .lzl_single_post[data-field*='"user_name":"#{$value}"']:active:before {
content:"";
}
.l_post[data-field*='"user_name":"#{$value}"']:before
, .j_thread_list[data-field*='"author_name":"#{$value}"']:before
, .lzl_single_post[data-field*='"user_name":"#{$value}"']:before {
@if($show-blocked-info)
{
content:'#{$key} 已被屏蔽';
}
display:block !important;
background:$bg-block;
color:$color-block;
text-align:center;
line-height:3;
cursor:pointer;
}
}
}
@charset "UTF-8";
/*css地址https://gist.github.com/iMyon/9962219#file-readme-md*/
/*编译地址http://sassmeister.com/gist/iMyon/9962219*/
@namespace url(http://www.w3.org/1999/xhtml);
/*~~已屏蔽用户,用于编译后简单记录已屏蔽用户*/
已屏蔽用户 {
content: "知道狂魔:ybxiao1111,墨魂12138:\\u58a8\\u9b4212138,梅西老母:\\u6885\\u897f\\u8001\\u6bcd,抓咪帝:\\u6293\\u54aa\\u5e1d";
}
/*已屏蔽用户*/
@-moz-document regexp("http://tieba\.baidu\.com/(f(\\?|/good).*|p/.*)") {
.l_post[data-field*='"user_name":"ybxiao1111"'] > *
, .j_thread_list[data-field*='"author_name":"ybxiao1111"'] > *
, .lzl_single_post[data-field*='"user_name":"ybxiao1111"'] > * {
display: none !important;
}
.l_post[data-field*='"user_name":"ybxiao1111"']:active > *
, .j_thread_list[data-field*='"author_name":"ybxiao1111"']:active > *
, .lzl_single_post[data-field*='"user_name":"ybxiao1111"']:active > * {
display: block !important;
}
.l_post[data-field*='"user_name":"ybxiao1111"']:active:before
, .j_thread_list[data-field*='"author_name":"ybxiao1111"']:active:before
, .lzl_single_post[data-field*='"user_name":"ybxiao1111"']:active:before {
content: "";
}
.l_post[data-field*='"user_name":"ybxiao1111"']:before
, .j_thread_list[data-field*='"author_name":"ybxiao1111"']:before
, .lzl_single_post[data-field*='"user_name":"ybxiao1111"']:before {
display: block !important;
background: none;
color: red;
text-align: center;
line-height: 3;
cursor: pointer;
}
.l_post[data-field*='"user_name":"\\u58a8\\u9b4212138"'] > *
, .j_thread_list[data-field*='"author_name":"\\u58a8\\u9b4212138"'] > *
, .lzl_single_post[data-field*='"user_name":"\\u58a8\\u9b4212138"'] > * {
display: none !important;
}
.l_post[data-field*='"user_name":"\\u58a8\\u9b4212138"']:active > *
, .j_thread_list[data-field*='"author_name":"\\u58a8\\u9b4212138"']:active > *
, .lzl_single_post[data-field*='"user_name":"\\u58a8\\u9b4212138"']:active > * {
display: block !important;
}
.l_post[data-field*='"user_name":"\\u58a8\\u9b4212138"']:active:before
, .j_thread_list[data-field*='"author_name":"\\u58a8\\u9b4212138"']:active:before
, .lzl_single_post[data-field*='"user_name":"\\u58a8\\u9b4212138"']:active:before {
content: "";
}
.l_post[data-field*='"user_name":"\\u58a8\\u9b4212138"']:before
, .j_thread_list[data-field*='"author_name":"\\u58a8\\u9b4212138"']:before
, .lzl_single_post[data-field*='"user_name":"\\u58a8\\u9b4212138"']:before {
display: block !important;
background: none;
color: red;
text-align: center;
line-height: 3;
cursor: pointer;
}
.l_post[data-field*='"user_name":"\\u6885\\u897f\\u8001\\u6bcd"'] > *
, .j_thread_list[data-field*='"author_name":"\\u6885\\u897f\\u8001\\u6bcd"'] > *
, .lzl_single_post[data-field*='"user_name":"\\u6885\\u897f\\u8001\\u6bcd"'] > * {
display: none !important;
}
.l_post[data-field*='"user_name":"\\u6885\\u897f\\u8001\\u6bcd"']:active > *
, .j_thread_list[data-field*='"author_name":"\\u6885\\u897f\\u8001\\u6bcd"']:active > *
, .lzl_single_post[data-field*='"user_name":"\\u6885\\u897f\\u8001\\u6bcd"']:active > * {
display: block !important;
}
.l_post[data-field*='"user_name":"\\u6885\\u897f\\u8001\\u6bcd"']:active:before
, .j_thread_list[data-field*='"author_name":"\\u6885\\u897f\\u8001\\u6bcd"']:active:before
, .lzl_single_post[data-field*='"user_name":"\\u6885\\u897f\\u8001\\u6bcd"']:active:before {
content: "";
}
.l_post[data-field*='"user_name":"\\u6885\\u897f\\u8001\\u6bcd"']:before
, .j_thread_list[data-field*='"author_name":"\\u6885\\u897f\\u8001\\u6bcd"']:before
, .lzl_single_post[data-field*='"user_name":"\\u6885\\u897f\\u8001\\u6bcd"']:before {
display: block !important;
background: none;
color: red;
text-align: center;
line-height: 3;
cursor: pointer;
}
.l_post[data-field*='"user_name":"\\u6293\\u54aa\\u5e1d"'] > *
, .j_thread_list[data-field*='"author_name":"\\u6293\\u54aa\\u5e1d"'] > *
, .lzl_single_post[data-field*='"user_name":"\\u6293\\u54aa\\u5e1d"'] > * {
display: none !important;
}
.l_post[data-field*='"user_name":"\\u6293\\u54aa\\u5e1d"']:active > *
, .j_thread_list[data-field*='"author_name":"\\u6293\\u54aa\\u5e1d"']:active > *
, .lzl_single_post[data-field*='"user_name":"\\u6293\\u54aa\\u5e1d"']:active > * {
display: block !important;
}
.l_post[data-field*='"user_name":"\\u6293\\u54aa\\u5e1d"']:active:before
, .j_thread_list[data-field*='"author_name":"\\u6293\\u54aa\\u5e1d"']:active:before
, .lzl_single_post[data-field*='"user_name":"\\u6293\\u54aa\\u5e1d"']:active:before {
content: "";
}
.l_post[data-field*='"user_name":"\\u6293\\u54aa\\u5e1d"']:before
, .j_thread_list[data-field*='"author_name":"\\u6293\\u54aa\\u5e1d"']:before
, .lzl_single_post[data-field*='"user_name":"\\u6293\\u54aa\\u5e1d"']:before {
display: block !important;
background: none;
color: red;
text-align: center;
line-height: 3;
cursor: pointer;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment