liveremove

去除b站多余播放器

// ==UserScript==
// @name         liveremove
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  去除b站多余播放器
// @author       geensu
// @match        https://live.bilibili.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=greasyfork.dpdns.org
// @license      AGPL License
// @grant        none
// ==/UserScript==
 
(function() {
    'use strict';
    var value=true;
     var btnarea=document.querySelector('.right-ctnr');
     var btn=document.createElement('button');
     btn.id='liveremove';
     btn.textContent=value ? "去除播放器":"恢复播放器";
     btnarea.insertBefore(btn,btnarea.children[0]);
     btn.addEventListener(click,()=>{
        if(value){
            document.getElementById('live-player').remove();

        }
        else{
            location.reload();
        }
        
        value=!value;
     })
})();
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元