fix new tab issue in Tampermonkey

This commit is contained in:
ccd0 2014-05-17 21:54:49 -07:00
parent 6f31941cdc
commit 991e08649c

View File

@ -858,9 +858,9 @@ QR =
QR.cooldown.set {req, post, isReply, threadID}
URL = if threadID is postID # new thread
"/#{g.BOARD}/thread/#{threadID}"
"#{window.location.origin}/#{g.BOARD}/thread/#{threadID}"
else if g.VIEW is 'index' and !QR.cooldown.auto and Conf['Open Post in New Tab'] # replying from the index
"/#{g.BOARD}/thread/#{threadID}#p#{postID}"
"#{window.location.origin}/#{g.BOARD}/thread/#{threadID}#p#{postID}"
if URL
if Conf['Open Post in New Tab']
$.open URL