Close #1049
This commit is contained in:
parent
01f5355ba4
commit
1614acd005
@ -1,3 +1,4 @@
|
|||||||
|
- Added the option `Cooldown Prediction`, enabled by default.
|
||||||
- Added the option `Hide Unread Count at (0)`, disabled by default.
|
- Added the option `Hide Unread Count at (0)`, disabled by default.
|
||||||
|
|
||||||
### 3.1.4 - *2013-04-17*
|
### 3.1.4 - *2013-04-17*
|
||||||
|
|||||||
@ -61,6 +61,7 @@ Config =
|
|||||||
'Remember Spoiler': [false, 'Remember the spoiler state, instead of resetting after posting.']
|
'Remember Spoiler': [false, 'Remember the spoiler state, instead of resetting after posting.']
|
||||||
'Hide Original Post Form': [true, 'Hide the normal post form.']
|
'Hide Original Post Form': [true, 'Hide the normal post form.']
|
||||||
'Cooldown': [true, 'Prevent "flood detected" errors.']
|
'Cooldown': [true, 'Prevent "flood detected" errors.']
|
||||||
|
'Cooldown Prediction': [true, 'Decrease the cooldown time by taking into account upload speed. Disable it if it\'s inaccurate for you.']
|
||||||
'Quote Links':
|
'Quote Links':
|
||||||
'Quote Backlinks': [true, 'Add quote backlinks.']
|
'Quote Backlinks': [true, 'Add quote backlinks.']
|
||||||
'OP Backlinks': [true, 'Add backlinks to the OP.']
|
'OP Backlinks': [true, 'Add backlinks to the OP.']
|
||||||
|
|||||||
@ -239,7 +239,7 @@ QR =
|
|||||||
elapsed = Math.floor (now - start) / $.SECOND
|
elapsed = Math.floor (now - start) / $.SECOND
|
||||||
if elapsed >= 0 # clock changed since then?
|
if elapsed >= 0 # clock changed since then?
|
||||||
seconds = Math.max seconds, types[type] - elapsed
|
seconds = Math.max seconds, types[type] - elapsed
|
||||||
if hasFile and upSpd
|
if Conf['Cooldown Prediction'] and hasFile and upSpd
|
||||||
seconds -= Math.floor post.file.size / upSpd * upSpdAccuracy
|
seconds -= Math.floor post.file.size / upSpd * upSpdAccuracy
|
||||||
seconds = Math.max seconds, 0
|
seconds = Math.max seconds, 0
|
||||||
unless start <= now <= cooldown.timeout
|
unless start <= now <= cooldown.timeout
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user