您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically unveil hidden thumbnails for sensitive content on Twitter with this user script. Use responsibly at your own discretion.
// ==UserScript== // @name Twitter Sensitive Media Unblocker // @namespace https://greasyfork.org/ // @version 1.0 // @description Automatically unveil hidden thumbnails for sensitive content on Twitter with this user script. Use responsibly at your own discretion. // @author nexor85 // @match *://twitter.com/* // @grant none // @run-at document-end // @license MIT // ==/UserScript== (function () { "use strict"; function clickByText(texts) { const spans = document.querySelectorAll("span"); spans.forEach((span) => { const spanTextLower = span.textContent.trim().toLowerCase(); texts.forEach((text) => { if (spanTextLower === text.toLowerCase()) { span.parentNode.click(); } }); }); } const observerCallback = (mutationsList, observer) => { clickByText(["表示", "show"]); }; const observerOptions = { childList: true, subtree: true, }; const observer = new MutationObserver(observerCallback); observer.observe(document.body, observerOptions); })();