Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Jul 23, 2024
1 parent a9d730f commit 505a0c4
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 4 deletions.
33 changes: 31 additions & 2 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34111,8 +34111,6 @@ var $$IMU_EXPORT$$;
// thanks to fedesk on discord
// https://media.hotpress.com/uploads/2019/11/25101541/IMGL8113-copy-200x300.jpg
(domain === "media.hotpress.com" && string_indexof(src, "/uploads/") >= 0) ||
// https://yocto.scrolller.com/doug-at-sunset-9cy1fpzekr-1626x1080.jpg
(domain_nosub === "scrolller.com" && /-[0-9a-z]{5,}-[0-9]+x[0-9]+\./.test(src)) ||
// https://images.thedigitalfix.com/img/6/2021/04/tfatws-105-truth-1-330x185.jpeg
domain === "images.thedigitalfix.com" ||
// thanks to dym-sh on github: https://github.com/qsniyg/maxurl/issues/806
Expand Down Expand Up @@ -115099,6 +115097,37 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/uploads\/+[^/]+\/+[0-9]+\/+)(?:med)?thumb\/+/, "$1");
}

if (domain_nosub === "scrolller.com") {
// https://yocto.scrolller.com/doug-at-sunset-9cy1fpzekr-1626x1080.jpg
// https://images.scrolller.com/yocto/doug-at-sunset-9cy1fpzekr.webp
// https://images.scrolller.com/yocto/doug-at-sunset-9cy1fpzekr.jpg
if (/-[0-9a-z]{5,}-[0-9]+x[0-9]+\./.test(src)) {
newsrc = src.replace(/-[0-9]+x[0-9]+(\.[a-z]+)(?:[?#].*)?$/, "$1");
if (newsrc !== src)
return newsrc;
}

newsrc = src.replace(/\.webp(?:[?#].*)?$/, ".jpg");
if (newsrc !== src)
return newsrc;

newsrc = src.replace(/-(?:poster|mobile)\.[a-z0-9]+(?:[?#].*)?$/, ".mp4");
if (newsrc === src)
newsrc = src.replace(/:\/\/images\.scrolller\.com\/+yocto\/+([^/]+-[a-z0-9]{5,})\.jpg$/, "://zepto.scrolller.com/$1.mp4");
if (newsrc !== src)
return {
url: newsrc.replace(/:\/\/images\.scrolller\.com\/+([^/]+)\/+/, "://$1.scrolller.com/"),
video: true
};
}

if (domain === "cdn.rockislandauction.com") {
// thanks to anonymous for reporting:
// https://cdn.rockislandauction.com/dev_cdn/88/thumbs/1220.jpg?cachebust=2023-04-05T19:36:32.000Z
// https://cdn.rockislandauction.com/dev_cdn/88/1220.jpg?cachebust=2023-04-05T19:36:32.000Z
return src.replace(/(\/dev_cdn\/+[0-9]+\/+)thumbs\/+/, "$1");
}




Expand Down
29 changes: 27 additions & 2 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -31250,8 +31250,6 @@ var $$IMU_EXPORT$$;
// thanks to fedesk on discord
// https://media.hotpress.com/uploads/2019/11/25101541/IMGL8113-copy-200x300.jpg
(domain === "media.hotpress.com" && string_indexof(src, "/uploads/") >= 0) ||
// https://yocto.scrolller.com/doug-at-sunset-9cy1fpzekr-1626x1080.jpg
(domain_nosub === "scrolller.com" && /-[0-9a-z]{5,}-[0-9]+x[0-9]+\./.test(src)) ||
// https://images.thedigitalfix.com/img/6/2021/04/tfatws-105-truth-1-330x185.jpeg
domain === "images.thedigitalfix.com" ||
// thanks to dym-sh on github: https://github.com/qsniyg/maxurl/issues/806
Expand Down Expand Up @@ -103354,6 +103352,33 @@ var $$IMU_EXPORT$$;
// https://renginiai.kasvyksta.lt/uploads/events/131382/448174230_899653408842705_7479100982827670299_n_1.jpg
return src.replace(/(\/uploads\/+[^/]+\/+[0-9]+\/+)(?:med)?thumb\/+/, "$1");
}
if (domain_nosub === "scrolller.com") {
// https://yocto.scrolller.com/doug-at-sunset-9cy1fpzekr-1626x1080.jpg
// https://images.scrolller.com/yocto/doug-at-sunset-9cy1fpzekr.webp
// https://images.scrolller.com/yocto/doug-at-sunset-9cy1fpzekr.jpg
if (/-[0-9a-z]{5,}-[0-9]+x[0-9]+\./.test(src)) {
newsrc = src.replace(/-[0-9]+x[0-9]+(\.[a-z]+)(?:[?#].*)?$/, "$1");
if (newsrc !== src)
return newsrc;
}
newsrc = src.replace(/\.webp(?:[?#].*)?$/, ".jpg");
if (newsrc !== src)
return newsrc;
newsrc = src.replace(/-(?:poster|mobile)\.[a-z0-9]+(?:[?#].*)?$/, ".mp4");
if (newsrc === src)
newsrc = src.replace(/:\/\/images\.scrolller\.com\/+yocto\/+([^/]+-[a-z0-9]{5,})\.jpg$/, "://zepto.scrolller.com/$1.mp4");
if (newsrc !== src)
return {
url: newsrc.replace(/:\/\/images\.scrolller\.com\/+([^/]+)\/+/, "://$1.scrolller.com/"),
video: true
};
}
if (domain === "cdn.rockislandauction.com") {
// thanks to anonymous for reporting:
// https://cdn.rockislandauction.com/dev_cdn/88/thumbs/1220.jpg?cachebust=2023-04-05T19:36:32.000Z
// https://cdn.rockislandauction.com/dev_cdn/88/1220.jpg?cachebust=2023-04-05T19:36:32.000Z
return src.replace(/(\/dev_cdn\/+[0-9]+\/+)thumbs\/+/, "$1");
}
// -- 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 505a0c4

Please sign in to comment.