Greasy Fork

Greasy Fork is available in English.

贴吧页面精简

精简了贴吧大量扰眼的模块

当前为 2016-10-16 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         贴吧页面精简
// @namespace    https://coding.net/u/BackRunner/p/GreaseMonkey-JS/git
// @version      1.1
// @description  精简了贴吧大量扰眼的模块
// @author       BackRunner
// @include      *://tieba.baidu.com/f?*
// @include      *://tieba.baidu.com/p/*
// @run-at       document-body
// @require      https://code.jquery.com/jquery-3.1.1.min.js
// @license      MIT
// ==/UserScript==

// ====  Tips =====
// 请根据需要根据下面代码的注释选择需要隐藏的模块,有不想隐藏的模块可以注释掉那一行代码
// === 更新日志 ===
// 2016.10.16
// 更新了一些内容,可以只配合ADBlock不配合推荐脚本使用
// 写了一个新的脚本用来杀贴吧触点推广,请配合使用
// ================
// 2016.10.3
// 基本扰眼的模块都隐藏了
// ================

(function() {
    var cssText = "";
    //顶部直播栏
    cssText += '#video_frs_head {display: none !important;}';
    //右侧会员模块
    cssText += '.celebrity {display: none !important;}';
    //右侧我的应用模块
    cssText += '.my_app {display: none !important;}'; 
    //热议榜
    cssText += '.topic_list_box {display: none !important;}'; 
    //广告灰色label
    cssText += '.label_text {display: none !important;}'; 
    //右边一排图标
    cssText += '.j_icon_slot {display: none !important;}'; 
    //会员图标(会造成用户名左移,一定程度上影响整体美观)
    //cssText += '.icon_tbworld {display: none !important;}'; 
    //你可能感兴趣的吧
    cssText += '.forum_recommend {display: none !important;}'; 
    //右上角应用中心(会造成一段小空白)
    cssText += '.u_menu_wrap.u_appcenterEntrance_wrap {display: none !important;}'; 
    //右上角会员官网(会造成一段小空白)
    cssText += '.u_joinvip_wrap.vip_red.j_btn_getmember {display: none !important;}'; 
    //内页顶部banner
    cssText += '.l_banner {display: none !important;}'; 
    //内页成就section
    cssText += '.achievement_medal_section {display: none !important;}'; 
    //顶部游戏信息
    cssText += '.game-head-game-info-wrapper {display: none !important;}'; 
    //内页送礼物按钮
    cssText += '.post-foot-send-gift-btn {display: none !important;}';
    //会员挽尊按钮
    cssText += '.save_face_bg {display: none !important;}';
    cssText += '.save_face_bg_2 {display: none !important;}';
    //底部游戏开测
    cssText += '#duoku_servers_list {display: none !important;}';
    //右侧热门卡包
    cssText += '.u9_aside {display: none !important;}';
    //右侧小说人气榜
    cssText += '.novel-ranking-frs-body {display: none !important;}';
    //头像下面的一排图标
    cssText += '.icon_wrap {display: none !important;}';
    //贴吧触点推广图片(触点推广只有这个图片是特殊的,别的东西和正常回帖一致,无法用我所用的方法剔除)
    cssText += '.tpoint-imgs {display: none !important;}';
    //右下角炮筒
    cssText += '.j-firework-sender {display: none !important;}';
    //访谈直播
    cssText += '.interview {display: none !important;}';
    //贴内相关推荐
    cssText += '.thread_recommend {display: none !important;}';
    //贴内广告
    cssText += '.iframe_wrapper {display: none !important;}';
    //右侧贴吧作者认证
    cssText += '.author-manager {display: none !important;}';
    //输入框placeholder
    cssText += '.tb_poster_placeholder {display: none !important;}';    
    
    var modStyle = document.querySelector('#modCSS');
    if (modStyle === null)
    {
        modStyle = document.createElement('style');
        modStyle.id = 'modCSS';
        document.body.appendChild(modStyle);
    }   
    modStyle.innerHTML = cssText;
})();