Skip to content

Commit

Permalink
Support crepe.cm (fixes #1259)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Jan 19, 2024
1 parent f3e3f4c commit 8363575
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 @@ -110952,6 +110952,13 @@ 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/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
return src.replace(/^[a-z]+:\/\/[^/]+\/+(https?:\/\/.*?)(?:[?#].*)?$/, "$1");
}




Expand Down
6 changes: 6 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -99576,6 +99576,12 @@ var $$IMU_EXPORT$$;
// https://img.ridicdn.net/cover/4851000001/xxlarge?dpi=xxxhdpi&format=png
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/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
return src.replace(/^[a-z]+:\/\/[^/]+\/+(https?:\/\/.*?)(?:[?#].*)?$/, "$1");
}
// -- general rules --
if (src.match(/\/ImageGen\.ashx\?/)) {
// http://www.lookalikes.info/umbraco/ImageGen.ashx?image=/media/97522/nick%20hewer%20-%20mark%20brown.jpeg&width=250&constrain=true
Expand Down

0 comments on commit 8363575

Please sign in to comment.