您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
隐藏页面多余没用的东西+自动签到
当前为
// ==UserScript== // @name B站直播间简洁化+自动签到 // @namespace http://tampermonkey.net/ // @version 0.2.5 // @description 隐藏页面多余没用的东西+自动签到 // @author 似血 // @match https://live.bilibili.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com // @grant none // ==/UserScript== (function() { window.onload = function(){ document.querySelector('#skin-css').remove() //移除直播间多余的区块 document.getElementById('sections-vm').remove(); document.getElementById('link-footer-vm').remove(); document.getElementById('my-dear-haruna-vm').remove(); document.getElementById('sidebar-vm').remove(); //移除直播间头部信息 var upName = document.getElementsByClassName('room-owner-username')[0].innerHTML document.getElementsByClassName('icon-ctnr')[1].remove() document.getElementsByClassName('watched-icon')[0].remove() document.getElementsByClassName('icon-ctnr')[2].remove() document.getElementsByClassName('icon-ctnr')[0].remove() document.getElementsByClassName('left-ctnr')[1].remove() document.getElementsByClassName('right-ctnr')[1].remove() document.getElementsByClassName('hot-rank-text')[0].style.fontSize = '20px' document.getElementsByClassName('hot-rank-text')[0].style.height = '30px' document.getElementsByClassName('hot-rank-text')[0].style.width = '120px' //document.getElementsByClassName('hot-rank-text')[0].style.color = '#f2f3f5' document.getElementsByClassName('hot-rank-text')[0].style.setProperty('color','#f2f3f5','important') /// var divEle = document.createElement('span') var divText = document.createTextNode(upName) divEle.appendChild(divText) document.getElementsByClassName('rows-ctnr')[0].append(divEle) var wt = document.getElementsByClassName('watched-text')[0] var title = document.getElementsByClassName('small-title')[0] var tt = title.innerHTML var area = document.getElementsByClassName('area-link')[0] //title.style.background = '#fd8fad' title.style.border = '0px' title.style.borderRadius = '11px' title.style.display = 'flex'; title.style.justifyContent = 'center'; title.style.alignItems = 'center'; title.style.width='1000px'; title.style.height='30px'; title.style.lineHeight='200px'; title.style.borderRadius='11px'; title.style.backgroundColor = '#fd8fad' title.style.cursor = 'pointer'; title.style.fontSize='20px'; //title.style.color = '#f2f3f5; title.style.setProperty('color','#f2f3f5','important') area.style.borderRadius = '11px' area.style.display = 'flex'; area.style.justifyContent = 'center'; area.style.alignItems = 'center'; area.style.width='200px'; area.style.height='30px'; area.style.backgroundColor = '#fd8fad' area.style.fontSize='20px'; area.style.color = '#f2f3f5'; area.style.maxWidth = '100px' wt.style.borderRadius = '11px' wt.style.display = 'flex'; wt.style.justifyContent = 'center'; wt.style.alignItems = 'center'; wt.style.width='200px'; wt.style.height='30px'; wt.style.backgroundColor = '#fd8fad' wt.style.fontSize='20px'; // wt.style.color = '#f2f3f5'; wt.style.setProperty('color','#f2f3f5','important') wt.style.cursor = 'pointer'; divEle.style.borderRadius = '11px' divEle.style.display = 'flex'; divEle.style.justifyContent = 'center'; divEle.style.alignItems = 'center'; divEle.style.width='auto'; divEle.style.height='30px'; divEle.style.backgroundColor = '#fd8fad' divEle.style.fontSize='20px'; //divEle.style.color = '#f2f3f5'; divEle.style.setProperty('color','#f2f3f5','important') divEle.style.cursor = 'pointer'; divEle.style.marginLeft= '50px'; document.querySelector('#head-info-vm').style.cssText = 'background-image:none;background-color:pink' document.querySelector('.gift-control-section').style.cssText = 'background-image:none;background-color:pink' document.querySelector('.chat-control-panel').style.cssText = 'background-image:none;background-color:pink' document.querySelector('#rank-list-ctnr-box').style.cssText = 'background-image:none;background-color:pink' document.querySelector('#rank-list-ctnr-box').style.backgroundImage = 'none' document.querySelectorAll('.live-skin-highlight-text')[0].style.cssText = 'color:white' document.querySelectorAll('.live-skin-highlight-text')[1].style.cssText = 'color:white;border-color:white' document.querySelectorAll('.live-skin-highlight-text')[2].style.cssText = 'color:white;background:#fd8fad;border-radius:5px;padding:1px' document.querySelector('.gift-package').style.cssText = 'background:#fd8fad' document.querySelector('.gift-panel-switch').style.cssText = 'border:0px;background:#fd8fad;' //document.querySelector('.live-skin-main-text').style.cssText = 'color:white' title.innerHTML = upName; divEle.innerHTML = tt; //自动签到 var ele = document.getElementsByClassName('checkin-btn')[0]; if(ele != null){ ele.click(); } } // icon-ctnr live-skin-normal-a-text pointer // icon-ctnr live-skin-normal-a-text pointer })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址