0%

去除百度贴吧的广告_(:з」∠)_

感觉百度是越来越不重视用户了。。。服务质量越来越下降,广告越来越多(还有最近舰娘吧的事情。。。)

庞大的用户群被绑架到了这个贴吧里,每天只能忍受大量的广告和越来越臃肿浮躁的贴吧。

为了广大备受摧残的用户着想,我来清理掉他们(雾

不多说

根据我的需求,这个方案是清除了贴吧会员+广告+一些地方的推荐(你懂的),并去除了贴吧等级等等。

顺便基于插件简单美化了一下贴吧的布局

方案:Chrome+ADBlock(或ADBLock Plus)+StyleBot

第一步:对ABP进行配置

单击ABP图标,点最下方的“选项”,(或点击ABP设置)进入设置选项。

切换到“自定义过滤”选项卡,点击以纯文本编辑,复制下面给出的ADBLOCK规则中的内容

[spoiler title=”ADBLOCK规则”]cpro.baidu.com
http://tieba.baidu.com/tbmall/monthicon
tieba.baidu.com###duoku_servers_list
tieba.baidu.com###encourage_entry
tieba.baidu.com###j_head_focus_btn
tieba.baidu.com###signstar_wrapper
tieba.baidu.com###star_collect_time_axis_body
tieba.baidu.com##.add_thread_btn.post_head_btn.cur
tieba.baidu.com##.apc_src_wrapper
tieba.baidu.com##.focus_btn.cancel_focus
tieba.baidu.com##.get_supervip_rightnow_btn
tieba.baidu.com##.get_supervip_rightnow_btn.j_get_supervip_rightnow_btn
tieba.baidu.com##.guessing_watermark
tieba.baidu.com##.guessing_watermark_anchor
tieba.baidu.com##.j_sign_box.sign_box_bright.sign_box_bright_signed.sign_box_bright_hover
tieba.baidu.com##.j_signbtn.signstar_signed
tieba.baidu.com##.my_app.encourage_entry.region_bright
tieba.baidu.com##.p_mall_tail
tieba.baidu.com##.p_sharebar.sharebar_theme_Array
tieba.baidu.com##.reward_btn.j_reward_btn
tieba.baidu.com##.s_tools
tieba.baidu.com##.search_btn.j_search_post.search_btn_down
tieba.baidu.com##.search_btn_wrap
tieba.baidu.com##.servers_list_title
tieba.baidu.com##.servers_list_wrapper
tieba.baidu.com##.star_collect_time_axis_body.time_axis_view_mode.clearfix
tieba.baidu.com##.star_nav_btns_wrap
tieba.baidu.com##.star_nav_ico.star_nav_ico_group
tieba.baidu.com##.tbui_aside_float_bar.tbui_afb_compact
tieba.baidu.com##.thread_recommend_ps
tieba.baidu.com##A[class=”add_guessing_btn post_head_btn”]
tieba.baidu.com##A[class=”icon_tbworld tbworld_lv2”]
tieba.baidu.com##A[class=”icon_tbworld tbworld_lv2_gray”]
tieba.baidu.com##A[class=”j_mobile”]
tieba.baidu.com##A[class=”j_u_xiu8”]
tieba.baidu.com##A[class=”nav_icon icon_group j_tbnav_tab_a”]
tieba.baidu.com##A[class=”nav_icon icon_video j_tbnav_tab_a”]
tieba.baidu.com##A[class=”u_joinvip_wrap j_btn_getmember”]
tieba.baidu.com##A[class=”u_menu_wrap u_app_wrap”]
tieba.baidu.com##A[class=”u_menu_wrap u_appcenterEntrance_wrap”]
tieba.baidu.com##A[class=”u_menu_wrap u_baiduPrivilege_wrap”]
tieba.baidu.com##A[class=”u_menu_wrap u_tbmall_wrap”]
tieba.baidu.com##A[class=”user_badge d_badge_bright d_badge_icon3_1”]
tieba.baidu.com##A[href=”/game/index”]
tieba.baidu.com##A[href=”/tbmall/mymall”]
tieba.baidu.com##A[href=”http://c.tieba.baidu.com/c/s/download/pc?src=webtb#android"\]
tieba.baidu.com##A[href=”http://c.tieba.baidu.com/c/s/download/pc?src=webtb#wap"\]
tieba.baidu.com##A[href=”http://tieba.baidu.com/p/3461487717"\]
tieba.baidu.com##A[href=”http://www.baidu.com"\]
tieba.baidu.com##A[id=”j_navtab_wanle”][class=”nav_icon icon_wanle j_tbnav_tab_a”]
tieba.baidu.com##DIV[class=”b6817d5714 clearfix”]
tieba.baidu.com##DIV[class=”banner_post banner_post_bright j_banner_post clearfix”]
tieba.baidu.com##DIV[class=”card_banner”]
tieba.baidu.com##DIV[class=”edui-icon-medal edui-icon”]
tieba.baidu.com##DIV[class=”edui-icon-voice edui-icon”]
tieba.baidu.com##DIV[class=”fMember_cnt”]
tieba.baidu.com##DIV[class=”game_frs_in_head”]
tieba.baidu.com##DIV[class=”hgame_mod_theme1”]
tieba.baidu.com##DIV[class=”hgame_mod_theme2”]
tieba.baidu.com##DIV[class=”icon_wrap icon_wrap_theme1 d_pb_icons “]
tieba.baidu.com##DIV[class=”icon_wrap icon_wrap_theme1 frs_bright_icons “]
tieba.baidu.com##DIV[class=”l_post_bright sc275e590c clearfix”]
tieba.baidu.com##DIV[class=”lot_wrap lot_wrap_nobg”]
tieba.baidu.com##DIV[class=”lot_wrap”]
tieba.baidu.com##DIV[class=”p_badge”]
tieba.baidu.com##DIV[class=”poster_head_surveillance j_surveillance”]
tieba.baidu.com##DIV[class=”profile_right user_score”]
tieba.baidu.com##DIV[class=”save_face_bg save_face_bg_2”]
tieba.baidu.com##DIV[class=”share_btn_wrapper”]
tieba.baidu.com##DIV[class=”t_con clearfix”]
tieba.baidu.com##DIV[class=”tb_paper_wrap”]
tieba.baidu.com##DIV[class=”thread_recommend”]
tieba.baidu.com##DIV[class=”u9_aside”]
tieba.baidu.com##DIV[class=”u_menu_item j_u_menu_bd_home_link”]
tieba.baidu.com##DIV[id=”aside_album_good”][class=”aside_album_good aside_album_good_bright”]
tieba.baidu.com##DIV[id=”balv_mod_user_currforum”][class=”region_bright balv_mod_user_currforum “]
tieba.baidu.com##DIV[id=”encourage_entry”][class=”encourage_entry region_bright “]
tieba.baidu.com##DIV[id=”footer”][class=”footer”]
tieba.baidu.com##DIV[id=”forum_recommend”]
tieba.baidu.com##DIV[id=”pb_adbanner”][class=”l_banner banner_wangmeng_theme_2”]
tieba.baidu.com##DIV[id=”pop_animate”]
tieba.baidu.com##DIV[id=”signstar_wrapper”][class=”j_sign_box sign_box_bright”]
tieba.baidu.com##DIV[id=”union_mod”][class=”union_mod”]
tieba.baidu.com##FORM[class=”j_search_internal_form”]
tieba.baidu.com##IMG[class=”advertise_right_img”]
tieba.baidu.com##IMG[src=”//static.pay.baidu.com/tequan/tuisong/images/1418799211417.jpg?referSrc=imsg”]
tieba.baidu.com##LI[class=”j_thread_list clearfix thread_dir_ad”]
tieba.baidu.com##LI[class=”split”]
tieba.baidu.com##LI[class=”u_wallet”]
tieba.baidu.com##UL[class=”p_mtail”]
tieba.baidu.com##UL[class=”tbui_aside_float_bar”]
tieba.baidu.com##UL[class=”tieba_notice tieba_notice_theme2”]
www.baidu.com###cp
www.baidu.com###foot
www.baidu.com###help
www.baidu.com##.bdbriimgtitle
www.baidu.com##.bdbriwrapper
www.baidu.com##.mnav
www.baidu.com##A\[class="s-menu s-opacity-menu1 current”]
www.baidu.com##A\[class="s-set-page"\]
www.baidu.com##A\[class="s-skin red-dot”]
www.baidu.com##A\[class="s-skin"\]
www.baidu.com##A\[class="s-treasure red-dot”]
www.baidu.com##A\[class="s-treasure"\]
www.baidu.com##A\[class="tab-used"\]
www.baidu.com##A\[class="toindex"\]
www.baidu.com##A\[href="http://map.baidu.com/m?word=osu&fr=ps01000"\]
www.baidu.com##A\[href="http://v.baidu.com/v?ct=301989888&rn=20&pn=0&db=0&s=25&ie=utf-8&word=osu"\]
www.baidu.com##A\[href="http://wenku.baidu.com/search?word=osu&lm=0&od=0&ie=utf-8"\]
www.baidu.com##A\[href="http://www.baidu.com/link?url=prBi64AKq3pR1u1sDgfYaWXdSPsBymWV8KJ3251PS5i"\]
www.baidu.com##A\[id="s\_menu\_add"\]\[class="s-menu add s-opacity-menu1”]
www.baidu.com##DIV\[class="res\_top\_banner"\]
www.baidu.com##DIV\[class="s-tips-topMenu s-isindex-wrap s-tips-topMenuRound”]
www.baidu.com##DIV\[class="wrap"\]
www.baidu.com##DIV\[id="bottom_container"\]\[class="s-bottom-ctner"\]
www.baidu.com##DIV\[id="con-ar"\]
www.baidu.com##DIV\[id="content_right"\]\[class="cr-offset"\]
www.baidu.com##DIV\[id="s\_nall\_tabs"\]\[class="s-nall-tabs s-opacity-border1-bottom”]
www.baidu.com##DIV\[id="s\_nav\_opts"\]\[class="s-nav-opts"\]
www.baidu.com##SPAN\[class="s-menu-fill s-opacity-menu1”]
www.baidu.com##SPAN\[class="toindex"\]
www.baidu.com/s?tn=*\[/spoiler\]

并粘贴到下面出现的编辑框中,点选“应用“,最后关闭选项卡即可。

PS:这些规则可能会同时去除了百度搜索结果中的右侧广告和百度首页的某些内容,想要首页进行设置的话请先暂停ABP,设置完重新启用

第二步:配置StyleBot

点击StyleBot图标,选“options”(或点击StyleBot自定义设置)进入设置页面

选择右面的“Styles”,在左边点击“add a new style”,并设置url为“tieba.baidu.com”

将以下内容复制到下面的框中

h1.core_title_txt {
margin-right: 10px;
}

a.card_userinfo_guide {
display: none;
}

#spage_game_tab_wrapper {
display: none;
}

