tweak auto watch reply
This commit is contained in:
parent
4edf28ceb2
commit
eb59ecd63d
19
4chan_x.js
19
4chan_x.js
@ -71,6 +71,7 @@
|
|||||||
'404 Redirect': [true, 'Redirect dead threads'],
|
'404 Redirect': [true, 'Redirect dead threads'],
|
||||||
'Anonymize': [false, 'Make everybody anonymous'],
|
'Anonymize': [false, 'Make everybody anonymous'],
|
||||||
'Auto Watch': [true, 'Automatically watch threads that you start'],
|
'Auto Watch': [true, 'Automatically watch threads that you start'],
|
||||||
|
'Auto Watch Reply': [false, 'Automatically watch threads that you reply to'],
|
||||||
'Comment Expansion': [true, 'Expand too long comments'],
|
'Comment Expansion': [true, 'Expand too long comments'],
|
||||||
'Cooldown': [false, 'Prevent \'flood detected\' errors (buggy)'],
|
'Cooldown': [false, 'Prevent \'flood detected\' errors (buggy)'],
|
||||||
'Image Auto-Gif': [false, 'Animate gif thumbnails'],
|
'Image Auto-Gif': [false, 'Animate gif thumbnails'],
|
||||||
@ -91,8 +92,7 @@
|
|||||||
'Thread Navigation': [true, 'Navigate to previous / next thread'],
|
'Thread Navigation': [true, 'Navigate to previous / next thread'],
|
||||||
'Thread Updater': [true, 'Update threads'],
|
'Thread Updater': [true, 'Update threads'],
|
||||||
'Thread Watcher': [true, 'Bookmark threads'],
|
'Thread Watcher': [true, 'Bookmark threads'],
|
||||||
'Unread Count': [true, 'Show unread post count in tab title'],
|
'Unread Count': [true, 'Show unread post count in tab title']
|
||||||
'Watch on Reply': [false, 'Automatically watch threads you reply to']
|
|
||||||
},
|
},
|
||||||
textarea: {
|
textarea: {
|
||||||
flavors: ['http://regex.info/exif.cgi?url=', 'http://iqdb.org/?url=', 'http://tineye.com/search?url=', '#http://saucenao.com/search.php?db=999&url='].join('\n')
|
flavors: ['http://regex.info/exif.cgi?url=', 'http://iqdb.org/?url=', 'http://tineye.com/search?url=', '#http://saucenao.com/search.php?db=999&url='].join('\n')
|
||||||
@ -1023,20 +1023,17 @@
|
|||||||
return _results;
|
return _results;
|
||||||
},
|
},
|
||||||
submit: function(e) {
|
submit: function(e) {
|
||||||
var form, isQR, recaptcha, span, thread, threads, value, _i, _len;
|
var form, id, isQR, op, recaptcha, span;
|
||||||
form = e.target;
|
form = e.target;
|
||||||
isQR = form.parentNode.id === 'qr';
|
isQR = form.parentNode.id === 'qr';
|
||||||
if ($.config('Watch on Reply') && $.config('Thread Watcher')) {
|
if ($.config('Auto Watch Reply') && $.config('Thread Watcher')) {
|
||||||
if (g.REPLY && $('img.favicon').src === Favicon.empty) {
|
if (g.REPLY && $('img.favicon').src === Favicon.empty) {
|
||||||
watcher.watch(null, g.THREAD_ID);
|
watcher.watch(null, g.THREAD_ID);
|
||||||
} else {
|
} else {
|
||||||
value = $('input[name=resto]').value;
|
id = $('input[name=resto]').value;
|
||||||
threads = $$('div.op');
|
op = d.getElementById(id);
|
||||||
for (_i = 0, _len = threads.length; _i < _len; _i++) {
|
if ($('img.favicon', op).src === Favicon.empty) {
|
||||||
thread = threads[_i];
|
watcher.watch(op, id);
|
||||||
if (thread.id === value && $('img.favicon', thread).src === Favicon.empty) {
|
|
||||||
watcher.watch(thread, value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,6 +15,7 @@ config =
|
|||||||
'404 Redirect': [true, 'Redirect dead threads']
|
'404 Redirect': [true, 'Redirect dead threads']
|
||||||
'Anonymize': [false, 'Make everybody anonymous']
|
'Anonymize': [false, 'Make everybody anonymous']
|
||||||
'Auto Watch': [true, 'Automatically watch threads that you start']
|
'Auto Watch': [true, 'Automatically watch threads that you start']
|
||||||
|
'Auto Watch Reply': [false, 'Automatically watch threads that you reply to']
|
||||||
'Comment Expansion': [true, 'Expand too long comments']
|
'Comment Expansion': [true, 'Expand too long comments']
|
||||||
'Cooldown': [false, 'Prevent \'flood detected\' errors (buggy)']
|
'Cooldown': [false, 'Prevent \'flood detected\' errors (buggy)']
|
||||||
'Image Auto-Gif': [false, 'Animate gif thumbnails']
|
'Image Auto-Gif': [false, 'Animate gif thumbnails']
|
||||||
@ -36,7 +37,6 @@ config =
|
|||||||
'Thread Updater': [true, 'Update threads']
|
'Thread Updater': [true, 'Update threads']
|
||||||
'Thread Watcher': [true, 'Bookmark threads']
|
'Thread Watcher': [true, 'Bookmark threads']
|
||||||
'Unread Count': [true, 'Show unread post count in tab title']
|
'Unread Count': [true, 'Show unread post count in tab title']
|
||||||
'Watch on Reply': [false, 'Automatically watch threads you reply to']
|
|
||||||
textarea:
|
textarea:
|
||||||
flavors: [
|
flavors: [
|
||||||
'http://regex.info/exif.cgi?url='
|
'http://regex.info/exif.cgi?url='
|
||||||
@ -776,15 +776,14 @@ qr =
|
|||||||
form = e.target
|
form = e.target
|
||||||
isQR = form.parentNode.id == 'qr'
|
isQR = form.parentNode.id == 'qr'
|
||||||
|
|
||||||
if $.config('Watch on Reply') and $.config('Thread Watcher')
|
if $.config('Auto Watch Reply') and $.config('Thread Watcher')
|
||||||
if g.REPLY and $('img.favicon').src is Favicon.empty
|
if g.REPLY and $('img.favicon').src is Favicon.empty
|
||||||
watcher.watch null, g.THREAD_ID
|
watcher.watch null, g.THREAD_ID
|
||||||
else
|
else
|
||||||
value = $('input[name=resto]').value
|
id = $('input[name=resto]').value
|
||||||
threads = $$ 'div.op'
|
op = d.getElementById id
|
||||||
for thread in threads
|
if $('img.favicon', op).src is Favicon.empty
|
||||||
if thread.id is value and $('img.favicon', thread).src is Favicon.empty
|
watcher.watch op, id
|
||||||
watcher.watch thread, value
|
|
||||||
|
|
||||||
if isQR
|
if isQR
|
||||||
if span = @nextSibling
|
if span = @nextSibling
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user