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) {
|
||||
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) {
|
||||
case '%TURL':
|
||||
case '%turl':
|
||||
return "' + post.file.thumbURL + '";
|
||||
case '%URL':
|
||||
case '%url':
|
||||
return "' + post.file.URL + '";
|
||||
case '%MD5':
|
||||
case '%md5':
|
||||
return "' + encodeURIComponent(post.file.MD5) + '";
|
||||
case '%board':
|
||||
return "' + post.board + '";
|
||||
|
||||
@ -3054,13 +3054,13 @@ Sauce =
|
||||
name: 'Sauce'
|
||||
cb: @node
|
||||
createSauceLink: (link) ->
|
||||
link = link.replace /%(T?URL|MD5|board)/g, (parameter) ->
|
||||
link = link.replace /%(T?URL|MD5|board)/ig, (parameter) ->
|
||||
switch parameter
|
||||
when '%TURL'
|
||||
when '%TURL', '%turl'
|
||||
"' + post.file.thumbURL + '"
|
||||
when '%URL'
|
||||
when '%URL', '%url'
|
||||
"' + post.file.URL + '"
|
||||
when '%MD5'
|
||||
when '%MD5', '%md5'
|
||||
"' + encodeURIComponent(post.file.MD5) + '"
|
||||
when '%board'
|
||||
"' + post.board + '"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user