Skip to content

Commit

Permalink
Improve crepe rule (fixes #1315)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Apr 23, 2024
1 parent befd3d9 commit 95d68ca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112323,6 +112323,13 @@ var $$IMU_EXPORT$$;
}

if (domain === "i.crepe.land") {
// thanks to Froktime on github: https://github.com/qsniyg/maxurl/issues/1315
// https://i.crepe.land/https://crepe.land/portfolio/h/ht/ht7tw8xcih435lphickqr5powq4mhokw_dasflas2_%25EB%258B%25892.png?h=75&t=i&v=3a&w=75&x=2
// https://i.crepe.land/https://crepe.land/portfolio/h/ht/ht7tw8xcih435lphickqr5powq4mhokw_dasflas2_%25EB%258B%25892.png?t=i
newsrc = src.replace(/\?.*/, "?t=i");
if (newsrc !== src)
return newsrc;

// thanks to Froktime on github: https://github.com/qsniyg/maxurl/issues/1259
// https://i.crepe.land/https://crepe.land/portfolio/0/0t/0tfibilw6uaf2k1n3mrwml6va2s8ap29_%EC%8A%A4%ED%8B%B4%ED%82%B9.png?q=100&t=i&v=3a&w=800&x=1
// https://crepe.land/portfolio/0/0t/0tfibilw6uaf2k1n3mrwml6va2s8ap29_%EC%8A%A4%ED%8B%B4%ED%82%B9.png
Expand Down
6 changes: 6 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -100854,6 +100854,12 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/cover\/+[0-9]+)(?:\/.*)?(?:[?#].*)?$/, "$1/xxlarge?dpi=xxxhdpi&format=png");
}
if (domain === "i.crepe.land") {
// thanks to Froktime on github: https://github.com/qsniyg/maxurl/issues/1315
// https://i.crepe.land/https://crepe.land/portfolio/h/ht/ht7tw8xcih435lphickqr5powq4mhokw_dasflas2_%25EB%258B%25892.png?h=75&t=i&v=3a&w=75&x=2
// https://i.crepe.land/https://crepe.land/portfolio/h/ht/ht7tw8xcih435lphickqr5powq4mhokw_dasflas2_%25EB%258B%25892.png?t=i
newsrc = src.replace(/\?.*/, "?t=i");
if (newsrc !== src)
return newsrc;
// thanks to Froktime on github: https://github.com/qsniyg/maxurl/issues/1259
// https://i.crepe.land/https://crepe.land/portfolio/0/0t/0tfibilw6uaf2k1n3mrwml6va2s8ap29_%EC%8A%A4%ED%8B%B4%ED%82%B9.png?q=100&t=i&v=3a&w=800&x=1
// https://crepe.land/portfolio/0/0t/0tfibilw6uaf2k1n3mrwml6va2s8ap29_%EC%8A%A4%ED%8B%B4%ED%82%B9.png
Expand Down

0 comments on commit 95d68ca

Please sign in to comment.