From ea742de5d2a50439429b8ee42717689e1b401008 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 5 Feb 2012 01:33:26 +0100 Subject: [PATCH] Add 'View Same' MD5 flavor examples. Match the domain, not subdomain. --- 4chan_x.user.js | 6 +++--- script.coffee | 10 +++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 2e87b86a0..58309cfd8 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -141,7 +141,7 @@ filesize: '', md5: '' }, - sauces: ['http://iqdb.org/?url=$1', 'http://google.com/searchbyimage?image_url=$1', '#http://tineye.com/search?url=$1', '#http://saucenao.com/search.php?db=999&url=$1', '#http://3d.iqdb.org/?url=$1', '#http://regex.info/exif.cgi?imgurl=$2', '#http://imgur.com/upload?url=$2', '#http://ompldr.org/upload?url1=$2'].join('\n'), + sauces: ['http://iqdb.org/?url=$1', 'http://www.google.com/searchbyimage?image_url=$1', '#http://tineye.com/search?url=$1', '#http://saucenao.com/search.php?db=999&url=$1', '#http://3d.iqdb.org/?url=$1', '#http://regex.info/exif.cgi?imgurl=$2', '# uploaders:', '#http://imgur.com/upload?url=$2', '#http://ompldr.org/upload?url1=$2', '# "View Same" in archives:', '#http://archive.foolz.us/a/image/$3/', '#http://archive.installgentoo.net/g/image/$3'].join('\n'), time: '%m/%d/%y(%a)%H:%M', backlink: '>>%id', favicon: 'ferongr', @@ -2579,7 +2579,7 @@ this.links = []; for (_i = 0, _len = links.length; _i < _len; _i++) { link = links[_i]; - this.links.push([link, link.match(/(\w+)\./)[1]]); + this.links.push([link, link.match(/(\w+)\.\w+\//)[1]]); } return g.callbacks.push(this.node); }, @@ -3837,7 +3837,7 @@ img[md5], img[md5] + img {\ width: 100%;\ }\ #sauces {\ - height: 350px;\ + height: 320px;\ }\ \ #updater {\ diff --git a/script.coffee b/script.coffee index 490d44a46..8994a342f 100644 --- a/script.coffee +++ b/script.coffee @@ -59,13 +59,17 @@ config = md5: '' sauces: [ 'http://iqdb.org/?url=$1' - 'http://google.com/searchbyimage?image_url=$1' + 'http://www.google.com/searchbyimage?image_url=$1' '#http://tineye.com/search?url=$1' '#http://saucenao.com/search.php?db=999&url=$1' '#http://3d.iqdb.org/?url=$1' '#http://regex.info/exif.cgi?imgurl=$2' + '# uploaders:' '#http://imgur.com/upload?url=$2' '#http://ompldr.org/upload?url1=$2' + '# "View Same" in archives:' + '#http://archive.foolz.us/a/image/$3/' + '#http://archive.installgentoo.net/g/image/$3' ].join '\n' time: '%m/%d/%y(%a)%H:%M' backlink: '>>%id' @@ -2036,7 +2040,7 @@ sauce = links = conf['sauces'].match /^[^#].+$/gm @links = [] for link in links - @links.push [link, link.match(/(\w+)\./)[1]] + @links.push [link, link.match(/(\w+)\.\w+\//)[1]] g.callbacks.push @node node: (root) -> return if root.className is 'inline' or not span = $ '.filesize', root @@ -3082,7 +3086,7 @@ img[md5], img[md5] + img { width: 100%; } #sauces { - height: 350px; + height: 320px; } #updater {