您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button to expand all messages at once in the MyAnonamouse inbox/sentbox
// ==UserScript== // @name Myanonamouse - Open All Messages Button // @namespace https://www.myanonamouse.net/u/253587 // @version 1.0 // @description Adds a button to expand all messages at once in the MyAnonamouse inbox/sentbox // @match https://www.myanonamouse.net/messages.php* // @grant none // @author Gorgonian // ==/UserScript== (function() { 'use strict'; function addOpenAllButton() { const checkAllBtn = document.querySelector('.blockBodyCon .tableb input[value="Check all"]'); if (!checkAllBtn) return false; if (document.getElementById('openAllMessagesBtn')) return true; const openAllBtn = document.createElement('input'); openAllBtn.type = 'button'; openAllBtn.value = 'Open All'; openAllBtn.id = 'openAllMessagesBtn'; openAllBtn.style.float = 'left'; const container = checkAllBtn.parentNode; container.insertBefore(openAllBtn, container.firstChild); openAllBtn.addEventListener('click', () => { const toggleIcons = document.querySelectorAll('a[data-pmid] img[src*="plus.gif"]'); toggleIcons.forEach(img => { if (img.alt === 'Show/Hide') { img.click(); } }); }); return true; } if (addOpenAllButton()) return; const targetNode = document.querySelector('.blockBodyCon'); if (!targetNode) return; const observer = new MutationObserver(() => { if (addOpenAllButton()) { observer.disconnect(); } }); observer.observe(targetNode, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址