您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide Announcements
// ==UserScript== // @name Gaia - Hide Announcements // @description Hide Announcements // @namespace gaiarch_v3 // @include http://www.gaiaonline.com/* // @version 2 // @grant none // ==/UserScript== (function () { var bubblelist = document.querySelector('#notifyItemList'); var listitems = bubblelist.children; if (listitems.length > 0) { Array.prototype.forEach.call(listitems, function(item, idx, list) { if(item.classList.contains('notify_announcements')) { item.remove(); if(list.length === 0) document.querySelector('#notifyBubbleContainer').remove(); } }) } })();