diff --git a/src/site/SW.tinyboard.coffee b/src/site/SW.tinyboard.coffee index 412724b39..6e9f6fecc 100644 --- a/src/site/SW.tinyboard.coffee +++ b/src/site/SW.tinyboard.coffee @@ -63,6 +63,9 @@ SW.tinyboard = threadsListJSON: ({siteID, boardID}) -> root = Conf['siteProperties'][siteID]?.root if root then "#{root}#{boardID}/threads.json" else '' + catalogJSON: ({siteID, boardID}) -> + root = Conf['siteProperties'][siteID]?.root + if root then "#{root}#{boardID}/catalog.json" else '' selectors: board: 'form[name="postcontrols"]' diff --git a/src/site/SW.yotsuba.coffee b/src/site/SW.yotsuba.coffee index b1c3a0d15..2aa84bba3 100644 --- a/src/site/SW.yotsuba.coffee +++ b/src/site/SW.yotsuba.coffee @@ -6,6 +6,7 @@ SW.yotsuba = threadJSON: ({boardID, threadID}) -> "#{location.protocol}//a.4cdn.org/#{boardID}/thread/#{threadID}.json" threadsListJSON: ({boardID}) -> "#{location.protocol}//a.4cdn.org/#{boardID}/threads.json" archiveListJSON: ({boardID}) -> if BoardConfig.isArchived(boardID) then "#{location.protocol}//a.4cdn.org/#{boardID}/archive.json" else '' + catalogJSON: ({boardID}) -> "#{location.protocol}//a.4cdn.org/#{boardID}/catalog.json" selectors: board: '.board'