From 991e08649cf12bf9993743af37c44a74c6d7bea5 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 17 May 2014 21:54:49 -0700 Subject: [PATCH] fix new tab issue in Tampermonkey --- src/Posting/QR.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 96634a444..eaa72671a 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -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