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}"
|
||||
|
||||
link = $.el 'a',
|
||||
href: "/#{boardID}/thread/#{threadID}"
|
||||
href: "/#{Site.urls.thread({boardID, threadID})}"
|
||||
title: excerpt
|
||||
className: 'watcher-link'
|
||||
|
||||
|
||||
@ -47,6 +47,9 @@ SW.tinyboard =
|
||||
return true if /\bvar configRoot=".*?"/.test(script.textContent)
|
||||
false
|
||||
|
||||
urls:
|
||||
thread: ({boardID, threadID}) -> "#{boardID}/res/#{threadID}.html"
|
||||
|
||||
selectors:
|
||||
board: 'form[name="postcontrols"]'
|
||||
thread: 'div[id^="thread_"]'
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
SW.yotsuba =
|
||||
isOPContainerThread: false
|
||||
|
||||
urls:
|
||||
thread: ({boardID, threadID}) -> "#{boardID}/thread/#{threadID}"
|
||||
|
||||
selectors:
|
||||
board: '.board'
|
||||
thread: '.thread'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user