您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
精简了bilibili的直播页面
当前为
// ==UserScript== // @name bilibili直播精简 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 精简了bilibili的直播页面 // @author BackRunner // @match *://live.bilibili.com/* // @license MIT // @grant none // ==/UserScript== // == Tips == // 使用时可以根据自己需要用双斜线注释掉部分代码开启你想要的功能(比如送礼) // == 更新日志 == // 2016.10.3 - 1.0 // 整合了 https://greasyfork.org/zh-CN/scripts/21416-bilibili直播净化 中的聊天室内容过滤 // ============== // 2016.10.2 - alpha 0.1 // 基本精简完成,直播基础功能经测试正常 // ============== (function() { 'use strict'; //去广告Banner $('div').remove('.live-ad-full'); //去顶部下载 $('div').remove('.download-link.p-relative.float-left'); //去除排行榜 $('div').remove('.rank-list-ctnr'); //去除礼物连击 $('div').remove('.super-gift-ctnr'); //去除左边栏 $('#room-left-sidebar').remove(); //背景调整 $('.bk-img').css({'transform':'translate(0,0)','-webkit-transform':'translate(0,0)'}); //主体位置调整 $('.room-main-ctnr').css({'transform':'translate(0,0)','-webkit-transform':'translate(0,0)'}); //去除聊天框低于1000礼物提示 $('div').remove('.gift-msg-1000.p-absolute'); //去除礼物面板 $('div').remove('.gift-panel.main-section'); //聊天面板css调整 $('#chat-ctrl-panel.chat-ctrl-panel').css('padding','25px 10px 25px 10px'); //移除银瓜子宝箱 $('div').remove('.treasure-box-ctnr.treasure'); //移除我要直播 $('div').remove('.live-action-btn-ctnr'); //移除整个footer //$('div').remove('.live-footer.p-relative'); //移除播主信息中的礼物信息 $('div').remove('.row-item'); $('div').remove('.activity-top-panel.dp-inline-block'); //body css调整 $('body').css('margin','a'); //去聊天框内用户等级信息、VIP标志、等级信息等等 var cssText = ""; cssText += '#chat-msg-list a[href="/hd/aki2016"] {display: none !important;}'; cssText += '#chat-msg-list a[href="/i#to-vip"] {display: none !important;}'; cssText += '#chat-msg-list .medal-icon {display: none !important;}'; cssText += '#chat-msg-list .user-level-icon {display: none !important;}'; cssText += '#chat-msg-list a[href="/i/myTitle#list"] {display: none !important;}'; cssText += '#chat-msg-list .gift-msg {display: none !important;} #chat-list-ctnr > .super-gift-ctnr, #gift-msg-1000 {display: none !important;} #chat-list-ctnr > #chat-msg-list {height: 100% !important;}'; var modStyle = document.querySelector('#modCSS'); if (modStyle === null) { modStyle = document.createElement('style'); modStyle.id = 'modCSS'; document.body.appendChild(modStyle); } modStyle.innerHTML = cssText; })();