Skip to content

Commit

Permalink
Replace .jpg.webp to .jpg without possibly upscaled images for mediad…
Browse files Browse the repository at this point in the history
…elivery.fi (#270)
  • Loading branch information
qsniyg committed Sep 15, 2024
1 parent a292c57 commit c9e60b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94611,6 +94611,8 @@ var $$IMU_EXPORT$$;
newsrc = src.replace(/(\/img\/+(?:square\/+)?)(?:[0-9]{3}|1[0-8][0-9]{2})\//, "$11920/");
if (newsrc === src) {
newsrc = src.replace(/(\.[a-z]+)\.webp(?:[?#].*)?$/, "$1");
if (newsrc !== src)
return newsrc;
}
if (newsrc !== src) {
return {
Expand Down
2 changes: 2 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -85184,6 +85184,8 @@ var $$IMU_EXPORT$$;
newsrc = src.replace(/(\/img\/+(?:square\/+)?)(?:[0-9]{3}|1[0-8][0-9]{2})\//, "$11920/");
if (newsrc === src) {
newsrc = src.replace(/(\.[a-z]+)\.webp(?:[?#].*)?$/, "$1");
if (newsrc !== src)
return newsrc;
}
if (newsrc !== src) {
return {
Expand Down

0 comments on commit c9e60b8

Please sign in to comment.