Last active
August 6, 2025 03:48
-
-
Save kdmsnr/1cf55d70672e3a20469c62349aebc986 to your computer and use it in GitHub Desktop.
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 TVer all-tab auto click | |
// @namespace https://kdmsnr.com | |
// @version 0.1 | |
// @description Auto-click the "all" tab on TVer mypage fav | |
// @match https://tver.jp/mypage/fav | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
function clickAllTab() { | |
const allTab = document.querySelector('div[class*="FavoriteTool_all"]'); | |
if (allTab) { | |
allTab.click(); | |
} | |
} | |
// ページロード時 | |
clickAllTab(); | |
// 動的に切り替わる場合にも対応 | |
const observer = new MutationObserver(clickAllTab); | |
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