您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
"Click to see spoiler", as a feature of reddit, sucks. I want to be rid of it. I already saw the spoiler tag and chose to click anyway. Why am I being made to click again?? Not to mention what a pain in the ass it is when using keyboard navigation, since there's no way at all to avoid switching to the mouse for it.
// ==UserScript== // @name Auto-Click "Click to See Spoiler" // @namespace http://tampermonkey.net/ // @version 0.3 // @description "Click to see spoiler", as a feature of reddit, sucks. I want to be rid of it. I already saw the spoiler tag and chose to click anyway. Why am I being made to click again?? Not to mention what a pain in the ass it is when using keyboard navigation, since there's no way at all to avoid switching to the mouse for it. // @author bmn // @match https://*.reddit.com/* // @grant none // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js // ==/UserScript== const spoilerLabel = "Click to see spoiler"; this.$ = this.jQuery = jQuery.noConflict(true); (function() { if (typeof(jQuery) !== "undefined") { jQuery(".expando-gate__show-once").click(); jQuery("div[data-test-id=post-content] button:contains('" + spoilerLabel + "')").parent().siblings("a").find("*").click(); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址