Sauce will now recognize Pixiv, DeviantArt, Imgur, Flickr, and Facebook filenames and link to the page the image came from. #1183

This commit is contained in:
ccd0 2017-01-21 21:59:45 -08:00
parent b600f258d8
commit 1e21b67d0e
2 changed files with 9 additions and 0 deletions

View File

@ -413,6 +413,8 @@ Settings =
if compareString < '00001.00013.00005.00000'
if data['sauces']?
set 'sauces', data['sauces'].replace(/^(#?\s*)http:\/\/regex\.info\/exif\.cgi/mg, '$1http://exif.regex.info/exif.cgi')
if (known = Config['sauces'].match /# Known filename formats:(?:\n.+)*/)
set 'sauces', data['sauces'] + '\n\n' + known[0]
changes
loadSettings: (data, cb) ->

View File

@ -717,6 +717,13 @@ Config =
MD5: ''
sauces: """
# Known filename formats:
http://www.pixiv.net/member_illust.php?mode=medium&illust_id=%$1;regexp:/^(\\d+)_p\\d+/
//%$1.deviantart.com/gallery/#/d%$2;regexp:/^\\w+_by_(\\w+)-d([\\da-z]+)/
//imgur.com/%$1;regexp:/^(?![a-zA-Z][a-z]{6})(?![A-Z]{7})(?!\\d{7})([\\da-zA-Z]{7})(?: \\(\\d+\\))?\\.\\w+$/
http://flickr.com/photo.gne?id=%$1;regexp:/^(\\d+)_[\\da-f]{10}(?:_\\w)*\\b/
https://www.facebook.com/photo.php?fbid=%$1;regexp:/^\\d+_(\\d+)_\\d+_[no]\\b/
# Reverse image search:
https://www.google.com/searchbyimage?image_url=%IMG&safe=off
https://www.yandex.com/images/search?rpt=imageview&img_url=%IMG