├── pure-web.css └── readme.md /pure-web.css: -------------------------------------------------------------------------------- 1 | @-moz-document domain("weibo.com") { 2 | [feedtype="ad"], 3 | .gn_nav_list>li:nth-of-type(2), 4 | .gn_nav_list>li:nth-of-type(4), 5 | #v6_pl_rightmod_noticeboard, 6 | #v6_trustPagelet_recom_member, 7 | #v6_pl_rightmod_rank, 8 | #v6_pl_rightmod_attfeed, 9 | .key[node-type="recommendTopic"], 10 | div[ad-data], 11 | .M_sc_tips { 12 | display: none; 13 | } 14 | 15 | /*隐藏左侧栏的热门视频和热门微博*/ 16 | .lev_line_v2+div.lev_Box, 17 | .lev_line_v2 { 18 | display: none; 19 | } 20 | 21 | /*隐藏姓名框的等级和会员图标*/ 22 | .nameBox a>i.icon_member_dis, 23 | span[node-type="levelBox"] { 24 | display: none; 25 | } 26 | 27 | /*隐藏播放音乐的按钮*/ 28 | div[node-type=box][i-am-music-player] { 29 | display: none; 30 | } 31 | 32 | .WB_red2017, 33 | .item.S_line2:nth-of-type(1) { 34 | display: none; 35 | } 36 | } 37 | 38 | @-moz-document domain("zhihu.com") { 39 | .Card.Banner, 40 | .Footer, 41 | .TopstorySideBar-couponItem, 42 | .TopstorySideBar-categoryList, 43 | .TopstoryItem--advertCard, 44 | .shameimaru-section .shameimaru-link, 45 | .Banner-image, 46 | .Pc-card .Banner-adsense, 47 | .Pc-card img, 48 | [title="third_ad"], 49 | .zh-footer { 50 | display: none !important; 51 | } 52 | } 53 | 54 | @-moz-document domain("www.baidu.com"), domain("zhidao.baidu.com") { 55 | #s_wrap, 56 | /*首页的我的导航框*/ 57 | #bottom_container, 58 | /*首页的footer*/ 59 | a.s-skin, 60 | .ad-block, 61 | /*招商广告*/ 62 | .result.c-container:last-of-type+div, 63 | /*搜索结果中的广告*/ 64 | #tpl, 65 | .wgt-daily, 66 | /*知道日报*/ 67 | .hao123-box, 68 | iframe, 69 | .cms-slide, 70 | .widget-new-graphic, 71 | .widget-sma, 72 | .icon-hotlk, 73 | .qrcodeCon, 74 | /*热搜*/ 75 | [tpl="right_toplist"] { 76 | display: none; 77 | } 78 | } 79 | 80 | @-moz-document domain("baike.baidu.com") { 81 | .topA, 82 | .right-ad, 83 | .lemmaWgt-sideRecommend, 84 | .lemmaWgt-promotion-vbaike, 85 | #side_box_unionAd, 86 | #BOTTOM_PRO_AD, 87 | #tashuo_right, 88 | #tashuo_bottom, 89 | #fc_guess_like_new { 90 | display: none !important; 91 | } 92 | } 93 | 94 | @-moz-document domain("iteye.com") { 95 | #layerd, 96 | #page>#branding:nth-of-type(1), 97 | #nav_show_top_stop { 98 | display: none; 99 | } 100 | } 101 | 102 | @-moz-document domain("cnblogs.com") { 103 | #cnblogs_a1, 104 | #cnblogs_b1, 105 | #cnblogs_b2, 106 | #cnblogs_b3, 107 | #cnblogs_b4, 108 | #cnblogs_c1, 109 | #cnblogs_c2, 110 | #ad_t2, 111 | #under_post_news, 112 | #under_post_kb { 113 | display: none; 114 | } 115 | } 116 | 117 | @-moz-document domain("csdn.net") { 118 | .banner-ad-box, 119 | .slide-outer.right_top, 120 | .right_extension.slide-outer, 121 | .flashrecommend, 122 | #article_ad, 123 | .edu-promotion, 124 | .recommend-ad-box, 125 | .recommend-top-adbox, 126 | #ygguprg, 127 | .csdn-tracking-statistics.mb8.box-shadow, 128 | .csdn-side-toolbar, 129 | #nav_show_top_stop, 130 | #homepageArticles, 131 | #main .recommend_list dl:not(.recommend_article), 132 | .pulllog .float-left, 133 | .indexSuperise .light-box img, 134 | .showBig img, 135 | .fourth_column, 136 | #adContent, 137 | #asideFooter, 138 | .mediav_ad, 139 | #footerRightAds, 140 | .recommend-item-box.recommend-recommend-box, 141 | #dmp_ad_58, 142 | #addAdBox, 143 | .fixRight>div:nth-of-type(1) { 144 | display: none !important; 145 | } 146 | } 147 | 148 | @-moz-document domain("fanyi.baidu.com") { 149 | .trans-ad-app-wrap, 150 | .hot-link-middle, 151 | .spread-wrap { 152 | display: none !important; 153 | } 154 | } 155 | 156 | @-moz-document domain("reddit.com") { 157 | #ad_1, 158 | #ad_4, 159 | #ad_5, 160 | #ad_6 { 161 | display: none !important; 162 | } 163 | } 164 | 165 | @-moz-document domain("blog.163.com") { 166 | #topbar_yxpArea, 167 | #topbar_lofterDldArea, 168 | #topbar_gachaArea, 169 | #topbar_randShowArea, 170 | .m-fixedPCAd.f-trans, 171 | .adv-iframe, 172 | .m-adv, 173 | #lmid_iframe { 174 | display: none !important; 175 | } 176 | } 177 | 178 | @-moz-document domain("blog.sina.com.cn") { 179 | #sinaadToolkitBox0, 180 | #sinaadToolkitBox1, 181 | #sinaadToolkitBox2, 182 | #sinaadToolkitBox3, 183 | .sinaads, 184 | .horn, 185 | .ntopbar_ad, 186 | .blogreco { 187 | display: none !important; 188 | } 189 | } 190 | 191 | @-moz-document domain("oschina.net") { 192 | .index-ad-wrap, 193 | [name="index_banner_four"], 194 | .detail_banner_ad, 195 | .ad-wrap, 196 | .week-magazine-container { 197 | display: none !important; 198 | } 199 | } 200 | 201 | @-moz-document domain("v2ex.com") { 202 | .adsbygoogle { 203 | display: none !important; 204 | } 205 | } 206 | 207 | @-moz-document domain("runoob.com") { 208 | #sidebar-right-re, 209 | .recommend-here { 210 | display: none !important; 211 | } 212 | } 213 | 214 | @-moz-document domain("jianshu.com") { 215 | [aria-label="youdao-ad"], 216 | [aria-label="baidu-ad"], 217 | a.youdao-flow-ad { 218 | display: none !important; 219 | } 220 | } -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # pure-web 2 | 使用stylish去除网络上的广告和各种垃圾信息,同时尽量不改变网站原来的结构 3 | 4 | [stylish地址](https://userstyles.org/styles/156465/pure-web) 5 | 6 | ## 目前支持的站点 7 | 1. 微博的广告和冗余信息 8 | 2. 百度的广告: 百度搜索页、百度知道、百度翻译、百度百科 9 | 3. 知乎的广告 10 | 4. iteye的广告 11 | 5. cnblogs的广告 12 | 6. csdn的广告 13 | 7. reddit的广告 14 | 8. 网易博客的广告 15 | 9. 新浪博客 16 | 10. 开源中国 17 | 11. v2ex 18 | 12. runoob.com 19 | 13. 简书 20 | 21 | 欢迎大家Pull Request --------------------------------------------------------------------------------