Add catalog JSON URL.
This commit is contained in:
parent
725d7d458e
commit
e98fed9e5f
@ -63,6 +63,9 @@ SW.tinyboard =
|
|||||||
threadsListJSON: ({siteID, boardID}) ->
|
threadsListJSON: ({siteID, boardID}) ->
|
||||||
root = Conf['siteProperties'][siteID]?.root
|
root = Conf['siteProperties'][siteID]?.root
|
||||||
if root then "#{root}#{boardID}/threads.json" else ''
|
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:
|
selectors:
|
||||||
board: 'form[name="postcontrols"]'
|
board: 'form[name="postcontrols"]'
|
||||||
|
|||||||
@ -6,6 +6,7 @@ SW.yotsuba =
|
|||||||
threadJSON: ({boardID, threadID}) -> "#{location.protocol}//a.4cdn.org/#{boardID}/thread/#{threadID}.json"
|
threadJSON: ({boardID, threadID}) -> "#{location.protocol}//a.4cdn.org/#{boardID}/thread/#{threadID}.json"
|
||||||
threadsListJSON: ({boardID}) -> "#{location.protocol}//a.4cdn.org/#{boardID}/threads.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 ''
|
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:
|
selectors:
|
||||||
board: '.board'
|
board: '.board'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user