From 7e6828bd6326ee0db67f0e5e3713216d2b8103d2 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Wed, 11 Sep 2024 05:16:53 +0200 Subject: [PATCH] Added support for reddituploads.com. Changed default sorting to 'new'. --- config/default.js | 2 +- src/dissectLink.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/default.js b/config/default.js index 417d167..4671ddc 100644 --- a/config/default.js +++ b/config/default.js @@ -26,7 +26,7 @@ module.exports = { slashSubstitute: '#', }, fetch: { - sort: 'top', + sort: 'new', limit: 1000, avoidDuplicates: true }, diff --git a/src/dissectLink.js b/src/dissectLink.js index 4903387..b9629ad 100644 --- a/src/dissectLink.js +++ b/src/dissectLink.js @@ -10,6 +10,10 @@ const hosts = [{ method: 'reddit', label: 'reddit', pattern: new urlPattern('http(s)\\://i.redd.it/:id.:ext') +}, { + method: 'reddit', + label: 'reddit', + pattern: new urlPattern('https\\://i.reddituploads.com/:id?(fit=:fit)(&h=:height)(&w=:width)(&s=:signature)') }, { method: 'imgurImage', label: 'imgur',