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

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

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

// ==UserScript==
// @name         B站直播间简洁化+自动签到
// @namespace    http://tampermonkey.net/
// @version      0.2.6
// @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()
        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 wt = document.getElementsByClassName('watched-text')[0]
        var title = document.getElementsByClassName('small-title')[0]
        var tt = title.innerHTML
        var area = document.getElementsByClassName('area-link')[0]
        var ele = document.getElementsByClassName('checkin-btn')[0];
        title.innerHTML = upName;
        divEle.innerHTML = tt;

        function hide(){

            document.getElementById('sections-vm').remove();
            document.getElementById('link-footer-vm').remove();
            document.getElementById('my-dear-haruna-vm').remove();
            document.getElementById('sidebar-vm').remove();
            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()
        }

        function setStyle(){

            let hrt = document.querySelector('.hot-rank-text')
            hrt.style.cssText = 'font-size:20px; height:30px; width:120px; color:#f2f3f5;'




            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';



            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.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('.charge-text').style.color = 'white'
            document.querySelector('.charge-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'



            }


        function autoSign(){
            if(ele != null){
                ele.click();
            }
        }

        hide();

        setStyle();


        autoSign();



}

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址