Fix Thread Watcher links on Tinyboard.
This commit is contained in:
parent
d351eaeb5a
commit
1ea6f14384
@ -304,7 +304,7 @@ ThreadWatcher =
|
|||||||
excerpt or= "/#{boardID}/ - No.#{threadID}"
|
excerpt or= "/#{boardID}/ - No.#{threadID}"
|
||||||
|
|
||||||
link = $.el 'a',
|
link = $.el 'a',
|
||||||
href: "/#{boardID}/thread/#{threadID}"
|
href: "/#{Site.urls.thread({boardID, threadID})}"
|
||||||
title: excerpt
|
title: excerpt
|
||||||
className: 'watcher-link'
|
className: 'watcher-link'
|
||||||
|
|
||||||
|
|||||||
@ -47,6 +47,9 @@ SW.tinyboard =
|
|||||||
return true if /\bvar configRoot=".*?"/.test(script.textContent)
|
return true if /\bvar configRoot=".*?"/.test(script.textContent)
|
||||||
false
|
false
|
||||||
|
|
||||||
|
urls:
|
||||||
|
thread: ({boardID, threadID}) -> "#{boardID}/res/#{threadID}.html"
|
||||||
|
|
||||||
selectors:
|
selectors:
|
||||||
board: 'form[name="postcontrols"]'
|
board: 'form[name="postcontrols"]'
|
||||||
thread: 'div[id^="thread_"]'
|
thread: 'div[id^="thread_"]'
|
||||||
|
|||||||
@ -1,6 +1,9 @@
|
|||||||
SW.yotsuba =
|
SW.yotsuba =
|
||||||
isOPContainerThread: false
|
isOPContainerThread: false
|
||||||
|
|
||||||
|
urls:
|
||||||
|
thread: ({boardID, threadID}) -> "#{boardID}/thread/#{threadID}"
|
||||||
|
|
||||||
selectors:
|
selectors:
|
||||||
board: '.board'
|
board: '.board'
|
||||||
thread: '.thread'
|
thread: '.thread'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user