diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index 6fbe44f6d..369aaf496 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -206,8 +206,8 @@ Gallery = if g.DEAD or post.isDead or post.file.isDead return - # XXX CORS for images.4chan.org WHEN? - $.ajax "//api.4chan.org/#{post.board}/res/#{post.thread}.json", onload: -> + # XXX CORS for i.4cdn.org WHEN? + $.ajax "//a.4cdn.org/#{post.board}/res/#{post.thread}.json", onload: -> return if @status isnt 200 i = 0 {posts} = @response diff --git a/src/Miscellaneous/Banner.coffee b/src/Miscellaneous/Banner.coffee index 95f64c9b6..f1c05d0dd 100644 --- a/src/Miscellaneous/Banner.coffee +++ b/src/Miscellaneous/Banner.coffee @@ -35,7 +35,7 @@ Banner = -> type = Object.keys(types)[Math.floor 3 * Math.random()] num = Math.floor types[type] * Math.random() - @src = "//static.4chan.org/image/title/#{num}.#{type}" + @src = "//s.4cdn.org/image/title/#{num}.#{type}" click: (e) -> if e.ctrlKey @@ -86,4 +86,4 @@ Banner = $.set string, cachedTest $.set string2, cachedTest - child \ No newline at end of file + child diff --git a/src/Miscellaneous/ExpandComment.coffee b/src/Miscellaneous/ExpandComment.coffee index cb9223ae9..b6f624de9 100755 --- a/src/Miscellaneous/ExpandComment.coffee +++ b/src/Miscellaneous/ExpandComment.coffee @@ -23,7 +23,7 @@ ExpandComment = return return unless a = $ '.abbr > a', post.nodes.comment a.textContent = "Post No.#{post} Loading..." - $.cache "//api.4chan.org#{a.pathname}.json", -> ExpandComment.parse @, a, post + $.cache "//a.4cdn.org#{a.pathname}.json", -> ExpandComment.parse @, a, post contract: (post) -> return unless post.nodes.shortComment a = $ '.abbr > a', post.nodes.shortComment diff --git a/src/Miscellaneous/InfiniScroll.coffee b/src/Miscellaneous/InfiniScroll.coffee index 4b3c55ab0..cd37c6692 100644 --- a/src/Miscellaneous/InfiniScroll.coffee +++ b/src/Miscellaneous/InfiniScroll.coffee @@ -22,7 +22,7 @@ InfiniScroll = new Notice 'info', "Fetching next page.", 2 InfiniScroll.isFetching = true - url = "//api.4chan.org/#{g.BOARD}/catalog.json" + url = "//a.4cdn.org/#{g.BOARD}/catalog.json" $.ajax url, onloadend: InfiniScroll.cb.load, whenModified: true @@ -136,4 +136,4 @@ InfiniScroll = InfiniScroll.cache = new String @response InfiniScroll.cache.time = Date.now() - InfiniScroll.parse @response \ No newline at end of file + InfiniScroll.parse @response