Add MD5 hashes to sauce linking.
This commit is contained in:
parent
bd542eb4b5
commit
60d071cb39
@ -1992,6 +1992,7 @@
|
|||||||
<ul>These variables will be replaced by the corresponding url:\
|
<ul>These variables will be replaced by the corresponding url:\
|
||||||
<li>$1: Thumbnail.</li>\
|
<li>$1: Thumbnail.</li>\
|
||||||
<li>$2: Full image.</li>\
|
<li>$2: Full image.</li>\
|
||||||
|
<li>$3: MD5 hash.</li>\
|
||||||
</ul>\
|
</ul>\
|
||||||
<textarea name=sauces id=sauces></textarea>\
|
<textarea name=sauces id=sauces></textarea>\
|
||||||
</div>\
|
</div>\
|
||||||
@ -2604,6 +2605,8 @@
|
|||||||
return img.src;
|
return img.src;
|
||||||
case '$2':
|
case '$2':
|
||||||
return img.parentNode.href;
|
return img.parentNode.href;
|
||||||
|
case '$3':
|
||||||
|
return img.getAttribute('md5').replace(/\=+$/, '');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
master
|
master
|
||||||
- Mayhem
|
- Mayhem
|
||||||
Increase Sauce linking possibilites:
|
Increase Sauce linking possibilites:
|
||||||
Thumbnails, full images.
|
Thumbnails, full images, MD5 hashes.
|
||||||
|
|
||||||
2.25.5
|
2.25.5
|
||||||
- Mayhem
|
- Mayhem
|
||||||
|
|||||||
@ -1533,6 +1533,7 @@ options =
|
|||||||
<ul>These variables will be replaced by the corresponding url:
|
<ul>These variables will be replaced by the corresponding url:
|
||||||
<li>$1: Thumbnail.</li>
|
<li>$1: Thumbnail.</li>
|
||||||
<li>$2: Full image.</li>
|
<li>$2: Full image.</li>
|
||||||
|
<li>$3: MD5 hash.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<textarea name=sauces id=sauces></textarea>
|
<textarea name=sauces id=sauces></textarea>
|
||||||
</div>
|
</div>
|
||||||
@ -2054,6 +2055,8 @@ sauce =
|
|||||||
img.src
|
img.src
|
||||||
when '$2'
|
when '$2'
|
||||||
img.parentNode.href
|
img.parentNode.href
|
||||||
|
when '$3'
|
||||||
|
img.getAttribute('md5').replace /\=+$/, ''
|
||||||
|
|
||||||
revealSpoilers =
|
revealSpoilers =
|
||||||
init: ->
|
init: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user