您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove player footer and chat panel
// ==UserScript== // @name hxty.live - remove player footer and chat panel // @namespace Violentmonkey Scripts // @match *://*.hxty.live/live/* // @match *://*.360pai.xyz/live/* // @match *://*.idevkit.com/live/* // @grant none // @version 0.0.1 // @author Bin // @description Remove player footer and chat panel // @license GNU AGPLv3 // ==/UserScript== /* jshint esversion: 6 */ window.addEventListener("load", () => { document.querySelector('[class^="player-footer_live-player-footer"]').remove(); document.querySelector('[class^="anchor-detail-page_chat-panel"]').remove(); const playerContainer = document.querySelector('[class^="anchor-detail-page_anchor-live-container"]'); var observer = new MutationObserver((mutations) => { mutations.forEach((mutation) => { const target = mutation.target; if (mutation.type === "attributes" && /anchor-detail-page_theater-mode/.test(target.className)) { target.style.bottom = 0 } }); }); observer.observe(playerContainer, { attributes: true //configure it to listen to attribute changes }); });