Add MD5 hashes to sauce linking.

This commit is contained in:
Nicolas Stepien 2012-02-05 01:15:58 +01:00
parent bd542eb4b5
commit 60d071cb39
3 changed files with 7 additions and 1 deletions

View File

@ -1992,6 +1992,7 @@
<ul>These variables will be replaced by the corresponding url:\
<li>$1: Thumbnail.</li>\
<li>$2: Full image.</li>\
<li>$3: MD5 hash.</li>\
</ul>\
<textarea name=sauces id=sauces></textarea>\
</div>\
@ -2604,6 +2605,8 @@
return img.src;
case '$2':
return img.parentNode.href;
case '$3':
return img.getAttribute('md5').replace(/\=+$/, '');
}
});
}

View File

@ -1,7 +1,7 @@
master
- Mayhem
Increase Sauce linking possibilites:
Thumbnails, full images.
Thumbnails, full images, MD5 hashes.
2.25.5
- Mayhem

View File

@ -1533,6 +1533,7 @@ options =
<ul>These variables will be replaced by the corresponding url:
<li>$1: Thumbnail.</li>
<li>$2: Full image.</li>
<li>$3: MD5 hash.</li>
</ul>
<textarea name=sauces id=sauces></textarea>
</div>
@ -2054,6 +2055,8 @@ sauce =
img.src
when '$2'
img.parentNode.href
when '$3'
img.getAttribute('md5').replace /\=+$/, ''
revealSpoilers =
init: ->