s/auto_//

This commit is contained in:
James Campos 2011-07-31 15:50:35 -07:00
parent 0fc94a5bbc
commit 0c0a8c6dbd
2 changed files with 8 additions and 8 deletions

View File

@ -1402,9 +1402,9 @@
c = $('b').lastChild; c = $('b').lastChild;
if (c.nodeType === 8) { if (c.nodeType === 8) {
_ref = c.textContent.match(/thread:(\d+),no:(\d+)/), _ = _ref[0], thread = _ref[1], id = _ref[2]; _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 (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"; return window.location = "http://boards.4chan.org/" + g.BOARD + "/res/" + id + "#watch";
} else if (noko) { } else if (noko) {
return window.location = "http://boards.4chan.org/" + g.BOARD + "/res/" + id; return window.location = "http://boards.4chan.org/" + g.BOARD + "/res/" + id;
@ -2716,7 +2716,7 @@
} }
threading.init(); threading.init();
if (conf['Auto Noko']) { if (conf['Auto Noko']) {
$('.postarea form').action += '?auto_noko'; $('.postarea form').action += '?noko';
} }
if (conf['Cooldown']) { if (conf['Cooldown']) {
cooldown.init(); cooldown.init();
@ -2808,7 +2808,7 @@
expandComment.init(); expandComment.init();
} }
if (conf['Auto Watch']) { if (conf['Auto Watch']) {
$('.postarea form').action += '?auto_watch'; $('.postarea form').action += '?watch';
} }
} }
_ref3 = $$('div.op'); _ref3 = $$('div.op');

View File

@ -1127,9 +1127,9 @@ qr =
if c.nodeType is 8 #comment node if c.nodeType is 8 #comment node
[_, thread, id] = c.textContent.match(/thread:(\d+),no:(\d+)/) [_, 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 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" window.location = "http://boards.4chan.org/#{g.BOARD}/res/#{id}#watch"
else if noko else if noko
window.location = "http://boards.4chan.org/#{g.BOARD}/res/#{id}" window.location = "http://boards.4chan.org/#{g.BOARD}/res/#{id}"
@ -2105,7 +2105,7 @@ main =
threading.init() threading.init()
if conf['Auto Noko'] if conf['Auto Noko']
$('.postarea form').action += '?auto_noko' $('.postarea form').action += '?noko'
if conf['Cooldown'] if conf['Cooldown']
cooldown.init() cooldown.init()
@ -2198,7 +2198,7 @@ main =
expandComment.init() expandComment.init()
if conf['Auto Watch'] if conf['Auto Watch']
$('.postarea form').action += '?auto_watch' $('.postarea form').action += '?watch'
for op in $$ 'div.op' for op in $$ 'div.op'
for callback in g.callbacks for callback in g.callbacks