Skip to content

Commit

Permalink
Add another cargo.site domain (thanks to jonestly on discord)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Dec 13, 2022
1 parent 07ed1aa commit d6a91f4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75074,12 +75074,19 @@ var $$IMU_EXPORT$$;
.replace(/(\/data\/+[^/]*\/+)thumbnail\/+attach\/+/, "$1attach/");
}

if (domain === "freight.cargo.site") {
// https://cargo.site/ - website building tools
if (domain === "freight.cargo.site" ||
// thanks to jonestly on discord:
// https://cortex.persona.co/w/750/i/04f82e42c5d0b714bbdf78cf8c66b6a7fc494634deb768abb57fee896cf12959/Delta---Front_HQ.jpeg
// https://cortex.persona.co/w/i/04f82e42c5d0b714bbdf78cf8c66b6a7fc494634deb768abb57fee896cf12959/Delta---Front_HQ.jpeg -- 3000x3019
// https://cortex.persona.co/w/t/original/i/04f82e42c5d0b714bbdf78cf8c66b6a7fc494634deb768abb57fee896cf12959/Delta---Front_HQ.jpeg
// https://cortex.persona.co/t/original/i/04f82e42c5d0b714bbdf78cf8c66b6a7fc494634deb768abb57fee896cf12959/Delta---Front_HQ.jpeg -- 3000x3019
domain === "cortex.persona.co") {
// https://freight.cargo.site/w/1200/i/020831581b4b569d22934ac3aff325b5998b16ee0bb9f5d5432902c058e4e2a9/KKC_0989_R1.jpg -- 1200x1545
// https://freight.cargo.site/t/original/i/020831581b4b569d22934ac3aff325b5998b16ee0bb9f5d5432902c058e4e2a9/KKC_0989_R1.jpg -- 1600x2060
// https://freight.cargo.site/i/020831581b4b569d22934ac3aff325b5998b16ee0bb9f5d5432902c058e4e2a9/KKC_0989_R1.jpg -- 1600x2060
// https://freight.cargo.site/t/original/i/0c8caef327f35c2cca5dc1baf99a071de992cabdeb57850306a64776e8193cdc/KKC_0642_R3.jpg --1600x2060
return src.replace(/(?:\/(?:[wh]\/+[0-9]+|t\/+[a-z]+))?\/+i\/+/, "/t/original/i/");
return src.replace(/(?:\/(?:[wh](?:\/+[0-9]+)?|t\/+[a-z]+))?\/+i\/+/, "/t/original/i/");
}

if (domain === "i.inswave.net" ||
Expand Down
11 changes: 9 additions & 2 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -67604,12 +67604,19 @@ var $$IMU_EXPORT$$;
.replace(/\/img\/.*?[?&]p=([^&]*).*?$/, "/data/$1")
.replace(/(\/data\/+[^/]*\/+)thumbnail\/+attach\/+/, "$1attach/");
}
if (domain === "freight.cargo.site") {
// https://cargo.site/ - website building tools
if (domain === "freight.cargo.site" ||
// thanks to jonestly on discord:
// https://cortex.persona.co/w/750/i/04f82e42c5d0b714bbdf78cf8c66b6a7fc494634deb768abb57fee896cf12959/Delta---Front_HQ.jpeg
// https://cortex.persona.co/w/i/04f82e42c5d0b714bbdf78cf8c66b6a7fc494634deb768abb57fee896cf12959/Delta---Front_HQ.jpeg -- 3000x3019
// https://cortex.persona.co/w/t/original/i/04f82e42c5d0b714bbdf78cf8c66b6a7fc494634deb768abb57fee896cf12959/Delta---Front_HQ.jpeg
// https://cortex.persona.co/t/original/i/04f82e42c5d0b714bbdf78cf8c66b6a7fc494634deb768abb57fee896cf12959/Delta---Front_HQ.jpeg -- 3000x3019
domain === "cortex.persona.co") {
// https://freight.cargo.site/w/1200/i/020831581b4b569d22934ac3aff325b5998b16ee0bb9f5d5432902c058e4e2a9/KKC_0989_R1.jpg -- 1200x1545
// https://freight.cargo.site/t/original/i/020831581b4b569d22934ac3aff325b5998b16ee0bb9f5d5432902c058e4e2a9/KKC_0989_R1.jpg -- 1600x2060
// https://freight.cargo.site/i/020831581b4b569d22934ac3aff325b5998b16ee0bb9f5d5432902c058e4e2a9/KKC_0989_R1.jpg -- 1600x2060
// https://freight.cargo.site/t/original/i/0c8caef327f35c2cca5dc1baf99a071de992cabdeb57850306a64776e8193cdc/KKC_0642_R3.jpg --1600x2060
return src.replace(/(?:\/(?:[wh]\/+[0-9]+|t\/+[a-z]+))?\/+i\/+/, "/t/original/i/");
return src.replace(/(?:\/(?:[wh](?:\/+[0-9]+)?|t\/+[a-z]+))?\/+i\/+/, "/t/original/i/");
}
if (domain === "i.inswave.net" ||
// http://f.xza.co.kr/f_img.php?p=http://www.starjn.com/data/starjn_com/mainimages/201611/2016110547552954.jpg?wdate=1566871068
Expand Down

0 comments on commit d6a91f4

Please sign in to comment.