kemono.user.js を更新
このコミットが含まれているのは:
コミット
8649698104
|
@ -38,13 +38,15 @@
|
||||||
return {ok: match.groups.userid};
|
return {ok: match.groups.userid};
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
let result = undefined;
|
||||||
document.querySelectorAll(".fanclub-name > a").forEach(element => {
|
document.querySelectorAll(".fanclub-name > a").forEach(element => {
|
||||||
console.log(element);
|
console.log(element, element.href);
|
||||||
const match = element.href.match(re);
|
const match = element.href.match(re);
|
||||||
if(match) {
|
if(match) {
|
||||||
return {ok: match.groups.userid};
|
result = {ok: match.groups.userid};
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
if (result) { return result };
|
||||||
return {err: 'Try again in the top page of this fanclub.\nファンクラブのトップページに移動してからもう一度実行してください'};
|
return {err: 'Try again in the top page of this fanclub.\nファンクラブのトップページに移動してからもう一度実行してください'};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
読み込み中…
新しいイシューから参照