您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically expands all "Show" blocks with images.
// ==UserScript== // @name Empornium show hidden thumbnail blocks // @version 1.1.0 // @description Automatically expands all "Show" blocks with images. // @namespace https://greasyfork.org/users/241444 // @author salad: https://greasyfork.org/en/users/241444-salad // @license GPL-3.0-only // @match https://www.empornium.is/torrents.php?id=* // @match https://www.empornium.sx/torrents.php?id=* // @icon https://www.google.com/s2/favicons?domain=empornium.is // ==/UserScript== (() => { const hiddenBlocks = document.querySelectorAll('.spoiler.hidden'); let revealedImages = 0; hiddenBlocks.forEach(block => { const images = block.querySelectorAll('img'); if (images.length) { images.forEach(img => { img.src = img.dataset.src; revealedImages++; }); block.classList.remove('hidden'); } }); console.info('Revealed %d hidden blocks with %d images.', hiddenBlocks.length, revealedImages); })();