{"action":"opened","issue":{"url":"https://api.github.com/repos/icewaters/icewaters.github.io/issues/73","labels_url":"https://api.github.com/repos/icewaters/icewaters.github.io/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/icewaters/icewaters.github.io/issues/73/comments","events_url":"https://api.github.com/repos/icewaters/icewaters.github.io/issues/73/events","html_url":"https://github.com/icewaters/icewaters.github.io/issues/73","id":105006777,"number":73,"title":"adblock filter text","user":{"login":"icewaters","id":2446601,"avatar_url":"https://avatars.githubusercontent.com/u/2446601?v=3","gravatar_id":"","url":"https://api.github.com/users/icewaters","html_url":"https://github.com/icewaters","followers_url":"https://api.github.com/users/icewaters/followers","following_url":"https://api.github.com/users/icewaters/following{/other_user}","gists_url":"https://api.github.com/users/icewaters/gists{/gist_id}","starred_url":"https://api.github.com/users/icewaters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icewaters/subscriptions","organizations_url":"https://api.github.com/users/icewaters/orgs","repos_url":"https://api.github.com/users/icewaters/repos","events_url":"https://api.github.com/users/icewaters/events{/privacy}","received_events_url":"https://api.github.com/users/icewaters/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-05T05:58:42Z","updated_at":"2015-09-05T05:58:42Z","closed_at":null,"body":"```\r\n##DIV[id*=\"bd_uuid\"]\r\nbaidu.com##div[id*=BAIDU]\r\nbaidu.com##div[id*=qbbanner]\r\nbaidu.com##div[class*=promotion]\r\nbaidu.com##div[id*=promotion]\r\n\r\n\r\n\r\nv.youku.com##DIV[id=\"bd_uuid_rb_111268\"]\r\n\r\n\r\n*$domain=drmcmm.baidu.com\r\n*$domain=cpro.baidu.com\r\n*$domain=hm.baidu.com\r\n*$domain=pos.baidu.com\r\n\r\n\r\n\r\n\r\n\r\n\r\n//id模糊匹配,含有\"bdfs\"字符串的就屏蔽\r\nbaidu.com#div(id*=bdfs) \r\n//必须同上面一条规则同时使用\r\nbaidu.com#div(r) \r\nbaidu.com#a(href*=http://ma.baidu.com/ma/rcv/click.php) \r\n\r\n\r\n//--------------------------------贴吧首页--------------------------------\r\n//顶部的gif广告,仅保证不显示,超链接仍存在\r\nhttp://eiv.baidu.com/mc_files/*/*.gif\r\n//顶部的flash广告,仅保证不显示,超链接仍存在\r\nhttp://eiv.baidu.com/hyimg/*/*.swf\r\n//左侧的flash广告\r\nhttp://eiv.baidu.com/mc_files/*/*.swf\r\n//顶部的广告,屏蔽超链接,但是层仍然存在,显示为一段横着的空白\r\nbaidu.com#a(href*=http://hc.baidu.com/baidu.php?t=)\r\n//让顶部的广告层直接\"消失\",下面2种写法选其一即可\r\nbaidu.com#div(style*=84%)\r\nbaidu.com#div(style=margin: 0pt 0pt 6px 8px; width: 84%;)\r\n//补充:不知道什么时候,发新帖的输入框右侧,也有了广告,把它也\"灭掉\"\r\nbaidu.com#div(id=Tads)\r\n\r\n\r\n//--------------------------------贴吧帖子--------------------------------\r\n//贴吧帖子右侧的靠上的,百度自己的flash广告\r\nbaidu.com#div(style=position: relative;)\r\n//可选,贴吧帖子右侧的各个公司或产品的广告\r\nbaidu.com#div(id*=bdfs)\r\n//贴吧帖子右侧的广告层(所有公司或产品),直接屏蔽层\r\nbaidu.com#div(id=cproshow)\r\n//更直接地屏蔽,贴吧帖子右侧的所有广告div都是在这个table里面\r\n//百度mp3的右侧广告也可以屏蔽\r\nbaidu.com#table(id=rightAd) \r\n//帖子顶部动态广告（20100814更新）\r\nbaidu.com#div(style=margin: 0pt 0pt 5px 8px; width: 84%;)\r\n\r\n\r\n//--------------------------------百度搜索--------------------------------\r\n//同理,屏蔽百度搜索结果页面右侧的广告table,里面有几个div\r\nbaidu.com#table(width=30%)(align=right)(border=0)(cellpadding=0)(cellspacing=0)\r\n\r\n//--------------------------------百度音乐--------------------------------\r\n//顶部Flash广告的div\r\nbaidu.com#div(id=dMA)\r\n//顶部Flash广告下面的两行文本超链接广告,是个table\r\n//该table每个tr都包含一个div,包含要过滤的超链接\r\nbaidu.com#div(style=overflow: hidden; width: 188px; height: 1.2em;)\r\n//使用上面的过滤规则,超链接过滤掉了,但是网页会显示一段横着的空白,因为table没有过滤掉,它的框架还在(2行*4列)\r\n//<table cellpadding=\"0\" cellspacing=\"0\">,由于它没有个性的\"特征\"(id,style等),所以不好编写过滤规则\r\n\r\n//--------------------------------百度图片--------------------------------\r\n//底部文本超链接广告的div\r\nbaidu.com#div(id=relecom54)\r\n\r\n//--------------------------------百度知道--------------------------------\r\n//顶部Gif或Flash广告的div\r\nbaidu.com#div(style=margin: 10px 0pt 0pt; text-align: left;)\r\nbaidu.com#div(style=margin: 10px 0pt 0pt; overflow: hidden; text-align: left; width: 100%;)\r\n//百度知道右侧的百度推广广告div\r\nbaidu.com#div(class=cprodiv)(id=cproshow)\r\n//百度知道问题搜索页面,右侧的Flash广告\r\nbaidu.com#table(width=220)(border=0)(cellpadding=0)(cellspacing=0)(height=150)\r\n\r\n\r\n\r\n\r\n\r\n\r\nwww.jikexueyuan.com##DIV[id=\"iuid_tp_8729\"]\r\nwww.jikexueyuan.com##IFRAME[id=\"baidu_clb_slot_iframe_1126628_0\"][src=\"about:blank\"]\r\nwww.jikexueyuan.com##IFRAME[id=\"baidu_clb_slot_iframe_1127554_0\"][src=\"about:blank\"]\r\nwww.jikexueyuan.com##I[class=\"close\"]\r\n```"}}