From 2da007c2915382539db2cb5414c68d76651f15a8 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 31 Mar 2019 22:55:42 -0700 Subject: [PATCH] Show info relating to April 2019 event. #2266 --- src/General/Build/PostInfo.html | 2 ++ src/Posting/QR.coffee | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/General/Build/PostInfo.html b/src/General/Build/PostInfo.html index 9133a5e43..5130fff4e 100644 --- a/src/General/Build/PostInfo.html +++ b/src/General/Build/PostInfo.html @@ -5,6 +5,7 @@ ?{email}{} ${name} ?{tripcode}{ ${tripcode}} + ?{o.xa19s}{} ?{pass}{ } ?{capcode}{ ## ${capcode}} ?{email}{} @@ -18,6 +19,7 @@ No. ${ID} + ?{o.isReply}{} ?{o.isSticky}{ Sticky} ?{o.isClosed && !o.isArchived}{ Closed} ?{o.isArchived}{ Archived} diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 4412dd876..0f0e185cb 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -846,7 +846,12 @@ QR = QR.cleanNotifications() if Conf['Posting Success Notifications'] - QR.notifications.push new Notice 'success', h1.textContent, 5 + {textContent} = h1 + timeout = 5 + if (xa19 = resDoc.firstChild.textContent.match(/xa19:(.*):xa19/)) + textContent += " (score/perks: #{xa19[1]})" + timeout = 20 + QR.notifications.push new Notice 'success', textContent, timeout QR.cooldown.add threadID, postID