From dece4b2530824c1f9efdfd5ba4b622979d18a1ad Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Tue, 24 Apr 2018 00:55:58 +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',