watch has a superior priority to noko
This commit is contained in:
parent
4bd116d2b3
commit
2c856a9ad5
@ -1412,12 +1412,11 @@
|
|||||||
sage = /sage/.test(search);
|
sage = /sage/.test(search);
|
||||||
watch = /watch/.test(search);
|
watch = /watch/.test(search);
|
||||||
url = "http://boards.4chan.org/" + g.BOARD;
|
url = "http://boards.4chan.org/" + g.BOARD;
|
||||||
if (noko) {
|
if (watch && thread === '0') {
|
||||||
|
url += "/res/" + id + "?watch";
|
||||||
|
} else if (noko) {
|
||||||
url += '/res/';
|
url += '/res/';
|
||||||
url += thread === 0 ? id : thread;
|
url += thread === '0' ? id : thread;
|
||||||
if (watch) {
|
|
||||||
url += '?watch';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (cooldown) {
|
if (cooldown) {
|
||||||
duration = Date.now() + (sage ? 60 : 30) * 1000;
|
duration = Date.now() + (sage ? 60 : 30) * 1000;
|
||||||
|
|||||||
@ -1138,11 +1138,11 @@ qr =
|
|||||||
|
|
||||||
url = "http://boards.4chan.org/#{g.BOARD}"
|
url = "http://boards.4chan.org/#{g.BOARD}"
|
||||||
|
|
||||||
if noko
|
if watch and thread is '0'
|
||||||
|
url += "/res/#{id}?watch"
|
||||||
|
else if noko
|
||||||
url += '/res/'
|
url += '/res/'
|
||||||
url += if thread is 0 then id else thread
|
url += if thread is '0' then id else thread
|
||||||
if watch
|
|
||||||
url += '?watch'
|
|
||||||
if cooldown
|
if cooldown
|
||||||
duration = Date.now() + (if sage then 60 else 30) * 1000
|
duration = Date.now() + (if sage then 60 else 30) * 1000
|
||||||
url += '?cooldown=' + duration
|
url += '?cooldown=' + duration
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user