您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This removes all the junk on fishtank.live so its just the cameras
// ==UserScript== // @name Fishtank.live remove junk // @namespace http://tampermonkey.net/ // @version 0.1 // @description This removes all the junk on fishtank.live so its just the cameras // @author Jamesbannister // @match https://www.fishtank.live/ // @icon https://www.google.com/s2/favicons?sz=64&domain=fishtank.live // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Function to delete all nodes that are not the specified div or its children function modifyNodes() { const main = document.querySelector('main'); if (!main) return; const keep = main.querySelector("[class^='MainPanel_main-panel']"); if (!keep) return; // Iterate over all child nodes of main Array.from(main.childNodes).forEach(child => { // If the child node is not the one to keep, remove it if (child !== keep) { child.remove(); } }); // Make the kept div occupy the full viewport width and height keep.style.width = '100vw'; keep.style.height = '100vh'; // Set the grid-column property of the kept div keep.style.gridColumn = '1/3'; } // Function to wait until the DOM nodes are present before running the script function waitForElement() { if (document.querySelector("[class^='MainPanel_main-panel']") && document.querySelector("[class^='Chat_chat']")) { modifyNodes(); } else { setTimeout(waitForElement, 300); } } // Run the function on page load window.onload = waitForElement; })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址