Fix cooldown on /q/.
This commit is contained in:
parent
d42e4962f0
commit
d50294cb5a
@ -2497,7 +2497,7 @@
|
|||||||
location.pathname = "/" + g.BOARD + "/res/" + postID;
|
location.pathname = "/" + g.BOARD + "/res/" + postID;
|
||||||
} else {
|
} else {
|
||||||
QR.cooldown.auto = QR.replies.length > 1;
|
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) {
|
if (Conf['Open Reply in New Tab'] && !g.REPLY && !QR.cooldown.auto) {
|
||||||
$.open("//boards.4chan.org/" + g.BOARD + "/res/" + threadID + "#p" + postID);
|
$.open("//boards.4chan.org/" + g.BOARD + "/res/" + threadID + "#p" + postID);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
master
|
master
|
||||||
|
- Mayhem
|
||||||
|
Fix cooldown on /q/.
|
||||||
|
|
||||||
2.34.4
|
2.34.4
|
||||||
- Mayhem
|
- Mayhem
|
||||||
|
|||||||
@ -1960,7 +1960,7 @@ QR =
|
|||||||
else
|
else
|
||||||
# Enable auto-posting if we have stuff to post, disable it otherwise.
|
# Enable auto-posting if we have stuff to post, disable it otherwise.
|
||||||
QR.cooldown.auto = QR.replies.length > 1
|
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
|
if Conf['Open Reply in New Tab'] && !g.REPLY && !QR.cooldown.auto
|
||||||
$.open "//boards.4chan.org/#{g.BOARD}/res/#{threadID}#p#{postID}"
|
$.open "//boards.4chan.org/#{g.BOARD}/res/#{threadID}#p#{postID}"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user