fix new tab issue in Tampermonkey
This commit is contained in:
parent
6f31941cdc
commit
991e08649c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user