您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
移除高登隱藏嘅toast bar,避免阻擋後面嘅內容點擊。
当前为
// ==UserScript== // @name HKG Toast Message Fixer // @namespace http://tampermonkey.net/ // @version 1 // @description 移除高登隱藏嘅toast bar,避免阻擋後面嘅內容點擊。 // @author 居理夫人 // @match *://forum.hkgolden.com/* // @icon // @grant none // @license GNU GPLv3 // ==/UserScript== (function() { 'use strict'; // 觀察器配置(限制觀察範圍 const config = { childList: true, subtree: true }; // 當觀察到變化時,執行檢查 const callback = function(mutationsList, observer) { // Use traditional 'for loops' for IE 11 for(let mutation of mutationsList) { const toast = document.querySelector('.MuiSnackbarContent-root'); if (toast) { const style = getComputedStyle(toast); // 檢查 toast 是否已經隱藏,且 opacity 為 0 if (style.visibility === 'hidden' && style.opacity === '0') { // 當 toast 被隱藏時,將其完全從佈局中移除 toast.style.display = 'none'; } } } }; // 建立一個觀察器 const observer = new MutationObserver(callback); // 用上面嘅配置去觀察 observer.observe(document.body, config); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址