您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
隐藏页面多余没用的东西+自动签到
当前为
// ==UserScript== // @name B站直播间简洁化+自动签到 // @namespace http://tampermonkey.net/ // @version 0.3.2 // @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 = autoSign; if(document.querySelector('#skin-css') != null){ document.querySelector('#skin-css').remove() } var upName = document.getElementsByClassName('room-owner-username')[0].innerHTML var divEle = document.createElement('span') var divText = document.createTextNode(upName) divEle.appendChild(divText) document.querySelector('.rows-ctnr').append(divEle) var title = document.getElementsByClassName('small-title')[0] var tt = title.innerHTML title.innerHTML = upName; function hide(){ document.getElementById('sections-vm').style.display = 'none'; document.getElementById('link-footer-vm').style.display = 'none'; document.getElementById('my-dear-haruna-vm').style.display = 'none'; document.getElementById('sidebar-vm').style.display = 'none'; document.getElementsByClassName('icon-ctnr')[1].style.display = 'none';//分享 document.getElementsByClassName('watched-icon')[0].style.display = 'none';//看过人数icon document.getElementsByClassName('icon-ctnr')[0].style.display = 'none';//举报 document.getElementsByClassName('left-ctnr')[1].style.display = 'none';//左边底部 document.getElementsByClassName('right-ctnr')[1].style.display = 'none';//关注 return 1; } function setStyle(){ var hrt = document.querySelector('.hot-rank-text') hrt.style.cssText = 'font-size:20px; height:30px; width:120px; color:#f2f3f5' divEle.innerHTML = tt; 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'; var area = document.getElementsByClassName('area-link')[0] 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' var wt = document.getElementsByClassName('watched-text')[0] 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.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.cursor = 'pointer'; divEle.style.marginLeft= '50px'; document.querySelector('#head-info-vm').style.backgroundColor = 'pink' document.querySelector('#gift-control-vm').style.backgroundColor = 'pink' document.querySelector('#rank-list-vm').style.backgroundColor = 'pink' document.querySelector('#chat-control-panel-vm').style.backgroundColor = 'pink' document.querySelector('.live-status').style.color = 'white' document.querySelector('#rank-list-ctnr-box').style.backgroundColor = 'pink' document.querySelector('.gift-package.live-skin-highlight-bg.live-skin-button-text').style.cssText = 'color:white;border-color:white;background:#fd8fad;border-radius:5px;padding:1px' document.querySelector('.gift-package').style.cssText = 'color:white;background:#fd8fad;border-radius:5px;padding:1px' document.querySelector('.gift-panel-switch').style.cssText = 'color:white;border:0px;background:#fd8fad;' document.querySelector('.arrow').style.cssText = 'color:white' document.querySelector('.charge-text.item.live-skin-highlight-text.btn').style.cssText = 'color:white;border-color:white;background:#fd8fad;border-radius:5px;padding:1px' document.querySelector('.bl-button--small').style.background = '#fd8fad' document.querySelector('.bl-button--small').style.fontSize = '16px' document.querySelector('.chat-input-ctnr.p-relative').style.background = 'none' document.querySelector('.chat-input-ctnr.p-relative').style.border = 'none' return 1; } function autoSign(){ var ele = document.getElementsByClassName('checkin-btn')[0]; if(ele != null){ ele.click(); return 1; } } hide(); var t = setInterval(function(){ if(setStyle() == 1){ clearInterval(t) }; },100) })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址