diff --git a/4chan_x.user.js b/4chan_x.user.js index 200fdf542..fb3cefd07 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1183,7 +1183,9 @@ return cooldown.start(); } }); - return $('.postarea form').action += '?cooldown'; + if (g.REPLY) { + return $('.postarea form').action += '?cooldown'; + } }, start: function() { var submit, _i, _len, _ref; diff --git a/script.coffee b/script.coffee index 800940f57..264b50a64 100644 --- a/script.coffee +++ b/script.coffee @@ -938,7 +938,7 @@ cooldown = $.set g.BOARD+'/cooldown', time if $.get(g.BOARD+'/cooldown', 0) < time cooldown.start() if Date.now() < $.get g.BOARD+'/cooldown', 0 $.bind window, 'storage', (e) -> cooldown.start() if e.key is "#{NAMESPACE}#{g.BOARD}/cooldown" - $('.postarea form').action += '?cooldown' + $('.postarea form').action += '?cooldown' if g.REPLY start: -> cooldown.duration = Math.ceil ($.get(g.BOARD+'/cooldown', 0) - Date.now()) / 1000