From 2b896fd9e10a1013e016c39d4cedf67c36c8de1e Mon Sep 17 00:00:00 2001 From: skscript Date: Sat, 28 Oct 2023 12:49:16 +0900 Subject: [PATCH] =?UTF-8?q?kemono.user.js=20=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kemono.user.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kemono.user.js b/kemono.user.js index 8a9b4ed..9fc0426 100644 --- a/kemono.user.js +++ b/kemono.user.js @@ -38,6 +38,12 @@ return {ok: match.groups.userid}; } else { + document.querySelectorAll(".fanclub-name > a").forEach(element => { + const match = element.href.match(re); + if(match) { + return {ok: match.groups.userid}; + } + }) return {err: 'Try again in the top page of this fanclub.\nファンクラブのトップページに移動してからもう一度実行してください'}; } }