Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Oct 18, 2023
1 parent 9ad3690 commit 28aad50
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 12 deletions.
46 changes: 40 additions & 6 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27821,6 +27821,23 @@ var $$IMU_EXPORT$$;
return src.replace(/-[0-9]+(\.[^/.]*)$/, "$1");
}

if (domain === "photocloud.sbs.co.kr") {
// https://photocloud.sbs.co.kr/S01_P462511102/thumb/65279fd45d38a2208180fe79-640.jpg
// https://photocloud.sbs.co.kr/origin/edit/S01_P462511102/65279fd45d38a2208180fe79-p.jpg
// https://photocloud.sbs.co.kr/S01_P462511102/thumb/64f95cccc483fa1f61ab61c1-c600x600.jpg
// https://photocloud.sbs.co.kr/origin/edit/S01_P462511102/64f95cccc483fa1f61ab61c1-p.jpg
return src.replace(/(:\/\/[^/]+\/+)([^/]+\/+)thumb\/+([0-9a-f]{10,})-(?:[0-9]+|c[0-9]+x[0-9]+)\./, "$1origin/edit/$2$3-p.");
}

if (domain === "board.sbs.co.kr") {
// thanks to anonymous for reporting:
// https://board.sbs.co.kr/popup/pc/imageView?imageUrl=https%3A%2F%2Fphotocloud.sbs.co.kr%2Forigin%2Fedit%2FS01_V0000010182%2F652cf858ce7ede2f9a1eed5a-p.jpg&imageAlt=Inkigayo%20Ive
// https://photocloud.sbs.co.kr/origin/edit/S01_V0000010182/652cf858ce7ede2f9a1eed5a-p.jpg
newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+popup\/+pc\/+imageView\?(?:.*&)?imageUrl=([^&]+)(?:[&#].*)?$/, "$1");
if (newsrc !== src)
return decodeuri_ifneeded(newsrc);
}

if (domain_nosub === "edaily.co.kr" &&
string_indexof(domain, "image.edaily.co.kr") >= 0 ||
string_indexof(domain, "img.edaily.co.kr") >= 0) {
Expand Down Expand Up @@ -28007,12 +28024,17 @@ var $$IMU_EXPORT$$;
// http://res-4.cloudinary.com/uan/image/private/c_fill,d_event_default.jpg,g_north,h_640,q_80,w_1280/jzigjdloajy6wzbzqjk1.jpg
// http://res-4.cloudinary.com/uan/image/private/c_limit/jzigjdloajy6wzbzqjk1.jpg
// https://res.cloudinary.com/teepublic/image/private/s--AcQdRwqc--/t_Resized%20Artwork/c_fit,g_north_west,h_1054,w_1054/co_ffffff,e_outline:53/co_ffffff,e_outline:inner_fill:53/co_bbbbbb,e_outline:3:1000/c_mpad,g_center,h_1260,w_1260/b_rgb:eeeeee/c_limit,f_jpg,h_630,q_90,w_630/v1518936493/production/designs/2373946_0.jpg
// thanks to anonymous for reportign:
// https://res-2.cloudinary.com/dostuff-media/image//upload//w_1200,q_75,c_limit,f_auto/v1484762076/page-image-7848-47724fd0-0f2e-4251-9f42-6154a2baf765.jpg
// https://res-2.cloudinary.com/dostuff-media/image/upload//w_1200,q_75,c_limit,f_auto/v1484762076/page-image-7848-47724fd0-0f2e-4251-9f42-6154a2baf765.jpg
// https://res-2.cloudinary.com/dostuff-media/image/upload/page-image-7848-47724fd0-0f2e-4251-9f42-6154a2baf765.jpg
if ((domain_nosub === "cloudinary.com" && /res(?:-[0-9]+)?\./.test(domain)) ||
// https://i.kinja-img.com/gawker-media/image/upload/s--aj1fB409--/c_fill,f_auto,fl_progressive,g_center,h_675,q_80,w_1200/181f6al0l60gjjpg.jpg -- stretched, cropped
// https://i.kinja-img.com/gawker-media/image/upload/181f6al0l60gjjpg.jpg
domain === "i.kinja-img.com") {
newsrc = src
// depends on repetition
.replace(/\/image\/+upload\/+/, "/image/upload/")
.replace(/\/image\/upload\/s\-\-[^/]*\-\-\//, "/image/upload/")
.replace(/\/iu\/s\-\-[^/]*\-\-\//, "/iu/")
.replace(/\/image\/upload\/[^/]*_[^/]*\//, "/image/upload/")
Expand Down Expand Up @@ -29126,7 +29148,10 @@ var $$IMU_EXPORT$$;
// https://lh3.googleusercontent.com/j7RWveJMFLh5TNHWRRvQnTpwFF3Xzz-mZd8ff-2PmKGIycRxZkUaOmf14g7wIj7D5x2ci1d6DbstteRtb9GN5OXF6ozB32KIY0HUtXFKnN48A1DaxnV-7Nk3YoGbI5ITVJiHA6HyN1cGo_djsw
// https://lh3.googleusercontent.com/j7RWveJMFLh5TNHWRRvQnTpwFF3Xzz-mZd8ff-2PmKGIycRxZkUaOmf14g7wIj7D5x2ci1d6DbstteRtb9GN5OXF6ozB32KIY0HUtXFKnN48A1DaxnV-7Nk3YoGbI5ITVJiHA6HyN1cGo_djsw=s0?imgmax=0
// https://lh3.googleusercontent.com/C6yBYozE1sXc9o_jsrh29_AYQ6ffCKO-fpooQ5nwuu7FSgQvdGtfSbcJVBUGSDi1VXE9TqYT2g=s0?imgmax=s0 -- "imgmax=s0"
(/^(?:yt|ci|lh|gp)[0-9]\./.test(domain) ||
// thanks to anonymous for reporting:
// https://lh7-us.googleusercontent.com/u/0/sheets/ACTFsxTil-YVOtdlIVAIK2xh_cxcZ2tDwFCvabS7in3gaiH-OMjxZ9EHU3mv9AZ_0oXRj3NzXtZBRvzBbuLW-LWu2jSFKQdwWkX3J_3lvCzB0OEwmkM0VZv5vF7QXJb_u8ySiMMFmJ0xYU-Tz1BZjfzqwF8JdtmUpYS316sB5TXNxskakfzMFCXpM_1a3ekMS2X51MS2ytIQO7s1NAj3dsDFDCTWxBtUHLK3tMINr_SrewtFw3eiaBDqsh4aI3KHxfmFT3xsx3yS_9dvZ0cGfinRCSnTwOIQep4aZTuVQ7hfp8aYoXx2tLU4sV-Sv2CKayEgfmublclXitGpV84p7i4dW4Kpi5-BMzK-iT8L0MzInR1KswrwvqHHXClXReu458QJ1Ju5EJvcuAjWHZqKnp1K1Spt4zRlqhleYnO4f4taUjSEbMHDe5ZdnLl9APKDET9Zgy6dya_eLACOh6So1H2SX3Ix4Q5lke97HAxd1Wx3VddzBh2Lw3Im0Pte-Pl4H4yJvGh_u_f8DY6i262mfNkz5HyDLn_QGv7DbpTo6QkPgrovpMSQM2Ef9CPx5vDGb0lMz1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bMHDe5ZdnLl9APKDET9Zgy6dya_eLACOh6So1H2SX3Ix4Q5lke97HAxd1Wx3VddzBh2Lw3Im0Pte-Pl4H4yJvGh_u_f8DY6i262mfNkz5HyDLn_QGv7DbpTo6QkPgrovpMSQM2Ef9CPx5vDGb0lMz1Siw8WzXl7bGfMYHMcmXgP-w5hZpTOo7ctIsF1Nri3Kx-Qgg-5Ks2tmq75KrSddgTiHmHV0_Fmt_UT8CXhmwHWq_BCTEXcuwOB00GOlAZv-T8gVMMaieniVAP6G1zhIK3dVDLn-OP41aEj0BrTcuNuSIK2Ae-3L4L_n22sjr6LvpBMAq_I7o8NrHFvvh_GJweZbBbjZhyjGH2AahFUqaxiN7uwab---y-l3Fb52PVpjFFpC2LRyNIpDb_YE03TJjV9EqSw8m4oG6aBLZcV2Z5tExRefpRJ0q-47NpqTTHdQv_9E73JBwmcIgcjXRjKvPIkrwphqPThaek9s1LaDamLTQJtN-liZ_FG0Xa_BligOSrMV94qaMa6Q_nNHdClnFIKNvsntnpzhCdNhrsAXWT3sB6CyT4yyRTC4pKhgCHdj5v6E1Eg50TUpNtdOQmb8MnD9c-lLq3jTgjwrT-LJtLbOTkuIefempXm22CRBdZ_ut1Yh8FaQxoW9ncn96tYJH1_R_CdfI4Vug2-0ePjL4Ti1n_rZtn2p-x2bMgypz9vMaYGQVVfcQTysF9k3X82s55cNSuz7hl4sGsWRDL0d9Q=s0?imgmax=0
(/^(?:yt|ci|lh|gp)[0-9](?:-[a-z]{2})?\./.test(domain) ||
// thanks to Elliot Alderson on discord for reporting
// https://play-lh.googleusercontent.com/DfAVURLgv0F8OZxFds3vLqd6o7dW9hbe9AUPgvVi4kzY5qb7Y-VRitHYA8_9W8edidI=w1440-h620-rw
// https://play-lh.googleusercontent.com/DfAVURLgv0F8OZxFds3vLqd6o7dW9hbe9AUPgvVi4kzY5qb7Y-VRitHYA8_9W8edidI=s0?imgmax=0
Expand Down Expand Up @@ -50245,6 +50270,9 @@ var $$IMU_EXPORT$$;
// https://simg3.gelbooru.com/images/ce/b8/ceb852df49b45c7c595eea61951b9ffb.jpg
// https://img2.gelbooru.com//samples/56/24/sample_562420ec66ff68dd8e31a8f651283e0d.jpg
// https://img2.gelbooru.com//images/56/24/562420ec66ff68dd8e31a8f651283e0d.jpg
// thanks to anonymous for reporting:
// https://img3.gelbooru.com/thumbnails//ef/49/thumbnail_ef497630135d33712123465e716fc638.jpg
// https://img3.gelbooru.com/images/ef/49/ef497630135d33712123465e716fc638.jpg
// no referer is needed: http://www.reddit.com/r/traphentai/comments/fv608m/punish_the_king_of_the_fairies/fmgsi1d/?context=3
obj = {
url: src,
Expand All @@ -50255,8 +50283,8 @@ var $$IMU_EXPORT$$;
}
};

newsrc = src.replace(/\/+thumbnails\/([0-9a-f]+\/[0-9a-f]+\/)thumbnail_/, "/images/$1")
.replace(/\/+samples\/([0-9a-f]+\/[0-9a-f]+\/)sample_/, "/images/$1");
newsrc = src.replace(/\/+thumbnails\/+([0-9a-f]+\/[0-9a-f]+\/)thumbnail_/, "/images/$1")
.replace(/\/+samples\/+([0-9a-f]+\/[0-9a-f]+\/)sample_/, "/images/$1");
if (newsrc !== src) {
return fillobj_urls(add_full_extensions(newsrc), obj);
}
Expand Down Expand Up @@ -96888,7 +96916,11 @@ var $$IMU_EXPORT$$;
return newsrc;
}

if (domain_nowww === "imago-images.de") {
if (domain_nowww === "imago-images.de" ||
// thanks to anonymous for reporting:
// https://cdn.imago-images.com/bild/st/0308184537/m.jpg
// https://cdn.imago-images.com/bild/st/0308184537/w.jpg
domain === "cdn.imago-images.com") {
// https://www.imago-images.de/st/0104162664
// https://www.imago-images.de/bild/st/0104162664/l.jpg -- 128x192
// https://www.imago-images.de/bild/st/0104162664/s.jpg -- 280x420
Expand All @@ -96899,15 +96931,15 @@ var $$IMU_EXPORT$$;
match = src.match(/^[a-z]+:\/\/[^/]+\/+st\/+([0-9]+)(?:[?#].*)?$/);
if (match) {
return [
"https://www.imago-images.de/bild/st/" + match[1] + "/s.jpg",
"https://" + domain + "/bild/st/" + match[1] + "/s.jpg",
{url: src, is_pagelink: true}
];
}

// this intentionally excludes ?
match = src.match(/^[a-z]+:\/\/[^/]+\/+bild\/+st\/+([0-9]+)\/+([slwmh])(\.[^/.?#]+)(?:#.*)?$/);
if (match) {
var prefix = "https://www.imago-images.de/bild/st/" + match[1] + "/";
var prefix = "https://" + domain + "/bild/st/" + match[1] + "/";
var ext = match[3];
var oururl = prefix + match[2] + ext;
var images = {
Expand Down Expand Up @@ -108464,6 +108496,8 @@ var $$IMU_EXPORT$$;
// thanks to anonymous for reporting:
// https://20.img.avito.st/640x480/8548299620.jpg
// https://20.img.avito.st/1280x960/8548299620.jpg
// other:
// https://94.img.avito.st/image/1/r8HEUra_Ayiy9_EulmSDtlzxBSJ6MQfadvEBLnz3AShwtw
return src.replace(/\/640x480\/+/, "/1280x960/");
}

Expand Down
44 changes: 38 additions & 6 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -25339,6 +25339,21 @@ var $$IMU_EXPORT$$;
// http://image.board.sbs.co.kr/2018/02/02/h191517549706907.jpg
return src.replace(/-[0-9]+(\.[^/.]*)$/, "$1");
}
if (domain === "photocloud.sbs.co.kr") {
// https://photocloud.sbs.co.kr/S01_P462511102/thumb/65279fd45d38a2208180fe79-640.jpg
// https://photocloud.sbs.co.kr/origin/edit/S01_P462511102/65279fd45d38a2208180fe79-p.jpg
// https://photocloud.sbs.co.kr/S01_P462511102/thumb/64f95cccc483fa1f61ab61c1-c600x600.jpg
// https://photocloud.sbs.co.kr/origin/edit/S01_P462511102/64f95cccc483fa1f61ab61c1-p.jpg
return src.replace(/(:\/\/[^/]+\/+)([^/]+\/+)thumb\/+([0-9a-f]{10,})-(?:[0-9]+|c[0-9]+x[0-9]+)\./, "$1origin/edit/$2$3-p.");
}
if (domain === "board.sbs.co.kr") {
// thanks to anonymous for reporting:
// https://board.sbs.co.kr/popup/pc/imageView?imageUrl=https%3A%2F%2Fphotocloud.sbs.co.kr%2Forigin%2Fedit%2FS01_V0000010182%2F652cf858ce7ede2f9a1eed5a-p.jpg&imageAlt=Inkigayo%20Ive
// https://photocloud.sbs.co.kr/origin/edit/S01_V0000010182/652cf858ce7ede2f9a1eed5a-p.jpg
newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+popup\/+pc\/+imageView\?(?:.*&)?imageUrl=([^&]+)(?:[&#].*)?$/, "$1");
if (newsrc !== src)
return decodeuri_ifneeded(newsrc);
}
if (domain_nosub === "edaily.co.kr" &&
string_indexof(domain, "image.edaily.co.kr") >= 0 ||
string_indexof(domain, "img.edaily.co.kr") >= 0) {
Expand Down Expand Up @@ -25517,12 +25532,17 @@ var $$IMU_EXPORT$$;
// http://res-4.cloudinary.com/uan/image/private/c_fill,d_event_default.jpg,g_north,h_640,q_80,w_1280/jzigjdloajy6wzbzqjk1.jpg
// http://res-4.cloudinary.com/uan/image/private/c_limit/jzigjdloajy6wzbzqjk1.jpg
// https://res.cloudinary.com/teepublic/image/private/s--AcQdRwqc--/t_Resized%20Artwork/c_fit,g_north_west,h_1054,w_1054/co_ffffff,e_outline:53/co_ffffff,e_outline:inner_fill:53/co_bbbbbb,e_outline:3:1000/c_mpad,g_center,h_1260,w_1260/b_rgb:eeeeee/c_limit,f_jpg,h_630,q_90,w_630/v1518936493/production/designs/2373946_0.jpg
// thanks to anonymous for reportign:
// https://res-2.cloudinary.com/dostuff-media/image//upload//w_1200,q_75,c_limit,f_auto/v1484762076/page-image-7848-47724fd0-0f2e-4251-9f42-6154a2baf765.jpg
// https://res-2.cloudinary.com/dostuff-media/image/upload//w_1200,q_75,c_limit,f_auto/v1484762076/page-image-7848-47724fd0-0f2e-4251-9f42-6154a2baf765.jpg
// https://res-2.cloudinary.com/dostuff-media/image/upload/page-image-7848-47724fd0-0f2e-4251-9f42-6154a2baf765.jpg
if ((domain_nosub === "cloudinary.com" && /res(?:-[0-9]+)?\./.test(domain)) ||
// https://i.kinja-img.com/gawker-media/image/upload/s--aj1fB409--/c_fill,f_auto,fl_progressive,g_center,h_675,q_80,w_1200/181f6al0l60gjjpg.jpg -- stretched, cropped
// https://i.kinja-img.com/gawker-media/image/upload/181f6al0l60gjjpg.jpg
domain === "i.kinja-img.com") {
newsrc = src
// depends on repetition
.replace(/\/image\/+upload\/+/, "/image/upload/")
.replace(/\/image\/upload\/s\-\-[^/]*\-\-\//, "/image/upload/")
.replace(/\/iu\/s\-\-[^/]*\-\-\//, "/iu/")
.replace(/\/image\/upload\/[^/]*_[^/]*\//, "/image/upload/")
Expand Down Expand Up @@ -26548,7 +26568,10 @@ var $$IMU_EXPORT$$;
// https://lh3.googleusercontent.com/j7RWveJMFLh5TNHWRRvQnTpwFF3Xzz-mZd8ff-2PmKGIycRxZkUaOmf14g7wIj7D5x2ci1d6DbstteRtb9GN5OXF6ozB32KIY0HUtXFKnN48A1DaxnV-7Nk3YoGbI5ITVJiHA6HyN1cGo_djsw
// https://lh3.googleusercontent.com/j7RWveJMFLh5TNHWRRvQnTpwFF3Xzz-mZd8ff-2PmKGIycRxZkUaOmf14g7wIj7D5x2ci1d6DbstteRtb9GN5OXF6ozB32KIY0HUtXFKnN48A1DaxnV-7Nk3YoGbI5ITVJiHA6HyN1cGo_djsw=s0?imgmax=0
// https://lh3.googleusercontent.com/C6yBYozE1sXc9o_jsrh29_AYQ6ffCKO-fpooQ5nwuu7FSgQvdGtfSbcJVBUGSDi1VXE9TqYT2g=s0?imgmax=s0 -- "imgmax=s0"
(/^(?:yt|ci|lh|gp)[0-9]\./.test(domain) ||
// thanks to anonymous for reporting:
// https://lh7-us.googleusercontent.com/u/0/sheets/ACTFsxTil-YVOtdlIVAIK2xh_cxcZ2tDwFCvabS7in3gaiH-OMjxZ9EHU3mv9AZ_0oXRj3NzXtZBRvzBbuLW-LWu2jSFKQdwWkX3J_3lvCzB0OEwmkM0VZv5vF7QXJb_u8ySiMMFmJ0xYU-Tz1BZjfzqwF8JdtmUpYS316sB5TXNxskakfzMFCXpM_1a3ekMS2X51MS2ytI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ti1n_rZtn2p-x2bMgypz9vMaYGQVVfcQTysF9k3X82s55cNSuz7hl4sGsWRDL0d9Q=s0?imgmax=0
(/^(?:yt|ci|lh|gp)[0-9](?:-[a-z]{2})?\./.test(domain) ||
// thanks to Elliot Alderson on discord for reporting
// https://play-lh.googleusercontent.com/DfAVURLgv0F8OZxFds3vLqd6o7dW9hbe9AUPgvVi4kzY5qb7Y-VRitHYA8_9W8edidI=w1440-h620-rw
// https://play-lh.googleusercontent.com/DfAVURLgv0F8OZxFds3vLqd6o7dW9hbe9AUPgvVi4kzY5qb7Y-VRitHYA8_9W8edidI=s0?imgmax=0
Expand Down Expand Up @@ -45788,6 +45811,9 @@ var $$IMU_EXPORT$$;
// https://simg3.gelbooru.com/images/ce/b8/ceb852df49b45c7c595eea61951b9ffb.jpg
// https://img2.gelbooru.com//samples/56/24/sample_562420ec66ff68dd8e31a8f651283e0d.jpg
// https://img2.gelbooru.com//images/56/24/562420ec66ff68dd8e31a8f651283e0d.jpg
// thanks to anonymous for reporting:
// https://img3.gelbooru.com/thumbnails//ef/49/thumbnail_ef497630135d33712123465e716fc638.jpg
// https://img3.gelbooru.com/images/ef/49/ef497630135d33712123465e716fc638.jpg
// no referer is needed: http://www.reddit.com/r/traphentai/comments/fv608m/punish_the_king_of_the_fairies/fmgsi1d/?context=3
obj = {
url: src,
Expand All @@ -45797,8 +45823,8 @@ var $$IMU_EXPORT$$;
Referer: "https://www." + domain_nosub + "/"
}
};
newsrc = src.replace(/\/+thumbnails\/([0-9a-f]+\/[0-9a-f]+\/)thumbnail_/, "/images/$1")
.replace(/\/+samples\/([0-9a-f]+\/[0-9a-f]+\/)sample_/, "/images/$1");
newsrc = src.replace(/\/+thumbnails\/+([0-9a-f]+\/[0-9a-f]+\/)thumbnail_/, "/images/$1")
.replace(/\/+samples\/+([0-9a-f]+\/[0-9a-f]+\/)sample_/, "/images/$1");
if (newsrc !== src) {
return fillobj_urls(add_full_extensions(newsrc), obj);
}
Expand Down Expand Up @@ -86901,7 +86927,11 @@ var $$IMU_EXPORT$$;
if (newsrc !== src)
return newsrc;
}
if (domain_nowww === "imago-images.de") {
if (domain_nowww === "imago-images.de" ||
// thanks to anonymous for reporting:
// https://cdn.imago-images.com/bild/st/0308184537/m.jpg
// https://cdn.imago-images.com/bild/st/0308184537/w.jpg
domain === "cdn.imago-images.com") {
// https://www.imago-images.de/st/0104162664
// https://www.imago-images.de/bild/st/0104162664/l.jpg -- 128x192
// https://www.imago-images.de/bild/st/0104162664/s.jpg -- 280x420
Expand All @@ -86911,14 +86941,14 @@ var $$IMU_EXPORT$$;
match = src.match(/^[a-z]+:\/\/[^/]+\/+st\/+([0-9]+)(?:[?#].*)?$/);
if (match) {
return [
"https://www.imago-images.de/bild/st/" + match[1] + "/s.jpg",
"https://" + domain + "/bild/st/" + match[1] + "/s.jpg",
{ url: src, is_pagelink: true }
];
}
// this intentionally excludes ?
match = src.match(/^[a-z]+:\/\/[^/]+\/+bild\/+st\/+([0-9]+)\/+([slwmh])(\.[^/.?#]+)(?:#.*)?$/);
if (match) {
var prefix = "https://www.imago-images.de/bild/st/" + match[1] + "/";
var prefix = "https://" + domain + "/bild/st/" + match[1] + "/";
var ext = match[3];
var oururl = prefix + match[2] + ext;
var images = {
Expand Down Expand Up @@ -97276,6 +97306,8 @@ var $$IMU_EXPORT$$;
// thanks to anonymous for reporting:
// https://20.img.avito.st/640x480/8548299620.jpg
// https://20.img.avito.st/1280x960/8548299620.jpg
// other:
// https://94.img.avito.st/image/1/r8HEUra_Ayiy9_EulmSDtlzxBSJ6MQfadvEBLnz3AShwtw
return src.replace(/\/640x480\/+/, "/1280x960/");
}
if (domain_nowww === "ugra.ru") {
Expand Down

0 comments on commit 28aad50

Please sign in to comment.