Auto-Click "Click to See Spoiler"

"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.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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();
    }
})();