a.onekey_btn {
display: none;
}

div.member_rank {
display: none;
}

div.item.platform_item {
display: none;
}

div.item.media_item {
display: none;
}

点选“save”并点击“enable all”按钮,关闭页面

此时,贴吧的广告应该已经消失了

接下来稍微美化一下:

(将贴吧设置为宽屏)

新建两条stylebot规则,并设置url分别为

http://tieba.baidu.com/f

http://tieba.baidu.com/p

并将以下规则分别复制进文本框,save后点选“enable all”并关闭页面

[spoiler title=”Rules”]

body {
min-width: 1017px !important;
} .l_container, .nav_wrap_add_border, .thread_theme_5, .pb_content, .core_title_wrap_bright, .l_post_bright, .thread_theme_7, #forum_recommend, .old_style_wrapper, .edui-container, .ueditor_replace, #ueditor_replace, .pb_footer, .l_post_bright .core_reply_wrapper {
width: auto !important;
} /* big containers and sidebar */
.content {
width: auto !important;
margin-left: 38px !important;
margin-right: 38px !important;
} .forum_content, .pb_content {
background: #FFF !important;
position: relative !important;
} .main, .left_section {
width: auto !important;
float: none !important;
margin-right: 238px !important;
border-right: 1px solid #E9EBF0 !important;
} .side, .right_section {
float: none !important;
position: absolute !important;
top: 0 !important;
right: 0 !important;
} .d_post_content_main {
width: auto !important;
float: none !important;
margin-left: 130px !important;
} .threadlist_bright .threadlist_li_right {
width: calc(100% - 70px) !important;
} .tbui_aside_float_bar {
left: auto !important;
right: 0 !important;
} .threadlist_bright .threadlist_text {
width: calc(100% - 196px) !important;
} .tb_rich_poster_container {
width: auto !important;
padding-right: 300px !important;
} .ueditor_replace, #ueditor_replace {
resize: vertical !important;
} .tb_rich_poster .poster_body .editor_title {
width: calc(100% - 18px) !important;
} .tb_rich_poster .poster_head, .editor_wrapper {
margin-left: 0 !important;
} .tb_rich_poster .poster_head {
margin-right: 0 !important;
}

#j_ten_years, #aside_ad, .content_top, .game_banner_common_wapper, .u9_head, #pb_adbanner, #game_rank, .lot_wrap, .u9_aside, .banner_post, .BAIDU_CLB_AD, .dasense, .tb_poster_placeholder, .game_tab, .game_content {
display: none !important;
}

[/spoiler]

美化代码来源:百度贴吧新版完美宽屏By tomchen1989(tom8rr【@】gmail.com)

设置完成后就可以使用比较清爽的贴吧了。