Greasy Fork 还支持 简体中文。

TheTVDB Hide Synopses from All Seasons

Hide episode synopses/descriptions from All Seasons pages on TheTVDB.com

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         TheTVDB Hide Synopses from All Seasons
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  Hide episode synopses/descriptions from All Seasons pages on TheTVDB.com
// @author       xdpirate
// @license      GPLv3
// @match        https://thetvdb.com/series/*/allseasons/*
// @match        https://www.thetvdb.com/series/*/allseasons/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=thetvdb.com
// @grant        none
// ==/UserScript==

let descriptions = document.querySelectorAll("div.col-xs-9 > p");
for(let i = 0; i < descriptions.length; i++) {
    descriptions[i].style.display = "none";

    let toggleNode = document.createElement("div");
    toggleNode.style = "cursor: pointer; border: 1px solid; border-radius: 10px; padding: 5px; width: fit-content; margin-top: 5px; margin-bottom: 5px;";
    toggleNode.innerText = "Toggle description";

    toggleNode.addEventListener("click", function() {
        if(this.nextElementSibling.style.display == "none") {
            this.nextElementSibling.style.display = "block";
        } else {
            this.nextElementSibling.style.display = "none"
        }
    });

    descriptions[i].insertAdjacentElement("beforebegin", toggleNode);
}