Greasy Fork

TheTVDB Hide Non-Episodic Specials from Aired Order

Show only "Episodic Special" episodes on Aired Order pages on TheTVDB.com

目前为 2024-03-18 提交的版本。查看 最新版本

// ==UserScript==
// @name         TheTVDB Hide Non-Episodic Specials from Aired Order
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Show only "Episodic Special" episodes on Aired Order pages on TheTVDB.com
// @author       xdpirate
// @license      GPLv3
// @match        https://thetvdb.com/series/*/allseasons/official
// @icon         https://www.google.com/s2/favicons?sz=64&domain=thetvdb.com
// @grant        none
// ==/UserScript==

let labels = document.querySelectorAll("span.label-sunglow");
for(let i = 0; i < labels.length; i++) {
    let labelName = labels[i].innerText.trim();
    if(!labelName.includes("Episodic Special")) {
        labels[i].closest("li").style.display = "none";
        console.log(`[UserScript] ${labelName} hidden!`);
    }
}