s/auto_//
This commit is contained in:
parent
0fc94a5bbc
commit
0c0a8c6dbd
@ -1402,9 +1402,9 @@
|
||||
c = $('b').lastChild;
|
||||
if (c.nodeType === 8) {
|
||||
_ref = c.textContent.match(/thread:(\d+),no:(\d+)/), _ = _ref[0], thread = _ref[1], id = _ref[2];
|
||||
noko = /auto_noko/.test(location.search);
|
||||
noko = /noko/.test(location.search);
|
||||
if (thread === '0') {
|
||||
if (/auto_watch/.test(location.search)) {
|
||||
if (/watch/.test(location.search)) {
|
||||
return window.location = "http://boards.4chan.org/" + g.BOARD + "/res/" + id + "#watch";
|
||||
} else if (noko) {
|
||||
return window.location = "http://boards.4chan.org/" + g.BOARD + "/res/" + id;
|
||||
@ -2716,7 +2716,7 @@
|
||||
}
|
||||
threading.init();
|
||||
if (conf['Auto Noko']) {
|
||||
$('.postarea form').action += '?auto_noko';
|
||||
$('.postarea form').action += '?noko';
|
||||
}
|
||||
if (conf['Cooldown']) {
|
||||
cooldown.init();
|
||||
@ -2808,7 +2808,7 @@
|
||||
expandComment.init();
|
||||
}
|
||||
if (conf['Auto Watch']) {
|
||||
$('.postarea form').action += '?auto_watch';
|
||||
$('.postarea form').action += '?watch';
|
||||
}
|
||||
}
|
||||
_ref3 = $$('div.op');
|
||||
|
||||
@ -1127,9 +1127,9 @@ qr =
|
||||
if c.nodeType is 8 #comment node
|
||||
[_, thread, id] = c.textContent.match(/thread:(\d+),no:(\d+)/)
|
||||
|
||||
noko = /auto_noko/.test location.search
|
||||
noko = /noko/.test location.search
|
||||
if thread is '0'
|
||||
if /auto_watch/.test location.search
|
||||
if /watch/.test location.search
|
||||
window.location = "http://boards.4chan.org/#{g.BOARD}/res/#{id}#watch"
|
||||
else if noko
|
||||
window.location = "http://boards.4chan.org/#{g.BOARD}/res/#{id}"
|
||||
@ -2105,7 +2105,7 @@ main =
|
||||
threading.init()
|
||||
|
||||
if conf['Auto Noko']
|
||||
$('.postarea form').action += '?auto_noko'
|
||||
$('.postarea form').action += '?noko'
|
||||
|
||||
if conf['Cooldown']
|
||||
cooldown.init()
|
||||
@ -2198,7 +2198,7 @@ main =
|
||||
expandComment.init()
|
||||
|
||||
if conf['Auto Watch']
|
||||
$('.postarea form').action += '?auto_watch'
|
||||
$('.postarea form').action += '?watch'
|
||||
|
||||
for op in $$ 'div.op'
|
||||
for callback in g.callbacks
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user