diff --git a/4chan_x.user.js b/4chan_x.user.js index 91e8e6a24..25c91a019 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2498,7 +2498,7 @@ return QR.ajax = $.ajax($.id('postForm').parentNode.action, callbacks, opts); }, response: function(html) { - var bs, doc, err, msg, persona, postID, reply, threadID, _, _ref, _ref1; + var bs, doc, err, msg, persona, postID, reply, sage, seconds, threadID, _, _ref, _ref1; doc = d.implementation.createHTMLDocument(''); doc.documentElement.innerHTML = html; if (doc.title === '4chan - Banned') { @@ -2547,7 +2547,9 @@ location.pathname = "/" + g.BOARD + "/res/" + postID; } else { QR.cooldown.auto = QR.replies.length > 1; - QR.cooldown.set(g.BOARD === 'q' || /sage/i.test(reply.email) ? 60 : 30); + sage = /sage/i.test(reply.email); + seconds = g.BOARD === 'q' ? reply.file ? 300 : sage ? 600 : 60 : sage ? 60 : 30; + QR.cooldown.set(seconds); if (Conf['Open Reply in New Tab'] && !g.REPLY && !QR.cooldown.auto) { $.open("//boards.4chan.org/" + g.BOARD + "/res/" + threadID + "#p" + postID); } diff --git a/script.coffee b/script.coffee index 9dbea41dd..16542976c 100644 --- a/script.coffee +++ b/script.coffee @@ -1999,7 +1999,21 @@ QR = else # Enable auto-posting if we have stuff to post, disable it otherwise. QR.cooldown.auto = QR.replies.length > 1 - QR.cooldown.set if g.BOARD is 'q' or /sage/i.test reply.email then 60 else 30 + sage = /sage/i.test reply.email + seconds = + if g.BOARD is 'q' + # that makes no sense.png + if reply.file + 300 + else if sage + 600 + else + 60 + else if sage + 60 + else + 30 + QR.cooldown.set seconds if Conf['Open Reply in New Tab'] and !g.REPLY and !QR.cooldown.auto $.open "//boards.4chan.org/#{g.BOARD}/res/#{threadID}#p#{postID}"