Skip to content

Instantly share code, notes, and snippets.

@kdmsnr
Last active August 6, 2025 03:48
Show Gist options
  • Save kdmsnr/1cf55d70672e3a20469c62349aebc986 to your computer and use it in GitHub Desktop.
Save kdmsnr/1cf55d70672e3a20469c62349aebc986 to your computer and use it in GitHub Desktop.
TVerのマイページで常に「すべて」を選択する
// ==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