Change is2.4chan.org image links to i.4cdn.org also.
This commit is contained in:
parent
86ce0af652
commit
8fbf8a323c
@ -7,7 +7,7 @@ ImageHost =
|
|||||||
|
|
||||||
node: ->
|
node: ->
|
||||||
return if @isClone
|
return if @isClone
|
||||||
if @file and (m = @file.url.match /^https?:\/\/is\.4chan\.org\/(.*)$/)
|
if @file and (m = @file.url.match /^https?:\/\/is\d*\.4chan\.org\/(.*)$/)
|
||||||
@file.link.hostname = 'i.4cdn.org'
|
@file.link.hostname = 'i.4cdn.org'
|
||||||
@file.thumbLink.hostname = 'i.4cdn.org' if @file.thumbLink
|
@file.thumbLink.hostname = 'i.4cdn.org' if @file.thumbLink
|
||||||
@file.url = @file.link.href
|
@file.url = @file.link.href
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user