This will work until I figure out what Mayhem was doing.
This commit is contained in:
parent
4f8206f343
commit
a6b7dc2df8
@ -4652,13 +4652,16 @@
|
|||||||
},
|
},
|
||||||
createSauceLink: function(link) {
|
createSauceLink: function(link) {
|
||||||
var m, text;
|
var m, text;
|
||||||
link = link.replace(/%(T?URL|MD5|board)/g, function(parameter) {
|
link = link.replace(/%(T?URL|MD5|board)/ig, function(parameter) {
|
||||||
switch (parameter) {
|
switch (parameter) {
|
||||||
case '%TURL':
|
case '%TURL':
|
||||||
|
case '%turl':
|
||||||
return "' + post.file.thumbURL + '";
|
return "' + post.file.thumbURL + '";
|
||||||
case '%URL':
|
case '%URL':
|
||||||
|
case '%url':
|
||||||
return "' + post.file.URL + '";
|
return "' + post.file.URL + '";
|
||||||
case '%MD5':
|
case '%MD5':
|
||||||
|
case '%md5':
|
||||||
return "' + encodeURIComponent(post.file.MD5) + '";
|
return "' + encodeURIComponent(post.file.MD5) + '";
|
||||||
case '%board':
|
case '%board':
|
||||||
return "' + post.board + '";
|
return "' + post.board + '";
|
||||||
|
|||||||
@ -3054,13 +3054,13 @@ Sauce =
|
|||||||
name: 'Sauce'
|
name: 'Sauce'
|
||||||
cb: @node
|
cb: @node
|
||||||
createSauceLink: (link) ->
|
createSauceLink: (link) ->
|
||||||
link = link.replace /%(T?URL|MD5|board)/g, (parameter) ->
|
link = link.replace /%(T?URL|MD5|board)/ig, (parameter) ->
|
||||||
switch parameter
|
switch parameter
|
||||||
when '%TURL'
|
when '%TURL', '%turl'
|
||||||
"' + post.file.thumbURL + '"
|
"' + post.file.thumbURL + '"
|
||||||
when '%URL'
|
when '%URL', '%url'
|
||||||
"' + post.file.URL + '"
|
"' + post.file.URL + '"
|
||||||
when '%MD5'
|
when '%MD5', '%md5'
|
||||||
"' + encodeURIComponent(post.file.MD5) + '"
|
"' + encodeURIComponent(post.file.MD5) + '"
|
||||||
when '%board'
|
when '%board'
|
||||||
"' + post.board + '"
|
"' + post.board + '"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user