Fix cooldown on /q/.

This commit is contained in:
Nicolas Stepien 2012-08-13 17:22:31 +02:00
parent d42e4962f0
commit d50294cb5a
3 changed files with 4 additions and 2 deletions

View File

@ -2497,7 +2497,7 @@
location.pathname = "/" + g.BOARD + "/res/" + postID;
} else {
QR.cooldown.auto = QR.replies.length > 1;
QR.cooldown.set(/sage/i.test(reply.email) ? 60 : 30);
QR.cooldown.set(g.BOARD === 'q' || /sage/i.test(reply.email) ? 60 : 30);
if (Conf['Open Reply in New Tab'] && !g.REPLY && !QR.cooldown.auto) {
$.open("//boards.4chan.org/" + g.BOARD + "/res/" + threadID + "#p" + postID);
}

View File

@ -1,4 +1,6 @@
master
- Mayhem
Fix cooldown on /q/.
2.34.4
- Mayhem

View File

@ -1960,7 +1960,7 @@ 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 /sage/i.test reply.email then 60 else 30
QR.cooldown.set if g.BOARD is 'q' or /sage/i.test reply.email then 60 else 30
if Conf['Open Reply in New Tab'] && !g.REPLY && !QR.cooldown.auto
$.open "//boards.4chan.org/#{g.BOARD}/res/#{threadID}#p#{postID}"