Added optional URL query to all external hosts in link dissection.

This commit is contained in:
ThePendulum 2018-07-07 04:07:07 +02:00
parent 3c9675ea85
commit f025aaa370
1 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@ const hosts = [{
}, {
method: 'redditImage',
label: 'reddit',
pattern: new UrlPattern('http(s)\\://i.redd.it/:id.:ext'),
pattern: new UrlPattern('http(s)\\://i.redd.it/:id.:ext(?*)'),
}, {
method: 'redditImage',
label: 'reddit',
@ -17,7 +17,7 @@ const hosts = [{
}, {
method: 'redditVideo',
label: 'reddit',
pattern: new UrlPattern('http(s)\\://v.redd.it/:id'),
pattern: new UrlPattern('http(s)\\://v.redd.it/:id(?*)'),
}, {
method: 'imgurImage',
label: 'imgur',
@ -25,23 +25,23 @@ const hosts = [{
}, {
method: 'imgurAlbum',
label: 'imgur',
pattern: new UrlPattern('http(s)\\://(:subdomain.)imgur.com/:type/:id(#:focus)'),
pattern: new UrlPattern('http(s)\\://(:subdomain.)imgur.com/:type/:id(#:focus)(?*)'),
}, {
method: 'vidbleImage',
label: 'vidble',
pattern: new UrlPattern('http(s)\\://(www.)vidble.com/(show/):id(.:ext)'),
pattern: new UrlPattern('http(s)\\://(www.)vidble.com/(show/):id(.:ext)(?*)'),
}, {
method: 'vidbleVideo',
label: 'vidble',
pattern: new UrlPattern('http(s)\\://(www.)vidble.com/watch?v=:id'),
pattern: new UrlPattern('http(s)\\://(www.)vidble.com/watch?v=:id(?*)'),
}, {
method: 'vidbleAlbum',
label: 'vidble',
pattern: new UrlPattern('http(s)\\://(www.)vidble.com/album/:id'),
pattern: new UrlPattern('http(s)\\://(www.)vidble.com/album/:id(?*)'),
}, {
method: 'gfycat',
label: 'gfycat',
pattern: new UrlPattern('http(s)\\://(:server.)gfycat.com/(gifs/detail/)(:id-mobile)(:id-size_restricted)(:id)(.:ext)'),
pattern: new UrlPattern('http(s)\\://(:server.)gfycat.com/(gifs/detail/)(:id-mobile)(:id-size_restricted)(:id)(.:ext)(?*)'),
}, {
method: 'eroshareAlbum',
label: 'eroshare',