Last active
August 3, 2025 12:57
-
-
Save kdmsnr/08594ce619a4b46c6ac378293836854b to your computer and use it in GitHub Desktop.
Remove watched programs for TVer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Remove watched programs for TVer | |
| // @namespace https://kdmsnr.com | |
| // @version 0.1.7 | |
| // @description Remove watched programs from the mypage of TVer | |
| // @author kdmsnr | |
| // @match https://tver.jp/mypage/fav | |
| // @grant none | |
| // @run-at document-end | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| function hideWatched() { | |
| document.querySelectorAll('a[class^="EpisodeItem_"]').forEach(a => { | |
| const progress = a.querySelector('span[class^="ProgressBar_progress"]'); | |
| const li = a.closest('li'); | |
| if (progress && progress.style.width === "100%") { | |
| if (li) { | |
| li.style.display = 'none'; | |
| } else { | |
| a.style.display = 'none'; | |
| } | |
| } else { | |
| if (li) { | |
| li.style.display = ''; | |
| } | |
| a.style.display = ''; | |
| } | |
| }); | |
| } | |
| hideWatched(); | |
| const observer = new MutationObserver(hideWatched); | |
| observer.observe(document.body, { childList: true, subtree: true }); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ver 0.1.7 待ってました!更新ありがとうございます!
めっちゃ感謝してます!!