Skip to content

Commit

Permalink
Support salsify (fixes #938)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Feb 5, 2024
1 parent 6def254 commit e7e000b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111987,6 +111987,15 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/images\/+covers\/+)large\/+/, "$1full/");
}

if (domain === "smedia.alkemics.com") {
// thanks to nimbuz on discord for reporting: https://github.com/qsniyg/maxurl/issues/938
// https://smedia.alkemics.com/product/picture/exportable/833a487d-83a6-4082-8b26-d445448a36c8/512x512.jpg
// https://smedia.alkemics.com/product/picture/833a487d-83a6-4082-8b26-d445448a36c8.png
newsrc = src.replace(/(\/product\/+picture\/+)exportable\/+([-0-9a-f]{10,})\/+[0-9]+x[0-9]+\./, "$1$2.");
if (newsrc !== src)
return add_extensions(newsrc);
}




Expand Down
8 changes: 8 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -100513,6 +100513,14 @@ var $$IMU_EXPORT$$;
// https://covers.audiobooks.com/images/thumbs/9788491298496.jpg
return src.replace(/(\/images\/+covers\/+)large\/+/, "$1full/");
}
if (domain === "smedia.alkemics.com") {
// thanks to nimbuz on discord for reporting: https://github.com/qsniyg/maxurl/issues/938
// https://smedia.alkemics.com/product/picture/exportable/833a487d-83a6-4082-8b26-d445448a36c8/512x512.jpg
// https://smedia.alkemics.com/product/picture/833a487d-83a6-4082-8b26-d445448a36c8.png
newsrc = src.replace(/(\/product\/+picture\/+)exportable\/+([-0-9a-f]{10,})\/+[0-9]+x[0-9]+\./, "$1$2.");
if (newsrc !== src)
return add_extensions(newsrc);
}
// -- 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 e7e000b

Please sign in to comment.