Skip to content

Commit

Permalink
Move /media-library/ rules beside each other
Browse files Browse the repository at this point in the history
Should they be merged?
  • Loading branch information
qsniyg committed May 18, 2024
1 parent 32ae411 commit 7e35080
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
22 changes: 11 additions & 11 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108464,6 +108464,17 @@ var $$IMU_EXPORT$$;
}
}

if (domain_nowww === "out.com" ||
// thanks to sn3akyb3ar and tathastu871 on github: https://github.com/qsniyg/maxurl/issues/1325
// https://coveteur.com/media-library/image.jpg?id=52237495&width=980
// https://coveteur.com/media-library/image.jpg?id=52237495&quality=100
domain_nowww === "coveteur.com") {
// thanks to anonymous for reporting:
// https://www.out.com/media-library/image.jpg?id=43524876&height=784&quality=85
// https://www.out.com/media-library/image.jpg?id=43524876&quality=100
return src.replace(/(\/media-library\/+.*\?)(?:.*&)?(id=[0-9]+).*?$/, "$1$2&quality=100");
}

if (domain_nowww === "figureskating-online.com") {
// thanks to roi:
// http://figureskating-online.com/ce_photo/html/image.html?imageUrl=../..//mediapool/50/505569/images/Saison_22_23/DM/321844708_2981902172118785_2171735178698403583_n.jpg&width=1020&height=680&bgSoundUrl=../../&bgSoundLoop=true&soundPath=../../sound
Expand Down Expand Up @@ -113508,17 +113519,6 @@ var $$IMU_EXPORT$$;
.replace(/\/r\/+.*?\/(images\/+[a-z]+\/+.*)(?:@[a-z]+)(?:[?#].*)?$/, "/$1");
}

if (domain_nowww === "out.com" ||
// thanks to sn3akyb3ar and tathastu871 on github: https://github.com/qsniyg/maxurl/issues/1325
// https://coveteur.com/media-library/image.jpg?id=52237495&width=980
// https://coveteur.com/media-library/image.jpg?id=52237495&quality=100
domain_nowww === "coveteur.com") {
// thanks to anonymous for reporting:
// https://www.out.com/media-library/image.jpg?id=43524876&height=784&quality=85
// https://www.out.com/media-library/image.jpg?id=43524876&quality=100
return src.replace(/(\/media-library\/+.*\?)(?:.*&)?(id=[0-9]+).*?$/, "$1$2&quality=100");
}

if (domain === "img.audiofanzine.com") {
// thanks to anonymous for reporting:
// https://img.audiofanzine.com/img/product/normal/2/0/20039.jpg?fm=webp&w=300&h=218&fit=max&s=8ebdb40d38fde7162fda030e62cc70b3
Expand Down
20 changes: 10 additions & 10 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -97396,6 +97396,16 @@ var $$IMU_EXPORT$$;
return src.replace(/[?#].*/, "?id=" + match[1]);
}
}
if (domain_nowww === "out.com" ||
// thanks to sn3akyb3ar and tathastu871 on github: https://github.com/qsniyg/maxurl/issues/1325
// https://coveteur.com/media-library/image.jpg?id=52237495&width=980
// https://coveteur.com/media-library/image.jpg?id=52237495&quality=100
domain_nowww === "coveteur.com") {
// thanks to anonymous for reporting:
// https://www.out.com/media-library/image.jpg?id=43524876&height=784&quality=85
// https://www.out.com/media-library/image.jpg?id=43524876&quality=100
return src.replace(/(\/media-library\/+.*\?)(?:.*&)?(id=[0-9]+).*?$/, "$1$2&quality=100");
}
if (domain_nowww === "figureskating-online.com") {
// thanks to roi:
// http://figureskating-online.com/ce_photo/html/image.html?imageUrl=../..//mediapool/50/505569/images/Saison_22_23/DM/321844708_2981902172118785_2171735178698403583_n.jpg&width=1020&height=680&bgSoundUrl=../../&bgSoundLoop=true&soundPath=../../sound
Expand Down Expand Up @@ -101915,16 +101925,6 @@ var $$IMU_EXPORT$$;
.replace(/(:\/\/[^/]+\/+images\/+[a-z]+\/+[0-9]+\/+[0-9]+\/+[0-9]+\/+)(?:large|medium)_/, "$1")
.replace(/\/r\/+.*?\/(images\/+[a-z]+\/+.*)(?:@[a-z]+)(?:[?#].*)?$/, "/$1");
}
if (domain_nowww === "out.com" ||
// thanks to sn3akyb3ar and tathastu871 on github: https://github.com/qsniyg/maxurl/issues/1325
// https://coveteur.com/media-library/image.jpg?id=52237495&width=980
// https://coveteur.com/media-library/image.jpg?id=52237495&quality=100
domain_nowww === "coveteur.com") {
// thanks to anonymous for reporting:
// https://www.out.com/media-library/image.jpg?id=43524876&height=784&quality=85
// https://www.out.com/media-library/image.jpg?id=43524876&quality=100
return src.replace(/(\/media-library\/+.*\?)(?:.*&)?(id=[0-9]+).*?$/, "$1$2&quality=100");
}
if (domain === "img.audiofanzine.com") {
// thanks to anonymous for reporting:
// https://img.audiofanzine.com/img/product/normal/2/0/20039.jpg?fm=webp&w=300&h=218&fit=max&s=8ebdb40d38fde7162fda030e62cc70b3
Expand Down

0 comments on commit 7e35080

Please sign in to comment.