Use full pictures for sauce
This commit is contained in:
parent
fdf205298b
commit
fc15e91749
@ -2115,10 +2115,9 @@
|
||||
return prefix.match(/(\w+)\./)[1];
|
||||
});
|
||||
return g.callbacks.push(function(root) {
|
||||
var i, link, prefix, span, suffix, thumb, _len, _ref, _results;
|
||||
if (root.className === 'inline' || !(thumb = $('img[md5]', root))) return;
|
||||
span = $('.filesize', root);
|
||||
suffix = thumb.src;
|
||||
var i, link, prefix, span, suffix, _len, _ref, _results;
|
||||
if (root.className === 'inline' || !(span = $('.filesize', root))) return;
|
||||
suffix = $('a', span).href;
|
||||
_ref = sauce.prefixes;
|
||||
_results = [];
|
||||
for (i = 0, _len = _ref.length; i < _len; i++) {
|
||||
|
||||
@ -1649,9 +1649,8 @@ sauce =
|
||||
sauce.prefixes = conf['flavors'].match /^[^#].+$/gm
|
||||
sauce.names = sauce.prefixes.map (prefix) -> prefix.match(/(\w+)\./)[1]
|
||||
g.callbacks.push (root) ->
|
||||
return if root.className is 'inline' or not thumb = $ 'img[md5]', root
|
||||
span = $ '.filesize', root
|
||||
suffix = thumb.src
|
||||
return if root.className is 'inline' or not span = $ '.filesize', root
|
||||
suffix = $('a', span).href
|
||||
for prefix, i in sauce.prefixes
|
||||
link = $.el 'a',
|
||||
textContent: sauce.names[i]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user