i may be stupid
This commit is contained in:
parent
bd9ced57aa
commit
79797ae4df
1 changed files with 1 additions and 1 deletions
2
fix.mjs
2
fix.mjs
|
|
@ -2,7 +2,7 @@ import {createServer} from 'node:http';
|
||||||
|
|
||||||
const sites = [
|
const sites = [
|
||||||
{
|
{
|
||||||
pattern: /^(?:www\.)pixiv\.net\/\w+\/artworks\/(\d+)(?:#(\d+))?/i,
|
pattern: /^(?:www\.)?pixiv\.net(?:\/\w+)?\/artworks\/(\d+)(?:#(\d+))?/i,
|
||||||
redirect: match => `https://pixiv.kmn5.li/${match[1]}${match[2] ? `_${parseInt(match[2], 10) - 1}` : ''}`,
|
redirect: match => `https://pixiv.kmn5.li/${match[1]}${match[2] ? `_${parseInt(match[2], 10) - 1}` : ''}`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue