Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed May 3, 2024
1 parent 7576b30 commit d670e84
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 8 deletions.
39 changes: 35 additions & 4 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32971,6 +32971,9 @@ var $$IMU_EXPORT$$;
// https://stat.dokusho-ojikan.jp/bf0e01c5-6bc4-4ce0-815a-1d90b9e19130.jpg?dh=302&dw=212&of=webp&q=70
// https://stat.dokusho-ojikan.jp/bf0e01c5-6bc4-4ce0-815a-1d90b9e19130.jpg
domain === "stat.dokusho-ojikan.jp" ||
// thanks to anonymous for reporting:
// https://www.savannahnow.com/gcdn/authoring/2006/05/27/NSMN/ghows-GA-436437d7-3af2-44b4-a743-3ff643329b91-de026424.jpeg?width=660&height=527&fit=crop&format=pjpg&auto=webp
(domain_nowww === "savannahnow.com" && string_indexof(src, "/gcdn/") >= 0) ||
// http://us.jimmychoo.com/dw/image/v2/AAWE_PRD/on/demandware.static/-/Sites-jch-master-product-catalog/default/dw70b1ebd2/images/rollover/LIZ100MPY_120004_MODEL.jpg?sw=245&sh=245&sm=fit
// https://www.aritzia.com/on/demandware.static/-/Library-Sites-Aritzia_Shared/default/dw3a7fef87/seasonal/ss18/ss18-springsummercampaign/ss18-springsummercampaign-homepage/hptiles/tile-wilfred-lrg.jpg
src.match(/\/demandware\.static\//) ||
Expand Down Expand Up @@ -33060,6 +33063,9 @@ var $$IMU_EXPORT$$;
// thanks to anonymous for reporting:
// https://s.isanook.com/gu/0/pichistory/118112112007053654.jpg?ip/crop/w200/q90/webp
domain === "s.isanook.com" ||
// thanks to anonymous for reporting:
// https://numero.twic.pics/images/article/homepage/full/push-cover-andre3000-numero-magazine.jpg?twic=v1/quality=83/truecolor=true/output=jpeg/focus=800x395/cover=11:5/resize=1680
(domain === "numero.twic.pics" && string_indexof(src, "/images/") >= 0) ||
// thanks to doio on github: https://github.com/qsniyg/maxurl/issues/1065
// https://att.fengimg.com/2022/10/01/180531wola29wdc80v3bq1.jpeg?imageMogr2/thumbnail/320x/format/jpg/interlace/0/quality/100 -- via https://www.feng.com/post/13618502
// https://att.fengimg.com/2022/10/01/180531wola29wdc80v3bq1.jpeg
Expand Down Expand Up @@ -56565,13 +56571,18 @@ var $$IMU_EXPORT$$;
}
}

if (domain === "rollingstone.uol.com.br") {
if (domain_nosub === "uol.com.br") {
// https://rollingstone.uol.com.br/media/_versions/500_melhores_albuns_de_todos_os_tempos_rolling_stone_2020_widemd.jpg
// https://rollingstone.uol.com.br/media/_versions/500_melhores_albuns_de_todos_os_tempos_rolling_stone_2020_widelg.jpg
// https://rollingstone.uol.com.br/media/uploads/500_melhores_albuns_de_todos_os_tempos_rolling_stone_2020.jpg
// https://rollingstone.uol.com.br/media/_versions/batman-o_homem_morcego_-_reproducao_sqsm.jpg
// https://rollingstone.uol.com.br/media/uploads/batman-o_homem_morcego_-_reproducao.jpg
return src.replace(/\/media\/+_versions\/+([^/]+)_(?:sq|wide)(?:sm|md|lg)\./, "/media/uploads/$1.");
// thanks to anonymous for reporting:
// https://caras.uol.com.br/media/_versions/legacy/2012/06/10/img-401687-felipe-folgosi_widelg.jpg
// https://caras.uol.com.br/media/uploads/legacy/2012/06/10/img-401687-felipe-folgosi.jpg
newsrc = src.replace(/\/media\/+_versions\/+(.*)_(?:sq|wide)(?:sm|md|lg)\./, "/media/uploads/$1.");
if (newsrc !== src)
return newsrc;
}

if (domain === "www.wmj.ru" ||
Expand Down Expand Up @@ -89759,10 +89770,23 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/photo\/+[0-9]+)_[SML](\.[^/.]*)(?:[?#].*)?$/, "$1$2");
}

if (domain_nowww === "suruga-ya.jp") {
if (domain_nowww === "suruga-ya.jp" ||
// thanks to anonymous for reporting:
// https://cdn.suruga-ya.jp/pics/boxart_m/211019151m.jpg
// https://cdn.suruga-ya.jp/database/pics/game/211019151.jpg
domain === "cdn.suruga-ya.jp") {
// https://www.suruga-ya.jp/pics/boxart_m/211019151m.jpg
// https://www.suruga-ya.jp/database/pics/game/211019151.jpg
return src.replace(/\/pics\/+boxart_[a-z]\/+([0-9]+)[a-z](\.[^/.]*)(?:[?#].*)?$/, "/database/pics/game/$1$2");
// thanks to anonymous for reporting:
// https://www.suruga-ya.jp/pics_light/boxart_m/251010927_1m.jpg
// https://www.suruga-ya.jp/database/pics/game/251010927.jpg
// https://www.suruga-ya.jp/pics_light/boxart_m/220146867m.jpg
// https://www.suruga-ya.jp/database/pics/game/220146867.jpg
// https://www.suruga-ya.jp/pics_light/boxart_ss/220290525ss.gif
// https://www.suruga-ya.jp/database/pics/game/220290525.jpg
// https://www.suruga-ya.jp/database/pics_light/game/220146867.jpg
// https://www.suruga-ya.jp/database/pics/game/220146867.jpg
return src.replace(/\/(?:database\/+)?pics(?:_light)\/+(?:boxart_[a-z]+|game)\/+([0-9]+)(?:_[0-9]+)?[a-z]*\.[a-z]+(?:[?#].*)?$/, "/database/pics/game/$1.jpg");
}

if (domain_nowww === "itsfun.com.tw") {
Expand Down Expand Up @@ -113774,6 +113798,13 @@ var $$IMU_EXPORT$$;
if (newsrc) return newsrc;
}

if (domain === "kaupokalda.com") {
// thanks to anonymous for reporting:
// https://kaupokalda.com/storage/cache/6d/2f/d9/kaupokalda-com-20220821-135537-dji-0847-pano.thumb432.webp?t=f2660d
// https://kaupokalda.com/storage/cache/6d/2f/d9/kaupokalda-com-20220821-135537-dji-0847-pano.jpg?t=f2660d
return src.replace(/(\/storage\/+cache\/+.*?)\.thumb[0-9]+\.webp/, "$1.jpg");
}




Expand Down
38 changes: 34 additions & 4 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -30130,6 +30130,9 @@ var $$IMU_EXPORT$$;
// https://stat.dokusho-ojikan.jp/bf0e01c5-6bc4-4ce0-815a-1d90b9e19130.jpg?dh=302&dw=212&of=webp&q=70
// https://stat.dokusho-ojikan.jp/bf0e01c5-6bc4-4ce0-815a-1d90b9e19130.jpg
domain === "stat.dokusho-ojikan.jp" ||
// thanks to anonymous for reporting:
// https://www.savannahnow.com/gcdn/authoring/2006/05/27/NSMN/ghows-GA-436437d7-3af2-44b4-a743-3ff643329b91-de026424.jpeg?width=660&height=527&fit=crop&format=pjpg&auto=webp
(domain_nowww === "savannahnow.com" && string_indexof(src, "/gcdn/") >= 0) ||
// http://us.jimmychoo.com/dw/image/v2/AAWE_PRD/on/demandware.static/-/Sites-jch-master-product-catalog/default/dw70b1ebd2/images/rollover/LIZ100MPY_120004_MODEL.jpg?sw=245&sh=245&sm=fit
// https://www.aritzia.com/on/demandware.static/-/Library-Sites-Aritzia_Shared/default/dw3a7fef87/seasonal/ss18/ss18-springsummercampaign/ss18-springsummercampaign-homepage/hptiles/tile-wilfred-lrg.jpg
src.match(/\/demandware\.static\//) ||
Expand Down Expand Up @@ -30218,6 +30221,9 @@ var $$IMU_EXPORT$$;
// thanks to anonymous for reporting:
// https://s.isanook.com/gu/0/pichistory/118112112007053654.jpg?ip/crop/w200/q90/webp
domain === "s.isanook.com" ||
// thanks to anonymous for reporting:
// https://numero.twic.pics/images/article/homepage/full/push-cover-andre3000-numero-magazine.jpg?twic=v1/quality=83/truecolor=true/output=jpeg/focus=800x395/cover=11:5/resize=1680
(domain === "numero.twic.pics" && string_indexof(src, "/images/") >= 0) ||
// thanks to doio on github: https://github.com/qsniyg/maxurl/issues/1065
// https://att.fengimg.com/2022/10/01/180531wola29wdc80v3bq1.jpeg?imageMogr2/thumbnail/320x/format/jpg/interlace/0/quality/100 -- via https://www.feng.com/post/13618502
// https://att.fengimg.com/2022/10/01/180531wola29wdc80v3bq1.jpeg
Expand Down Expand Up @@ -51475,13 +51481,18 @@ var $$IMU_EXPORT$$;
};
}
}
if (domain === "rollingstone.uol.com.br") {
if (domain_nosub === "uol.com.br") {
// https://rollingstone.uol.com.br/media/_versions/500_melhores_albuns_de_todos_os_tempos_rolling_stone_2020_widemd.jpg
// https://rollingstone.uol.com.br/media/_versions/500_melhores_albuns_de_todos_os_tempos_rolling_stone_2020_widelg.jpg
// https://rollingstone.uol.com.br/media/uploads/500_melhores_albuns_de_todos_os_tempos_rolling_stone_2020.jpg
// https://rollingstone.uol.com.br/media/_versions/batman-o_homem_morcego_-_reproducao_sqsm.jpg
// https://rollingstone.uol.com.br/media/uploads/batman-o_homem_morcego_-_reproducao.jpg
return src.replace(/\/media\/+_versions\/+([^/]+)_(?:sq|wide)(?:sm|md|lg)\./, "/media/uploads/$1.");
// thanks to anonymous for reporting:
// https://caras.uol.com.br/media/_versions/legacy/2012/06/10/img-401687-felipe-folgosi_widelg.jpg
// https://caras.uol.com.br/media/uploads/legacy/2012/06/10/img-401687-felipe-folgosi.jpg
newsrc = src.replace(/\/media\/+_versions\/+(.*)_(?:sq|wide)(?:sm|md|lg)\./, "/media/uploads/$1.");
if (newsrc !== src)
return newsrc;
}
if (domain === "www.wmj.ru" ||
// https://sih.avn.com/300x300/top/filters:extract_focal()/album-images/2018/07/23/15432/5b55fe1652a8f-dsc5716-copy.jpg
Expand Down Expand Up @@ -80768,10 +80779,23 @@ var $$IMU_EXPORT$$;
// https://images.fr.shopping.rakuten.com/photo/927785641.jpg
return src.replace(/(\/photo\/+[0-9]+)_[SML](\.[^/.]*)(?:[?#].*)?$/, "$1$2");
}
if (domain_nowww === "suruga-ya.jp") {
if (domain_nowww === "suruga-ya.jp" ||
// thanks to anonymous for reporting:
// https://cdn.suruga-ya.jp/pics/boxart_m/211019151m.jpg
// https://cdn.suruga-ya.jp/database/pics/game/211019151.jpg
domain === "cdn.suruga-ya.jp") {
// https://www.suruga-ya.jp/pics/boxart_m/211019151m.jpg
// https://www.suruga-ya.jp/database/pics/game/211019151.jpg
return src.replace(/\/pics\/+boxart_[a-z]\/+([0-9]+)[a-z](\.[^/.]*)(?:[?#].*)?$/, "/database/pics/game/$1$2");
// thanks to anonymous for reporting:
// https://www.suruga-ya.jp/pics_light/boxart_m/251010927_1m.jpg
// https://www.suruga-ya.jp/database/pics/game/251010927.jpg
// https://www.suruga-ya.jp/pics_light/boxart_m/220146867m.jpg
// https://www.suruga-ya.jp/database/pics/game/220146867.jpg
// https://www.suruga-ya.jp/pics_light/boxart_ss/220290525ss.gif
// https://www.suruga-ya.jp/database/pics/game/220290525.jpg
// https://www.suruga-ya.jp/database/pics_light/game/220146867.jpg
// https://www.suruga-ya.jp/database/pics/game/220146867.jpg
return src.replace(/\/(?:database\/+)?pics(?:_light)\/+(?:boxart_[a-z]+|game)\/+([0-9]+)(?:_[0-9]+)?[a-z]*\.[a-z]+(?:[?#].*)?$/, "/database/pics/game/$1.jpg");
}
if (domain_nowww === "itsfun.com.tw") {
// https://www.itsfun.com.tw/images/ef/b2/==wZwpmL2kzMkNGMmhDZ2kjZjFGMyEDM09yX4YjMfhjNy8CZmRXbk9SbvNmLnNXboFnL4A3LvoDc0RHa.jpg
Expand Down Expand Up @@ -102143,6 +102167,12 @@ var $$IMU_EXPORT$$;
if (newsrc)
return newsrc;
}
if (domain === "kaupokalda.com") {
// thanks to anonymous for reporting:
// https://kaupokalda.com/storage/cache/6d/2f/d9/kaupokalda-com-20220821-135537-dji-0847-pano.thumb432.webp?t=f2660d
// https://kaupokalda.com/storage/cache/6d/2f/d9/kaupokalda-com-20220821-135537-dji-0847-pano.jpg?t=f2660d
return src.replace(/(\/storage\/+cache\/+.*?)\.thumb[0-9]+\.webp/, "$1.jpg");
}
// -- 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 d670e84

Please sign in to comment.