B站直播间简洁化+自动签到

隐藏页面多余没用的东西+自动签到

目前為 2022-05-14 提交的版本,檢視 最新版本

// ==UserScript==
// @name         B站直播间简洁化+自动签到
// @namespace    http://tampermonkey.net/
// @version      0.2.3
// @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.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'
        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或关注我们的公众号极客氢云获取最新地址