Fix cooldown on /q/.
This commit is contained in:
parent
d42e4962f0
commit
d50294cb5a
@ -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);
|
||||
}
|
||||
|
||||
@ -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}"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user