fix sauces
This commit is contained in:
parent
237b2f2b49
commit
b12145c879
@ -2772,7 +2772,7 @@
|
||||
createSauceLink: function(link) {
|
||||
var domain, el, href;
|
||||
domain = link.match(/(\w+)\.\w+\//)[1];
|
||||
href = link.replace(/(\d)/g, function(parameter) {
|
||||
href = link.replace(/(\$\d)/g, function(parameter) {
|
||||
switch (parameter) {
|
||||
case '$1':
|
||||
return "http://thumbs.4chan.org' + img.pathname.replace(/src(\\/\\d+).+$/, 'thumb$1s.jpg') + '";
|
||||
|
||||
@ -2349,7 +2349,7 @@ Sauce =
|
||||
|
||||
createSauceLink: (link) ->
|
||||
domain = link.match(/(\w+)\.\w+\//)[1]
|
||||
href = link.replace /(\d)/g, (parameter) ->
|
||||
href = link.replace /(\$\d)/g, (parameter) ->
|
||||
switch parameter
|
||||
when '$1'
|
||||
"http://thumbs.4chan.org' + img.pathname.replace(/src(\\/\\d+).+$/, 'thumb$1s.jpg') + '"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user