Fix Thread Watcher links on Tinyboard.

This commit is contained in:
ccd0 2018-01-24 12:11:00 -08:00
parent d351eaeb5a
commit 1ea6f14384
3 changed files with 7 additions and 1 deletions

View File

@ -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'

View File

@ -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_"]'

View File

@ -1,6 +1,9 @@
SW.yotsuba =
isOPContainerThread: false
urls:
thread: ({boardID, threadID}) -> "#{boardID}/thread/#{threadID}"
selectors:
board: '.board'
thread: '.thread'