From cdc137c0280a1b5f5b63679364dfdb38cbdfb715 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 21 May 2011 17:38:48 +0200 Subject: [PATCH 1/2] Remove alert and fix Paypal link. --- 4chan_x.js | 3 +-- script.coffee | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index 2ca70e92c..adec1a734 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -921,7 +921,7 @@ var dialog, hiddenNum, hiddenThreads, html, input, _i, _len, _ref; hiddenThreads = $.getValue("hiddenThreads/" + g.BOARD + "/", {}); hiddenNum = Object.keys(g.hiddenReplies).length + Object.keys(hiddenThreads).length; - html = "
Options X



Sauce flavors
Donate
support throd | github | uso
"; + html = "
Options X



Sauce flavors
Donate
support throd | github | uso
"; dialog = ui.dialog('options', { top: '25%', left: '25%' @@ -1052,7 +1052,6 @@ if ($.config('Cooldown')) { if (qr.cooldown()) { e.preventDefault(); - alert('Stop posting so often!'); if (isQR) { $('#error').textContent = 'Stop posting so often!'; } diff --git a/script.coffee b/script.coffee index 02d218ec7..1332b2af1 100644 --- a/script.coffee +++ b/script.coffee @@ -710,7 +710,7 @@ options =
Sauce flavors
-
Donate
+
Donate
support throd | github | uso
@@ -818,7 +818,6 @@ qr = # check if we've posted on this board in another tab if qr.cooldown() e.preventDefault() - alert 'Stop posting so often!' if isQR $('#error').textContent = 'Stop posting so often!' From a7670c192d89a9576c18385723b2b1aa48202282 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 21 May 2011 23:01:17 +0200 Subject: [PATCH 2/2] 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