// ==UserScript== // @name 清爽直播 // @namespace http://tampermonkey.net/ // @version 0.3 // @description 去除直播页下方礼物面板等 // @author greasyblade // @match *://live.bilibili.com/* // @match *://www.douyu.com/* // @match *://www.quanmin.tv/* // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; // live.bilibili.com/* if (location.hostname === 'live.bilibili.com') { window.onload = () => { if (document.getElementById("gift-control-vm")) { document.getElementById("gift-control-vm").remove(); } if (document.getElementById("rank-list-vm")) { document.getElementById("rank-list-vm").remove(); } }; } // douyu.com/* if (location.hostname === 'www.douyu.com') { window.onload = () => { if (document.getElementById("js-stats-and-actions")) { document.getElementById("js-stats-and-actions").remove(); } if (document.getElementById("js-fans-rank")) { document.getElementById("js-fans-rank").remove(); } if (document.getElementById("js-chat-cont")) { document.getElementById("js-chat-cont").setAttribute("style","top: 0px;"); } }; } // quanmin.tv/* if (location.hostname === 'www.quanmin.tv') { window.onload = () => { if (document.getElementsByClassName("room_w-giftbar").length > 0) { document.getElementsByClassName("room_w-giftbar")[0].remove(); } if (document.getElementsByClassName("guide-login-wrap").length > 0) { document.getElementsByClassName("guide-login-wrap")[0].remove(); } //热门推广 if (document.getElementsByClassName('room_w-tabs_header-item').length > 1) { document.getElementsByClassName('room_w-tabs_header-item')[1].remove(); } if (document.getElementsByClassName('room_p-room_rank').length > 0) { document.getElementsByClassName('room_p-room_rank')[0].remove(); } }; } })();