From a7670c192d89a9576c18385723b2b1aa48202282 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 21 May 2011 23:01:17 +0200 Subject: [PATCH] Alert only if posting with the normal post form. --- 4chan_x.js | 2 ++ script.coffee | 2 ++ 2 files changed, 4 insertions(+) diff --git a/4chan_x.js b/4chan_x.js index adec1a734..bcd9b737d 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1054,6 +1054,8 @@ e.preventDefault(); if (isQR) { $('#error').textContent = 'Stop posting so often!'; + } else { + alert('Stop posting so often!'); } return; } diff --git a/script.coffee b/script.coffee index 1332b2af1..1bf3e2a4a 100644 --- a/script.coffee +++ b/script.coffee @@ -821,6 +821,8 @@ qr = if isQR $('#error').textContent = 'Stop posting so often!' + else + alert 'Stop posting so often!' return